mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
How about some random delays! Boom! Mic Drop!
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
######################################################################################################
|
||||
###Script to turn on Front light FULL bright for 15m 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: scene.turn_on
|
||||
entity_id: scene.front_full_brightness
|
||||
- delay: '00:10:00'
|
||||
- service: light.turn_off
|
||||
entity_id: group.outdoor_front_lights
|
||||
- delay: '00:00:10'
|
||||
- service: script.monthly_front_house_scene
|
||||
|
||||
|
||||
|
||||
######################################################################################################
|
||||
###Script to turn on Front light FULL bright for 15m 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: scene.turn_on
|
||||
entity_id: scene.front_full_brightness
|
||||
- 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_front_house_scene
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user