Call service data number

Hi!
How do I set the payload to a data value number? Se below:
image

Hi @dowermyr

Not many HA users here, but I'll try my best.

  • if the value is always the same
    -> set the Data field to desired number

  • if the value is coming from an msg object and its already a number
    -> set the Data field to that object Ex : payload

  • if the value is coming from an msg object and its NOT already a number
    -> set the Data field to $number(payload)

I don't use HA, therefore this node, but others may chip in, if I am incorrect

EDIT:
You can use $number(payload) regardless to be honest, as if its already a number, it will not convert it

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