Move doorbell alert to Node-RED
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: b0d3375544...f92496a9ae
@ -526,87 +526,87 @@ automation:
|
|||||||
tag: kallen-pickup
|
tag: kallen-pickup
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
|
||||||
- id: 395ebb76-83e4-4a7c-913e-2598fef3d5c1
|
# - id: 395ebb76-83e4-4a7c-913e-2598fef3d5c1
|
||||||
alias: Doorbell Alert
|
# alias: Doorbell Alert
|
||||||
trigger:
|
# trigger:
|
||||||
- alias: "Doorbell Rings"
|
# - alias: "Doorbell Rings"
|
||||||
platform: state
|
# platform: state
|
||||||
entity_id: binary_sensor.front_doorbell_ding_mqtt
|
# entity_id: binary_sensor.front_doorbell_ding_mqtt
|
||||||
from: "off"
|
# from: "off"
|
||||||
to: "on"
|
# to: "on"
|
||||||
condition:
|
# condition:
|
||||||
- alias: "Are we home?"
|
# - alias: "Are we home?"
|
||||||
condition: state
|
# condition: state
|
||||||
entity_id: group.adults
|
# entity_id: group.adults
|
||||||
state: "home"
|
# state: "home"
|
||||||
action:
|
# action:
|
||||||
- alias: "Save Current Light State"
|
# - alias: "Save Current Light State"
|
||||||
service: scene.create
|
# service: scene.create
|
||||||
data:
|
# data:
|
||||||
scene_id: doorbell_lights_restore
|
# scene_id: doorbell_lights_restore
|
||||||
snapshot_entities:
|
# snapshot_entities:
|
||||||
- light.living_room_overhead
|
# - light.living_room_overhead
|
||||||
- light.living_room_led_strip
|
# - light.living_room_led_strip
|
||||||
- light.dining_room_lamp
|
# - light.dining_room_lamp
|
||||||
- light.tina_lamp_top
|
# - light.tina_lamp_top
|
||||||
- light.tina_lamp_side
|
# - light.tina_lamp_side
|
||||||
- light.tina_desk_strip
|
# - light.tina_desk_strip
|
||||||
- alias: "Save Current Adaptive State"
|
# - alias: "Save Current Adaptive State"
|
||||||
service: scene.create
|
# service: scene.create
|
||||||
data:
|
# data:
|
||||||
scene_id: doorbell_adaptive_restore
|
# scene_id: doorbell_adaptive_restore
|
||||||
snapshot_entities:
|
# snapshot_entities:
|
||||||
- switch.adaptive_lighting_tina_lamp
|
# - switch.adaptive_lighting_tina_lamp
|
||||||
- switch.adaptive_lighting_living_room
|
# - switch.adaptive_lighting_living_room
|
||||||
- alias: "Turn Adaptive Lighting off"
|
# - alias: "Turn Adaptive Lighting off"
|
||||||
service: switch.turn_off
|
# service: switch.turn_off
|
||||||
target:
|
# target:
|
||||||
entity_id:
|
# entity_id:
|
||||||
- switch.adaptive_lighting_tina_lamp
|
# - switch.adaptive_lighting_tina_lamp
|
||||||
- switch.adaptive_lighting_living_room
|
# - switch.adaptive_lighting_living_room
|
||||||
- alias: "Turn dining room lamp off"
|
# - alias: "Turn dining room lamp off"
|
||||||
service: light.turn_off
|
# service: light.turn_off
|
||||||
target:
|
# target:
|
||||||
entity_id: light.dining_room_lamp
|
# entity_id: light.dining_room_lamp
|
||||||
- alias: "Turn Lights On"
|
# - alias: "Turn Lights On"
|
||||||
service: light.turn_on
|
# service: light.turn_on
|
||||||
target:
|
# target:
|
||||||
entity_id:
|
# entity_id:
|
||||||
- light.living_room_lights
|
# - light.living_room_lights
|
||||||
- light.tina_lamp
|
# - light.tina_lamp
|
||||||
- light.tina_desk_strip
|
# - light.tina_desk_strip
|
||||||
- light.living_room_led_strip
|
# - light.living_room_led_strip
|
||||||
data:
|
# data:
|
||||||
color_name: green
|
# color_name: green
|
||||||
- alias: "Make LED strip flash"
|
# - alias: "Make LED strip flash"
|
||||||
service: lifx.effect_pulse
|
# service: lifx.effect_pulse
|
||||||
target:
|
# target:
|
||||||
entity_id: light.living_room_led_strip
|
# entity_id: light.living_room_led_strip
|
||||||
data:
|
# data:
|
||||||
power_on: true
|
# power_on: true
|
||||||
mode: ping
|
# mode: ping
|
||||||
period: 1
|
# period: 1
|
||||||
cycles: 30
|
# cycles: 30
|
||||||
color_name: white
|
# color_name: white
|
||||||
brightness: 255
|
# brightness: 255
|
||||||
- alias: "End early if door opened"
|
# - alias: "End early if door opened"
|
||||||
wait_template: "{{ is_state('binary_sensor.front_door','on') }}"
|
# wait_template: "{{ is_state('binary_sensor.front_door','on') }}"
|
||||||
timeout:
|
# timeout:
|
||||||
seconds: 30
|
# seconds: 30
|
||||||
- alias: "Return lights to previous state"
|
# - alias: "Return lights to previous state"
|
||||||
service: scene.turn_on
|
# service: scene.turn_on
|
||||||
target:
|
# target:
|
||||||
entity_id: scene.doorbell_lights_restore
|
# entity_id: scene.doorbell_lights_restore
|
||||||
- delay:
|
# - delay:
|
||||||
seconds: 3
|
# seconds: 3
|
||||||
- alias: "Stop LED strip effect"
|
# - alias: "Stop LED strip effect"
|
||||||
service: lifx.effect_stop
|
# service: lifx.effect_stop
|
||||||
target:
|
# target:
|
||||||
entity_id: light.living_room_led_strip
|
# entity_id: light.living_room_led_strip
|
||||||
- alias: "Return Adaptive Lighting to previous state"
|
# - alias: "Return Adaptive Lighting to previous state"
|
||||||
service: scene.turn_on
|
# service: scene.turn_on
|
||||||
target:
|
# target:
|
||||||
entity_id: scene.doorbell_adaptive_restore
|
# entity_id: scene.doorbell_adaptive_restore
|
||||||
|
|
||||||
- id: 481e7756-9549-413f-9b41-5b0f8c5f5cba
|
- id: 481e7756-9549-413f-9b41-5b0f8c5f5cba
|
||||||
alias: iOS Skip Away Mode
|
alias: iOS Skip Away Mode
|
||||||
|
Reference in New Issue
Block a user