I want my shutters up by sunrize, but not before a certain time but also at least at this certain time.
So I did this :
alias: Rolluiken 's morgens op
description: ''
trigger:
- platform: sun
event: sunrise
offset: '0'
- platform: time
at: input_datetime.tijdstip_rolluik_morgen
condition:
- condition: time
after: input_datetime.tijdstip_rolluik_morgen
action:
- service: script.rolluiken_automatisch_op
mode: single
But this means that in summer this willl cause a problem, cause when it goes off on the time of the helper the condition will never be ok (will be equal and not ‘after’).
So I have to create a template as condition, where the time of the trigger must be greater that the helper minus 1 second…but how do I do this ?
2 posts - 2 participants