Hello,
I hope you can help me. Actually a very simple task but I’m just desperate for it.
The light should automatically approach by means of a movement. But only if a sensor tells me that it is dark and it is between a certain time.
When I remove the time condition it works.
#########BEWEGUNG
- alias: Badezimmerlicht einschalten tagsueber
trigger:
platform: state
entity_id: sensor.motion_badezimmersensor
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: sensor.badezimmer_dunkel
state: 'True'
- condition: time
after: '05:29:59'
before: '00:29:59'
action:
service: light.turn_on
entity_id:
- light.badezimmerdeckenleuchte
- light.badezimmerspiegel
data_template:
brightness: 250