Add door lock to scripts and automations
This commit is contained in:
parent
45d46b5a34
commit
eaae7d0d6f
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user