1
0

Update hallway/front door automations

switch calling doorbell automation to async script call
 increase lights blinking to 10 seconds
 change doorbell prevention automation from delay to trigger requirement
 wait door close before locking door
 turn on/off hallway light on motion
This commit is contained in:
Przemek Grondek 2021-08-12 00:37:29 +02:00
parent e30d4a8d2e
commit fe0e59e313
4 changed files with 42 additions and 17 deletions

View File

@ -16,17 +16,14 @@
entity_id: input_boolean.mute_doorbell entity_id: input_boolean.mute_doorbell
state: 'off' state: 'off'
sequence: sequence:
- service: switch.turn_on - service: script.turn_on
target: entity_id: script.doorbell_bell
entity_id: switch.doorbell_bell
- service: switch.turn_off
target:
entity_id: switch.doorbell_bell
- service: script.pause_all_players - service: script.pause_all_players
- service: light.turn_on - service: light.turn_on
data: data:
effect: Police effect: Police
entity_id: light.desk_lightbar_ambilight target:
entity_id: light.desk_lightbar_ambilight
- service: zwave.set_config_parameter - service: zwave.set_config_parameter
data: data:
node_id: 12 node_id: 12
@ -35,12 +32,13 @@
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.siren_switch entity_id: switch.siren_switch
- delay: - delay:
milliseconds: 30 seconds: 10
- service: light.turn_on - service: light.turn_on
data: data:
hs_color: [ 240,100 ] hs_color: [ 240,100 ]
entity_id: light.desk_lightbar_ambilight entity_id: light.desk_lightbar_ambilight
- delay: '1' - delay:
miliseconds: 50
- service: light.turn_off - service: light.turn_off
entity_id: light.desk_lightbar_ambilight entity_id: light.desk_lightbar_ambilight
@ -52,7 +50,8 @@
entity_id: switch.doorbell_bell entity_id: switch.doorbell_bell
from: 'off' from: 'off'
to: 'on' to: 'on'
for:
seconds: 1
action: action:
- delay: '1'
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.doorbell_bell entity_id: switch.doorbell_bell

View File

@ -7,6 +7,16 @@
type: remote_button_short_press type: remote_button_short_press
subtype: turn_off subtype: turn_off
action: action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.front_door_open_close
state: 'on'
sequence:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.front_door_open_close
to: 'off'
- service: lock.lock - service: lock.lock
target: target:
entity_id: lock.front_door_25f246fe_door_lock entity_id: lock.front_door_25f246fe_door_lock

View File

@ -1,5 +1,5 @@
- id: hallway-lightstrip-on - id: hallway-lightstrip-on
alias: '[Hallway] Lights strip on' alias: '[Hallway] Motion On'
mode: restart mode: restart
trigger: trigger:
- platform: state - platform: state
@ -20,20 +20,25 @@
state: 'on' state: 'on'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.hallway_lightstrip entity_id: light.hallway_light
- service: light.turn_on
entity_id: light.hallway_light
data: data:
brightness_pct: 100 brightness_pct: 50
kelvin: 2000
- conditions: - conditions:
- condition: state - condition: state
entity_id: input_boolean.sleep_mode entity_id: input_boolean.sleep_mode
state: 'off' state: 'off'
- condition: numeric_state
entity_id: sensor.kitchen_motion_luminance
below: '25'
sequence: sequence:
- service: light.turn_on - service: light.turn_on
entity_id: light.hallway_lightstrip entity_id: light.hallway_light
- service: light.turn_on
entity_id: light.hallway_light
data: data:
brightness_pct: 100 brightness_pct: 90
kelvin: 3200
- conditions: - conditions:
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
@ -60,3 +65,5 @@
action: action:
- service: light.turn_off - service: light.turn_off
entity_id: light.hallway_lightstrip entity_id: light.hallway_lightstrip
- service: light.turn_off
entity_id: light.hallway_light

View File

@ -0,0 +1,9 @@
doorbell_bell:
alias: Doorbell async bell
sequence:
- service: script.turn_on
entity_id: script.doorbell_bell
- delay:
miliseconds: 150
- service: script.turn_off
entity_id: script.doorbell_bell