I have a humidity sensor, and I want when RH goes above 58% or below 48%, it sends a notification. I have two different problems with the configuration below.
For reasons I can’t understand, if on the “above” I set a value bigger than “2”, the automation disappears from the list in lovelace
How can I pass the value of the humidity in the message?
Hi,
Almost there. I’m using the below. My automation seems to persist but it’s not sent because of the message line (if I remove the dynamic part, it works).
The automation will only trigger when it surpasses a threshold. If it goes from 59.2 to 60.1, it won’t trigger. Clicking EXECUTE in the UI won’t do it for this particular automation because the content of the message depends on the trigger information and EXECUTE ignores the trigger. To test if it works, go to developer tools/states and set a different state to sensor.humidity_158d0001e4c4f5 , for example, 55. Click set state, It should do nothing.
Just out of curiosity, why isn’t the device’s sensor “changes state” trigger working?
It’s advised here that the numeric_state should be used for the entity but why isn’t the device sensor working as a trigger?
I’m using the following code and it isn’t triggered at all. I’d like to trigger on each change and then check if the fan should be switched on or off.
If this simply isn’t working (yet) in HA then I think I’ll go for a time based automation.