Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107403

Template time minus 1 second

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 107403

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>