Read up that triggers occur once the threshold is crossed i.e. if you are within the threshold then no trigger occurs - which is what I want.
A shelly plug triggers an automation because of a variation in its wattage draw. But it’s below the threshold so shouldn’t ? ( unless I am misunderstanding triggers ).
Checked the doc’s and I think I’m correct in what I am assuming.
You can see at around 3:30am the current draw changes which does trigger the automation based on the numeric state of ‘power’ - but it’s below the threshold…
Any help on something that’s probably very simple appreciated.
The state of any entity is a string. If you want to convert it to a number (a float type) and compare it to another number, that is exactly what the numeric state trigger does.
Thanks I see .
Assumed as power is a ‘value’ would be a numeric - so it’s a string - got it !
Still seems strange to have 2 values for the same thing when a function could convert string to numeric though….
Appreciate the explanation