Need help for a dynamic msg

Hi
first you need to export your flow so we can see how the nodes are configured

How to import/export a flow

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

Then we need to see the data your shelly nodes are providing, add debugs after them and copy values.

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 or value to 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

With this data forum members here will be able to help you with greater ease.