mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 13:29:12 +00:00
Monthly Scene code uses 2 digits for 1 through 9 months.
This commit is contained in:
parent
9b5ffa1009
commit
3c8e5e9d66
@ -2,10 +2,10 @@
|
||||
# http://www.w3schools.com/colors/colors_hex.asp
|
||||
|
||||
# service: scene.turn_on
|
||||
# entity_id: scene.month_front_1_colors
|
||||
# entity_id: scene.month_front_01_colors
|
||||
|
||||
|
||||
- name: month_front_1_colors
|
||||
- name: month_front_01_colors
|
||||
entities:
|
||||
light.outdoor_sconce_2:
|
||||
state: 'on'
|
||||
|
@ -1,5 +1,5 @@
|
||||
######################################################################################################
|
||||
###[SkyBell HD](http://amzn.to/2dcexIB) Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors.
|
||||
###[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
|
||||
#
|
||||
|
@ -3,7 +3,7 @@
|
||||
# action:
|
||||
# - service: script.monthly_front_house_scene
|
||||
#
|
||||
# scenes should be named month_front_[1-12]_colors (month_front_6_colors)
|
||||
# scenes should be named month_front_[01-12]_colors (month_front_06_colors)
|
||||
######################################################################################################
|
||||
|
||||
monthly_front_house_scene:
|
||||
@ -12,6 +12,11 @@ monthly_front_house_scene:
|
||||
entity_id: sun.sun
|
||||
state: 'below.horizon'
|
||||
|
||||
- service: logbook.log
|
||||
data_template:
|
||||
name: "Launching Scene:"
|
||||
message: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
|
||||
|
||||
- service: scene.turn_on
|
||||
data_template:
|
||||
entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"
|
||||
|
Loading…
x
Reference in New Issue
Block a user