- alias: Ventilation bypass and power control description: In summer, the bypass is activated and power increased for free cooling or deactived to preserve the cool air in house. mode: single triggers: - entity_id: - sensor.bypass_status from: null trigger: state - entity_id: - sensor.ntc1_temperature for: hours: 0 minutes: 5 seconds: 0 above: 28 trigger: numeric_state - entity_id: - sensor.ntc1_temperature for: hours: 0 minutes: 5 seconds: 0 below: 28 trigger: numeric_state - entity_id: - sensor.ntc1_temperature for: hours: 0 minutes: 5 seconds: 0 above: 21 trigger: numeric_state - entity_id: - sensor.ntc1_temperature for: hours: 0 minutes: 5 seconds: 0 below: 21 trigger: numeric_state conditions: [] actions: - if: - condition: numeric_state entity_id: sensor.bypass_status above: 2 below: 4 - condition: numeric_state entity_id: sensor.bypass_mode below: 1 - condition: numeric_state entity_id: sensor.ntc1_temperature below: 21 - condition: numeric_state entity_id: sensor.ntc2_temperature above: 20 then: - metadata: {} data: hub: brink_flair slave: 20 value: 1 address: 8000 action: modbus.write_register - metadata: {} data: hub: brink_flair slave: 20 address: 8001 value: 2 action: modbus.write_register else: - if: - condition: numeric_state entity_id: sensor.ntc1_temperature above: 28 then: - metadata: {} data: hub: brink_flair slave: 20 value: 1 address: 8000 action: modbus.write_register - metadata: {} data: hub: brink_flair slave: 20 address: 8001 value: 0 action: modbus.write_register else: - metadata: {} data: hub: brink_flair slave: 20 address: 8000 value: 0 action: modbus.write_register - alias: Ventilation time and date steering description: Synchronize the time and date of the Brink Flair ventilation system with the Home Assistant system time. mode: single triggers: - at: 03:00:00 trigger: time conditions: [] actions: - metadata: {} data: hub: brink_flair address: 6904 slave: 20 value: '{{now().year | int(base=16) }}' action: modbus.write_register - metadata: {} data: hub: brink_flair address: 6903 slave: 20 value: '{% set month = now().month | int(base=16) %} {% set day = now().day | int(base=16) %} {% set msb = month %} {% set lsb = day * (2 ** 8) %} {{ msb + lsb }} ' action: modbus.write_register - metadata: {} data: hub: brink_flair address: 6905 slave: 20 value: '{% set hours = now().hour | int(base=16) %} {% set minutes = now().minute | int(base=16) %} {% set msb = hours %} {% set lsb = minutes * (2 ** 8) %} {{ msb + lsb }} ' action: modbus.write_register