Jump to content

I TWIST SO BAD: SWITCH SHELLY PLUS 2PM VIA MQTT AND NODERED


Recommended Posts

Hello together

I am currently learning MQTT and want to implement what I have learned together with NodeRed and Shellys.

Yesterday I finally managed to read out my Shelly Plus 2PM with AddON via MQTT.
1.png.22c1d1cf763d15a1ba43d2a00d31d423.png
But now I'm faced with a problem. I would also like to send switching commands via MQTT so that the Shelly logically also switches.
At the moment it looks like this:
2.png.a50ff1cae1d03794d0653e1076eec2f0.png

I use the MQTT Explorer program for better debugging. There it looks like this:
3.png.b5cf8031a73deb9e5e06e03d75a0cf55.png

The code of switch:1 looks like this ("output" toggles between true and false)

{"id":1, "source":"WS_in", "output":true, "apower":0.0, "voltage":232.8, "freq":49.9, "current":0.000, "pf":0.00, "aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1708102380}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1708102380},"temperature":{"tC":56.4, "tF":133.5}}

No matter what I do, I can't manage to switch the Shelly... 😞
What do I have to do so that I can switch the Shelly from NodeRed?

Thanks for your help.

Edited by faithl5x
Link to comment
Share on other sites

  • faithl5x changed the title to I TWIST SO BAD: SWITCH SHELLY PLUS 2PM VIA MQTT AND NODERED

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...