In HA-automations i can use
a numeric state condition that checks if the value is between two numbers for a specific duration.
What is the easiest way to achieve this in node red?
In HA-automations i can use
a numeric state condition that checks if the value is between two numbers for a specific duration.
What is the easiest way to achieve this in node red?
You should be able to do it on an “events: state” node using JSONata that returns true/false. The JSONata would be something like:
($number($entity().state) >= x) and ($number($entity().state) <= y)
Obviously the x and y would have to be substituted with real numbers. And then fill out the “for” minutes. Note that I have not tested this specifically other than checking the JSONata syntax.
@StefanHabel you should be able to use the event state node. I just set this up for my proximity automation in NodeRed.