Files
fresh-home/components/packages/patio_door_lock.yaml
T
2024-04-14 14:08:56 -04:00

13 lines
382 B
YAML

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