Hi Blacky,
I’m not sure if I am doing something wrong, but my lights don’t turn off at Sunrise.
I tried to configure the following:
- Lights On between 6:00 and Sunrise. After Sunrise, Lights must turn Off
- Lights turn On at Sunset and turn Off at 23:00.
- Nightlights active between 23:00 and 6:00. During Nightlight, my Lights must be Off and only turned on based On motion.
My motion trigger is a grouped helper and is a combination of:
- Scheduled helper (6:00 to 23:00) that is transferred to a binary sensor by using the Template sensor.
- My motion sensor.
During Night time (23:00 and 6:00) light seems to work ok (Basically Off and turned On for a few minutes based on motion).
Problem is that my lights turn On at 6:00 and turn Off at 23:00, while they should be off during daytime (Sunrise/Sunset)
What am I doing wrong?
This is my Yaml:
alias: "Light: Blueprint Tuin Voor"
description: Verlichting Tuin Voor
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.light_buiten_voor_schedule_and_motion
light_switch:
entity_id: scene.ha_scene_tuin_v_aan
end_scenes:
- scene.ha_scene_tuin_v_uit
include_sun: sun_enabled
time_delay: 2
include_light_control:
- use_transition
light_transition_on: 5
light_transition_off: 15
sun_elevation: -1
sun_elevation_rising: -4
night_lights_sun_elevation: -1
include_night_lights: night_lights_enabled
night_lights:
entity_id:
- scene.ha_scene_tuin_v_aan
include_night_light_control:
- use_transition
night_light_transition_on: 4
night_light_transition_off: 10
night_time_delay: 3
night_lights_after_time: "23:00:00"
night_lights_before_time: "06:00:00"