HI,
I am trying to trigger a fan, eventually, but for now am trying to switch a lamp on based on the result of subtracting one humidity sensor from another.
I am using an Aeotec multi sensor in the bathroom and a Nest thermostat in the hallway (which does not seem to update very often) to determine if the humidity in the bathroom is higher than expected.
The code below has been used and does not show any config errors but the automation does not trigger.
You can then use that in the automation in the trigger. It’ll also avoid draining the performance of your system - template triggers without an entity_id are evaluated every time any entity updates - so multiple times per second.
Thanks for the help,
I have tried your suggestion but the binary sensors are not triggering. Have also tried to add a slider in to allow me to work out the best values for the automation.
Does anyone have any idea of what I am doing wrong here? Humidity normal is showing as permanently triggered while humidity high never triggers.
Finally got the formatting!
I have spotted one error in that I did not have the states.sensor.xxxxx before the bathroom multisensor.
Giving it a try now.