diff --git a/include/automations/sunset_turn_on.yaml b/include/automations/sunset_turn_on.yaml index 88eb0c3..be7395f 100644 --- a/include/automations/sunset_turn_on.yaml +++ b/include/automations/sunset_turn_on.yaml @@ -6,12 +6,21 @@ - alias: 'Sunset Stuff on' trigger: - - platform: sun - event: sunset + platform: state + entity_id: binary_sensor.stue_motion_sensor + to: 'on' + +# - platform: sun +# event: sunset # offset: "-00:20:00" condition: - condition: time + after: '15:00:00' before: '22:00:00' + - condition: numeric_state + entity_id: sensor.forgang_sensor_illuminance + below: 50 + action: # - delay: '00:{{ (range(1, 20)|random|int) }}:00' - service: script.monthly_color_scene