Files
fresh-home/components/packages/patio_door_lock.yaml
T
2025-10-27 16:49:34 -04:00

21 lines
596 B
YAML

lock:
- platform: template
unique_id: templatelock.patio_door
name: Patio Door
#value_template: "{{ is_state('switch.shelly_sliding_glass_door', 'on') }}"
value_template: "{{ is_state('light.deck', 'on') }}"
lock:
# action: switch.turn_on
# target:
# entity_id: switch.shelly_sliding_glass_door
action: light.turn_on
target:
entity_id: light.deck
unlock:
# action: switch.turn_off
# target:
# entity_id: switch.shelly_sliding_glass_door
action: light.turn_off
target:
entity_id: light.deck