This commit is contained in:
2022-03-13 08:26:26 +01:00
parent 5fe764eb1c
commit bf64bfd873
+11 -2
View File
@@ -6,12 +6,21 @@
- alias: 'Sunset Stuff on' - alias: 'Sunset Stuff on'
trigger: trigger:
- platform: sun platform: state
event: sunset entity_id: binary_sensor.stue_motion_sensor
to: 'on'
# - platform: sun
# event: sunset
# offset: "-00:20:00" # offset: "-00:20:00"
condition: condition:
- condition: time - condition: time
after: '15:00:00'
before: '22:00:00' before: '22:00:00'
- condition: numeric_state
entity_id: sensor.forgang_sensor_illuminance
below: 50
action: action:
# - delay: '00:{{ (range(1, 20)|random|int) }}:00' # - delay: '00:{{ (range(1, 20)|random|int) }}:00'
- service: script.monthly_color_scene - service: script.monthly_color_scene