As the debug message neatly contains the Kelvin value I am searching for:
This is the configuration of the “current state” node:
But when I change the “current state” node to have a dynamic entity_id, like this:
Then I get a “NaN” value…
And please note that the “msg.entity_id” value in the debug is exactly the same as the value for the static entity_id that I used previously.
I already looked at this answer here: Subflow with dynamic entity_id in curent_state
He uses “msg.entity_id” instead of “{{msg.entity_id}}” like I do. But that fails even harder. Then “msg.entity_id” is literaly interpreted as the entity_id and I get the error that this entity does not exist:
sorry if this is a stupid question but do you have a node earlier in your flow that’s putting the entity id into msg.entity_id? If you’re not sure it’s going into the msg, or whether it’s in the right place use a debug node to check.