Add doorbell when someone knock on door
This commit is contained in:
parent
fbcb59ee45
commit
4caeecb611
@ -1,4 +1,4 @@
|
||||
- id: front_door_open_notify
|
||||
- id: front-door-open-notify
|
||||
alias: '[INFO] Front door left open'
|
||||
description: ''
|
||||
mode: single
|
||||
@ -10,7 +10,6 @@
|
||||
hours: 0
|
||||
minutes: 30
|
||||
seconds: 0
|
||||
condition: [ ]
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_pg
|
||||
data:
|
||||
@ -19,3 +18,29 @@
|
||||
actions:
|
||||
- action: LOCK_DOOR
|
||||
title: Lock door
|
||||
|
||||
- id: front-door-knock
|
||||
alias: '[Front Door] Knock'
|
||||
trigger:
|
||||
- type: vibration
|
||||
platform: device
|
||||
device_id: f5e5356b4a45190ec2dad08ca9f991e8
|
||||
entity_id: binary_sensor.front_door_vibration
|
||||
domain: binary_sensor
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.front_door_open_close
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.hallway_motion_sensor
|
||||
state: 'off'
|
||||
action:
|
||||
- service: notify.mobile_app_iphone_pg
|
||||
data:
|
||||
message: Someone knock
|
||||
data:
|
||||
actions:
|
||||
- action: LOCK_DOOR
|
||||
title: Lock door
|
||||
- service: script.turn_on
|
||||
entity_id: script.doorbell_bell
|
||||
|
@ -1,4 +1,4 @@
|
||||
- id: hallway-doorbell
|
||||
- id: front-door-doorbell
|
||||
alias: '[Hallway] Doorbell'
|
||||
mode: restart
|
||||
trigger:
|
||||
@ -7,26 +7,11 @@
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
action:
|
||||
- service: script.turn_on
|
||||
entity_id: script.doorbell_bell
|
||||
- service: notify.notify
|
||||
data:
|
||||
message: "Doorbell"
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.mute_doorbell
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: script.turn_on
|
||||
entity_id: script.doorbell_bell
|
||||
- service: script.pause_all_players
|
||||
- service: zwave_js.set_config_parameter
|
||||
data:
|
||||
parameter: '7'
|
||||
value: 'Door bell music'
|
||||
target:
|
||||
device_id: 1502b537888f71390cd2b5adfaec6430
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.siren_switch
|
||||
|
||||
- id: hallway-doorbell-bell-burn-prevention
|
||||
alias: '[Hallway] Doorbell bell burn prevention'
|
||||
|
@ -5,3 +5,12 @@ doorbell_bell:
|
||||
entity_id: switch.doorbell_bell
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.doorbell_bell
|
||||
- service: zwave_js.set_config_parameter
|
||||
data:
|
||||
parameter: '7'
|
||||
value: 'Door bell music'
|
||||
target:
|
||||
device_id: 1502b537888f71390cd2b5adfaec6430
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.siren_switch
|
||||
- service: script.pause_all_players
|
||||
|
Loading…
Reference in New Issue
Block a user