My intention is to create a notification, if the indoor humidity becomes a problem. I learned that the relative humidity is not sufficient to create that warning alone. Rather the room temperature also needs to be considered. If these are set in relationship the dewpoint can be calculated. My understanding is, that if the room temperature drops below the dewpoint, the air in the room is saturated and cannot hold more water, which is where mold may become an issue.
So I would like to create one automation, that triggers, when the room temperature drops below the dewpoint of that particular room.
My sensors follow the following naming scheme: sensor.[*room*]_temperature and sensor.[*room*]_dewpoint
As I understood the entity can be templated using wildcards, but how do I ensure, that when comparing two entities, that I am not comparing the temperature of room1, with the dewpoint of room2?
Any help in generating such template, if possible is appreciated.