Fireplace automation help

Hi,

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:

  1. The own fan of the fireplace is on. I can check that with a power measuring Sonoff.

  2. 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.

Any hint?

Thanks in advance.

Unless I have fallen prey to an error, the following should work:


alias: …
description: …

trigger:
  - platform: numeric_state
    entity_id: sensor.room1
    below: sensor.fireplace
  - platform: numeric_state
    entity_id: sensor.room2
    below: sensor.fireplace

condition:
  - condition: state
    entity_id: switch.fireplace 
    state: "on"
  - condition: template
    value_template: >-
      {{ states(trigger.below) |float(0) - trigger.to_state.state |float(0) == 2 }}

action:
  …
mode: single

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

trigger.below stands for sensor.fireplace.

1 Like

Thanks a lot.
I will try when my installation is finished.