Files
fresh-home/components/fans/template_fans.yaml
T
2025-12-03 20:23:33 -05:00

28 lines
753 B
YAML

template:
- fan:
- unique_id: template_fan.utility_room_vent
turn_on:
- action: switch.turn_on
entity_id:
- switch.utility_room_vent_switch
turn_off:
- action: switch.turn_off
entity_id:
- switch.utility_room_vent_switch
default_entity_id: fan.utility_room_vent
name: Utility Room Vent
state: "{{ states('switch.utility_room_vent_switch') }}"
- unique_id: templatefan.bathroom_vent
turn_on:
- action: switch.turn_on
entity_id:
- switch.bathroom_vent_switch
turn_off:
- action: switch.turn_off
entity_id:
- switch.bathroom_vent_switch
default_entity_id: fan.bathroom_vent
name: Bathroom Vent
state: "{{ states('switch.bathroom_vent_switch') }}"