mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
14 lines
381 B
YAML
14 lines
381 B
YAML
lock:
|
|
- platform: template
|
|
unique_id: templatelock.patio_door
|
|
name: Patio Door
|
|
value_template: "{{ is_state('switch.shelly_sliding_glass_door', 'on') }}"
|
|
lock:
|
|
action: switch.turn_on
|
|
target:
|
|
entity_id: switch.shelly_sliding_glass_door
|
|
unlock:
|
|
action: switch.turn_off
|
|
target:
|
|
entity_id: switch.shelly_sliding_glass_door
|