Shelly Plus Add-On - command to retrieve temperature status

Old Shelly addon works with command
msg.payload = msg.status.ext_temperature["1"].tC;

With the new shelly addon I would assume this command

payload.temperature100.tC

but it doesn't work. I've tried different variations but no luck.

e.g.

msg.payload = msg.status.temperature["100"].tC

msg.payload = msg.status.temperature100["100"].tC

Thanks in advance for the advice

Hi @Frantisek

In order to provide the help - please show us the incoming data and highlight what data you want from it.

Not a screen shot please , but an example payload :smiley:

Plenty of Shelly users here

    1. 2024 21:16:07node: 0bf4d6692d3bd262msg.payload : Object

object

input0: object

switch0: object

temperature100: object

id: 100

tC: 21.8

tF: 71.2

temperature101: object

There is no status property.
Marcus asked for the debug value, which you can get as shown below.

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

The path to the property value should be some thing like payload.temperature100.tc You then prefix with msg.

1 Like

I really need to save that infamous gif. where is it?

flows (12).json (1.3 KB)

SnĂ­mek obrazovky 2024-09-13 215541

Maybe you should reread my post.

Still not working.

Status is the status output from the shelly node.

With old version Shelly addon works with command
msg.payload = msg.status.ext_temperature["1"].tC;

Copy path old shelly temperature addon is:
payload.ext.temperature["0"].tC

Copy of path is different than a function command

Shely plus 1 + new addon + temperature snsors

Miraculously, it works today. :slight_smile:
To get the value, the command works (as we all assumed yesterday)
msg.payload = msg.payload.temperature100.tC;

Thanks E1cid and marcus-j-davies
for your support in solving this mysterious problem. Thanks Frantisek

Finally I can use these variables from the gen2 shelly.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.