#Sun elevation

1 messages · Page 1 of 1 (latest)

vivid narwhal
#

Please can someone drop his/her working setting for sun elevation?
Currently I use sunrise and sunset + offset as a mean of controlling the lighting but this is not ideal.

` conditions:

  • condition: sun
    before: sunrise
    after: sunset
    before_offset: -01:00:00
    after_offset: -01:00:00`
inner shadow
#

The time can never be both before sunrise and after sunset, are you using that to prevent the automation from running?

vivid narwhal
#

I have this in all the automations and the automations work

wintry copper
#

The basic trigger format to use is there, though...

#

( availability_template.jinja is in HACS)

dusky wedge
#

Before sunrise / after sunset is a valid (and documented) setting.
If you want to use sun elevation instead of time, you just need a numeric state trigger/condition, using the elevation attribute of sun.sun. Is that what you're asking for help with, what specifically about it?

vivid narwhal
wintry copper
#

That's from a weather integration accuweather I think

vivid narwhal
#

sophisticated by clever, indeed dark clouds lead to low lighting conditions during the day

wintry copper
#

It works pretty well. I had a condition where one of the lights I had on for other reasons, and had to doink it to allow that.