I have Tibber for electricity and the current price is in ‘sensor.electricity_price’. They lowest price of the day is in ‘sensor.electricity_price’ atribute ‘min_price’.
In the ‘Then do’ of my automation, I want to do a simple condition, to see if the current price equals the lowest of the day;
- condition: state
entity_id: sensor.electricity_price
attribute: min_price
state: sensor.electricity_price
But this doesn’t work, it evaluates the state as a string, not a value;
## if/condition/0/entity_id/0
Executed: August 2, 2024 at 19:13:39
Result:
result: false state: 0.217 wanted_state: sensor.electricity_price
Help is appriciated!
I’ve tried things with numeric state, that does evaluates both virables correctly, but does’t offer ‘equals’.