MQTT and NodeRed - start

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.

  • Hi everyone

    I try to start with my shellys with MQTT and NodeRed.

    Hardware

    different ones arround, I explane my problem with the shelly 1 with FW: 20200601-122823/v1.7.0@d7961837

    shelly configuration

    First I went to my shellys IP, to "Internet & Security" and activated "Enable action execution via MQTT". Also I added the MQTT-Server ID with the Port too. A password is not needed in my test case.

    Afterwards I went to "Settings", "Devide Info" and copied the deviceID. In my case it was "98F4ABF28A93 (168176624241299)". So I just thake the hex number bevor the brackets.

    NodeRed

    Now in NodeRed I publish to "shellies/shelly1-98F4ABF28A93/relay/0/command" the payload as a string "on" or "off". But nothing happens.


    Also I did tests with "custom MQTT prefix" to define the deviceID specified in internet&Security of the shelly1's webpage. Also on this MQTT channels no sucess with "on" & "off" commands.

    Do you have any idea where I can search for the problem? Actualy I have quit some problem to understand the MQTT documentaiton by my selves. So I started to copy arround from some internet suff, but obviously without sucess.

    Thank you for your help.

    Bests

    2 Mal editiert, zuletzt von NightStorm (9. Juni 2020 um 23:59)

  • I currently use node red only to read out shelly HT and shelly 3EM devices, so far everything works as expected. I use the aedes MQTT broker.

    My versions are: NodeRed 1.0.3, running on raspberry pi os (minimal version without desktop, only SSH access) on a RPI4.

    Sometimes the timeouts bother me - e.g. for setting up WPA keys on Shelly HT : I had to restart several times to finish early enough with my typing ;) every now and then the device powers off and I had to restart from scratch again. Perhaps one reason might be that my devices never have NAT access to the internet (no DNS etc.), my installation should remain "cloud free" ;)

  • Hello,

    i had the same Problem and i see i have add an spacer on the end:

    Look at the TOPIC in mqtt out node :

    "shellies/shelly1-98F4ABF28A93/relay/0/command " -> not work (space behind command )

    I removed the spacer behind command and i was able to switch the Device

    "shellies/shelly1-98F4ABF28A93/relay/0/command" -> work