1
0

Add door lock to scripts and automations

This commit is contained in:
pgrondek 2021-05-28 00:22:58 +02:00
parent 45d46b5a34
commit eaae7d0d6f
2 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,10 @@
- platform: state
entity_id: binary_sensor.living_room_window_open_close
to: 'on'
# Use lock
- platform: state
entity_id: lock.front_door_25f246fe_door_lock
to: 'unlocked'
condition:
- condition: state
entity_id: alarm_control_panel.ha_alarm

View File

@ -41,6 +41,9 @@ good_night:
- service: cover.close_cover
target:
entity_id: cover.bedroom_blind
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock
mode: single
icon: mdi:weather-night
good_morning:
@ -95,6 +98,9 @@ leave_home:
- service: switch.turn_off
entity_id: switch.desk_motor_on_off
- service: script.pc_sleep
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock
mode: single
icon: mdi:home-export-outline
arrive_home: