Manage my Shelly 1 with Raspberry PI and NodeRed

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

  • Dear Shelly community.

    I'm trying to configure my Shelly 1 sensor with a RaspberryPI for server and NodeRed for manage automation.

    In fact I did that :

    1/ I give to my RaspberryPI a static IP

    2/ I give to my Shelly1 a static IP

    3/ I maked a NodeRed programmation for an automation of ON/OFF

    Externer Inhalt nsa40.casimages.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.

    4/ I wrote the configuration of the automation with the ID of my Shelly what I found on the application cloud

    Externer Inhalt nsa40.casimages.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.

    5/ for the connection of my sensor, I'm connected to the IP of my Shelly and I enabled the mqtt action

    Externer Inhalt nsa40.casimages.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.

    6/ After I returned to the NodeJS and I change the configuration of the mqtt node and the Shelly Announcements but it doesn't works (like you can see on the first image and the connecting action...)

    Externer Inhalt nsa40.casimages.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.

    Externer Inhalt nsa40.casimages.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.

    Do you know where I did wrong ?

    Thanks for your help.

  • Hi Nalcom,

    first of all: I hope you can follow me and my explanation, although my english is quite poor - I learned ist more than 40 years ago at school...

    Regarding your topic:

    Why do you use MQTT?

    Is this you standard and running well with your equipment except your shellys?

    I do not have any practical knowledge with MQTT.

    I use another way - in my opinion much more easier:

    To control my shellys with NodeRed I installed the special shelly nodes:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.


    The four new nodes allow to control Shelly Switch, roller shutter and dimmer. At last you can get signals from Shelly door:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    In the picture above you can see my testflow for you.

    With three inject-nodes you can turn the relay on, turn it off and check the actual state.


    First you have to configure the shelly switch node:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    If you didn't set login data in your shelly configuration, you have only to enter the IP-adress of the shelly.


    To turn ON the shelly you have to inject the following payload in the shelly node:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.


    To turn OFF the shelly you have to inject the following payload in the shelly node:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.


    To check the state of the relay you have to inject an empty payload in the shelly node:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.


    If you configure the debug node as shown the node will inform you about the state (under the node) and the payload (debug window):

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.


    I hope this all is understandable and will help you, even though it is not MQTT.

    Best regards

    Wolfgang

    Viele Grüße,

    Wolfgang

  • Dear Wolfgang.

    First of all, your µEnglish is better than mine ;-)

    In second time thanks a lot that's works !

    Now, I will could begin the real works.

    Thank you.

    Nalcom

  • Hallo Wolfgang, ich bin neu in der Shelly Welt. Aber mit deiner Anleitung oben habe ich den Shelly 1 prima über Node Red ansteuern können. Jetzt frage ich mich, wie das ganze funktioniert, wenn ich beim Model PM den Stromwert anzeigen lassen möchte.

    Viele Grüße, Kluke

  • Dieses Thema enthält einen weiteren Beitrag, der nur für registrierte Benutzer sichtbar ist.