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

Sun.sun entity not working

$
0
0

@tung256 wrote:

i have a window cover working great with Time. but now, I see it should be better if the automation is based on the sun rise or sunset.

code with Time:

- id: '1572921598489'
  alias: auto window open
  trigger:
  - at: 08:00:00
    platform: time
  action:
  - data:
      entity_id: cover.motorized_blinds
    service: cover.close_cover

changing to sun does not work. what’s the trick?

- id: '1572921598489'
  alias: auto window open
  trigger:
  - entity_id: sun.sun
    from: 'below_horizon '
    platform: state
    to: above_horizon
  action:
  - data:
      entity_id: cover.motorized_blinds
    service: cover.close_cover	

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95386

Trending Articles



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