Hi!
How do I set the payload to a data value number? Se below:
Hi @dowermyr
Not many HA users here, but I'll try my best.
-
if the value is always the same
-> set theData
field to desired number -
if the value is coming from an
msg
object and its already a number
-> set theData
field to that object Ex :payload
-
if the value is coming from an
msg
object and its NOT already a number
-> set theData
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.