Hi everyone, is possible to somehow add a temperature differential into this node? For example if the weather becomes 5 degrees cooler than downstairs. Thank in advance!!
If you have the weather sensor, then it is easy.
Make the first node an events: state node that activate on the downstairs temperature, then a switch node to move data away from variable names that will be reused.
Add a current state node to get the weather temperature followed by a function node.
The function node is just a javascript node and could contain lines like:
newmsg.difference = msg.downstair_temperature - msg.weather_temperature;
return newmsg;
If you sensor of the weather temperature is on that is updated often, then you might also need a flow that start with a events: state node on that and then pull the downstair temperature before making the calculations.
If the weather temperature is just updated like once every hour or maybe each day, then you might choose to ignore it and just let the update happen when the downstair temperature change anyway.
Change the condition operator to >
and use $number($entities("sensor.nest_temperature").state) - 5
Thank you!
Thanks again it works perfectly. One more question if you wouldn’t mind? If I wanted to use the same node but I wanted it if the current weather “sensor.weather_current_temperature” drops below 60°F how would I type that out?
I think I just realized it. I would just ad <= 60 instead of the - 5 correct?
Poll state nodes are used when a component doesn’t update itself, is this the case? If not you should use an event state and set it to <= 60