Add Shelly Add-on temperature sensor to Victron Cerbo GX

Hi everyone, please can you help or point me to a tutorial?
I’d like to connect a Shelly Addon temperature sensor to the Cerbo using Node-RED, so that the temperature sensor appears in the device list. Unfortunately, I’m stuck and can’t find any instructions that help. Could someone please share a tutorial or some tips?
Thanks very much! Have a lovely week!
Here’s a screenshot:

Hi,

Which software version of the Cerbo are you running?

Which variant of Shelly devices do you have?

https://www.victronenergy.com/media/pg/Cerbo_GX/de/connecting-supported-non-victron-products.html#UUID-2f3d09e0-aa1d-2a5c-ef98-2a60738efd1e

Hello, Cerbo v. 3.80,

Device type: Shelly 1 Plus PM,

Device model: SNSW-001P16EU

Thank you!

Hi Gromheisei,

I got it working with this flow here.

You’ll need to change the Shelly’s IP address.

This creates a virtual temperature sensor in Venus OS.

You can then find it locally under Levels → Environment in Gui-V2, and also in VRM.

I can’t say whether there’s a better way — this worked for me.

Have a lovely evening

Markus

flows.json.txt (3.9 KB)

Hi, yeah, great! I’ll install it when I get home then. I’m still in Italy at the moment, swimming in the pool and the sea. Thanks very much :clinking_beer_mugs:

Hi, I’m back home. The sensor is connected, but it always shows 25 degrees, even though it’s actually 69.1 degrees. What am I doing wrong? Attached are 3

photos,

Thanks very much!

Hi,
Why don’t you post your flow? Then people might be able to understand what you’re doing a bit better…

Hi, here’s my flow. Thanks very much.

flows.json.txt (4,5 KB)

Hello Gromheisei,

25°C is the default value used to initialise the Virtual Device.

You still need to change a value in the function “Tempwert Gartenhaus Außen”; it still contains my path to the temperature sensor (I have four sensors connected to the Shelly…)

Replace the part

…msg.payload.temperature102.tC…

with

…msg.payload.temperature100.tC…

Have a nice weekend

Markus

An early riser too… :hot_beverage:

Hello, yes I am, unfortunately nothing has changed. Hmm? Thank you.

This entry (Connected: No) is incorrect, isn’t it?

Connected: no is shown for me too:

I’ve changed the flow and attached it here again for you.

flows-geaendert.json.txt (4.7 KB)

Hello, it’s working now—perfect! Thank you very much. How can I buy you a coffee?

Glad it’s working now.

You don’t have to buy me a coffee.

I’m glad I could finally help after years of just reading along.

Thanks again!!

@M_Prentl I wanted to use your flow to read the temperature from a “The Pill by Shelly”.

Its “devicetype” is “S3SN-0U53X”,

and the debug output also shows an error with the tC field:

{“enc”:true,“type”:“error”,“data”:{“name”:“TypeError”,“message”:“Cannot read properties of undefined (reading ‘tC’)”,"…

In msg.payload : Object: (xx replaces the values returned!) it says the following

{“ble”:{“addr”:“90:70:xx:xx:xx:16,p”},“bthome”:{},“cloud”:{“connected”:false},“mqtt”:{“connected”:false},“pill”:{},“sys”:{“mac”:“xxxxx”,“restart_required”:false,“time”:“19:59”,“unixtime”:1790445587,“last_sync_ts”:1790444422,“uptime”:4828,“ram_size”:277980,“ram_free”:156592,“ram_min_free”:131692,“fs_size”:1048576,“fs_free”:585728,“cfg_rev”:28,“kvs_rev”:0,“schedule_rev”:4,“webhook_rev”:0,“btrelay_rev”:0,“available_updates”:{},“reset_reason”:3,“utc_offset”:7200},“wifi”:{“sta_ip”:“192.168.178.50”,“status”:“got ip”,“ssid”:“xxxxxx”,“channel”:5,“rssi”:-49,“bssid”:“xx:xx:xx:d1:xx:xx”,“sta_ip6”:[“fe80::xxxx:xxxx:xxxx:xxxx”,“xx:xx:xxxx:xxxx:xx:xx:xx:xx”]},“ws”:{“connected”:false}}

Can you tell me what is returned in msg.payload : Object when it works correctly?

Thanks,
Micha

the Pill is configured as follows:

Hi Micha,

I don’t have a Shelly Pill sensor, but I can’t see a temperature value in your msg.payload.

I’d start with a very simple flow:

Inject node (Timestamp) → shelly gen 2+ node → debug node

The debug window will show you everything this type of Shelly transmits.

Once you find the temperature value there, you can click the “Copy path” button and paste it into the function node.

Good luck, and have a nice evening!

Markus

Just found the other thread.

Glad you managed to get it working.

unfortunately not working yet.

Any hint?