I am trying to write an automation and I would like some help.
I have a fireplace that can send hot air to other parts of the house. Those places are far away from it and I need to put in the middle of the air way a fan to increase the air flow.
I want that fan to switch on when two conditions are met:
The own fan of the fireplace is on. I can check that with a power measuring Sonoff.
The temperature of one of the rooms where the air is to be sent is below 2 ºC of the temperature were the fireplace is. I have one sensor in both places.
Number helpers (input_number entities), number and sensor entities that contain a numeric value, can be used in the above and below options to make the condition more dynamic.source