Brightness_pct

Hi,

Can someone please tell me what I’m supposed to enter in the data field of the call service node that is supposed to change the lamp brightness?

Thanks in advance.

{
    "brightness_pct": 5
}

Change 5 to whatever brightness you want

I see, but my problem is that the % is coming from another node, in this case the switch and I have no idea how can I pass it to the call service node.

I am trying this with a template node:

{
    "brightness_pct": {payload}
}

but now it seems like the number is being converted to a string.

{
    "brightness_pct": "{{payload}}"
}
2 Likes

Thanks Kermit!

just in case a JSON is not working, you always can use an online validation !!