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

Service_template after 9:00 and before sunset

$
0
0

@vormsty wrote:

Hello,
If I restart home assistant I have to set the state off covers according to the rel state.
If the time is after the 9:00 and befor sunset, the cover is oppen and I have to switches accordingly…
I have the event when the home assistant start, and I have to design a service_template for covers.
I have the first part of the equation:

- service_template: >
       {% if states.sensor.time.state > '09:00' | timestamp_custom('%H:%M')%} and the missing part....
          homeassistant.turn_on
       {% else %}
          homeassistant.turn_off
       {% endif %}
      entity_id: group.livingroom_covers

Many thanks for your help, it will be very appreciated!
Best regards
Thierry

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95482

Trending Articles



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