I have humidity sensors both inside and out. Is it possible to get an alert to tell me when the humidity outside is lower than inside?
When the weather is drier outside, I’d like to know, to open a window.
Thank you.
I have humidity sensors both inside and out. Is it possible to get an alert to tell me when the humidity outside is lower than inside?
When the weather is drier outside, I’d like to know, to open a window.
Thank you.
Yes. You need a Numeric State Trigger for an Automation.
There is even an example how to compare two numeric sensor states to each other:
automation:
trigger:
- platform: numeric_state
entity_id: sensor.inside_humidity
above: sensor.outside_humidity
Are you aware of relative and absolute humidity?
e.g.:
You should calculate the absolute humidity first:
See for example
After that you can compare the absolute humidity inside and outside which are the relevant values to compare.
You can create a binary template sensor for comparing the values and store the “should open window” flag:
You can use the comparison directly in an automation but IMHO, I would store this information in a new template sensor. This makes the trigger easier and you have the data at your history of sensor data.