mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 13:29:12 +00:00
41 lines
1.3 KiB
YAML
Executable File
41 lines
1.3 KiB
YAML
Executable File
######################################################################################################
|
|
###[SkyBell HD](http://amzn.to/2dcexIB) Script to turn on Front light FULL bright for 5 to 20m when motion is detected and then return to the normal colors.
|
|
# action:
|
|
# - service: script.front_house_motion
|
|
#
|
|
######################################################################################################
|
|
|
|
front_house_motion:
|
|
sequence:
|
|
- service: logbook.log
|
|
data:
|
|
name: "SkyBell HD Doorbell:"
|
|
message: "Someone is by the door."
|
|
|
|
- condition: state
|
|
entity_id: sun.sun
|
|
state: 'below_horizon'
|
|
|
|
- service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.alert_mode
|
|
- service: script.Voice_notify
|
|
data:
|
|
value1: 'Motion has been detected by the front door.'
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.alert_mode
|
|
- service: scene.turn_on
|
|
entity_id: scene.front_full_brightness
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.alert_mode
|
|
- delay: '00:{{ (range(5, 20)|random|int) }}:00'
|
|
- service: light.turn_off
|
|
entity_id: group.outdoor_front_lights
|
|
- delay: '00:00:10'
|
|
- service: script.monthly_color_scene
|
|
|
|
|
|
|
|
|