- alias: mirror heat on automation
trigger:
platform: numeric_state
entity_id: sensor.humidity_158d000205cbe2
value_template: '{{ states.sensor.humidity_158d000205cbe2.state| int }}'
above: 70
condition:
- platform: numeric_state
entity_id: sensor.temperature_158d000205cbe2
value_template: '{{ states.sensor.temperature_158d000205cbe2.state| int }}'
below: 26
action:
service: homeassistant.turn_on
entity_id: switch.mirror_heat
- alias: mirror heat off automation
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d000200e57e
to: 'off'
for:
minutes: 1
action:
service: homeassistant.turn_off
entity_id: switch.mirror_heat
- alias: mirror heat on automation
trigger:
platform: numeric_state
entity_id: sensor.humidity_158d000205cbe2
# value_template: '{{ states.sensor.humidity_158d000205cbe2.state| int }}'
above: 75
condition:
- condition: numeric_state
entity_id: sensor.temperature_158d000205cbe2
value_template: '{{ states.sensor.temperature_158d000205cbe2.state| int }}'
below: 35
action:
service: homeassistant.turn_on
entity_id: switch.mirror_heat
- alias: mirror heat off automation
trigger:
- platform: state
entity_id: switch.wall_switch_ln_left_158d00033fd748
to: 'off'
# for:
# minutes: 1
- platform: state
entity_id: switch.mirror_heat
to: 'on'
for:
minutes: 30
action:
service: homeassistant.turn_off
entity_id: switch.mirror_heat