89 lines
2.8 KiB
YAML
89 lines
2.8 KiB
YAML
switch:
|
|
- platform: template
|
|
switches:
|
|
nursery_heater:
|
|
friendly_name: Nursery heater
|
|
value_template: "{{ states('climate.nursery_heater') == 'heat' }}"
|
|
turn_on:
|
|
action: climate.turn_on
|
|
target:
|
|
entity_id: climate.nursery_heater
|
|
turn_off:
|
|
action: climate.turn_off
|
|
target:
|
|
entity_id: climate.nursery_heater
|
|
office_heater:
|
|
friendly_name: Office heater
|
|
value_template: >
|
|
{{
|
|
states('switch.office_heater_dumb') == 'on' and
|
|
states('sensor.office_heater_power')|float(0) > 250
|
|
}}
|
|
turn_on:
|
|
action: switch.turn_on
|
|
target:
|
|
entity_id: switch.office_heater_dumb
|
|
turn_off:
|
|
action: climate.turn_off
|
|
target:
|
|
entity_id: switch.office_heater_dumb
|
|
|
|
bedroom_humidifier:
|
|
friendly_name: Bedroom humidifier
|
|
value_template: "{{ states('humidifier.bedroom') not in ('off', 'unavailable', 'unknown') }}"
|
|
turn_on:
|
|
action: humidifier.turn_on
|
|
target:
|
|
entity_id: humidifier.bedroom
|
|
turn_off:
|
|
action: humidifier.turn_off
|
|
target:
|
|
entity_id: humidifier.bedroom
|
|
nursery_humidifier:
|
|
friendly_name: Nursery humidifier
|
|
value_template: "{{ states('humidifier.nursery') not in ('off', 'unavailable', 'unknown') }}"
|
|
turn_on:
|
|
action: humidifier.turn_on
|
|
target:
|
|
entity_id: humidifier.nursery
|
|
turn_off:
|
|
action: humidifier.turn_off
|
|
target:
|
|
entity_id: humidifier.nursery
|
|
|
|
living_room_aircon:
|
|
friendly_name: Living room aircon
|
|
value_template: "{{ states('climate.living_room_aircon') not in ('off', 'unavailable', 'unknown') }}"
|
|
turn_on:
|
|
action: climate.turn_on
|
|
target:
|
|
entity_id: climate.living_room_aircon
|
|
turn_off:
|
|
action: climate.turn_off
|
|
target:
|
|
entity_id: climate.living_room_aircon
|
|
|
|
dining_room_aircon:
|
|
friendly_name: Dining room aircon
|
|
value_template: "{{ states('climate.dining_room_aircon') not in ('off', 'unavailable', 'unknown') }}"
|
|
turn_on:
|
|
action: climate.turn_on
|
|
target:
|
|
entity_id: climate.dining_room_aircon
|
|
turn_off:
|
|
action: climate.turn_off
|
|
target:
|
|
entity_id: climate.dining_room_aircon
|
|
|
|
bedroom_aircon:
|
|
friendly_name: Bedroom aircon
|
|
value_template: "{{ states('climate.bedroom_aircon') not in ('off', 'unavailable', 'unknown') }}"
|
|
turn_on:
|
|
action: climate.turn_on
|
|
target:
|
|
entity_id: climate.bedroom_aircon
|
|
turn_off:
|
|
action: climate.turn_off
|
|
target:
|
|
entity_id: climate.bedroom_aircon
|