@Skye is on the money with the altitude thing, except it is called ‘elevation’. Set that properly in your onboarding or configuration.yaml for accurate sunrise and sunset times.
Why are your conditions in the action block?
Also conditions are AND by default so you only need:
- id: volets_ouverture_default
alias: Volets Ouverture 8H/Sunrise
trigger:
- platform: time
at: '08:00:00'
- platform: sun
event: sunrise
condition:
- condition: time
after: '08:00:00'
- condition: state
entity_id: sun.sun
state: above_horizon
action:
- service: cover.close_cover
entity_id: cover.my_shutter
The sun.sun attribute you are looking at is sun next rising, once it has happened that would now be ‘last’ rising, so to be honest, I’m surprised it take 3 minutes to update.
You can ‘cope’ with this in three ways (half the year it will go earlier, though not contiguously) : -
If used in a binary_sensor then you could introduce a delay off of say 2 mins
You could enter today’s values into input_datetime at say 01:30 (or whatever) and use those values that will be valid all day
Use pnbruckner 's enhanced sun component or sun2 component that gives you values for ‘today’ as opposed to ‘tommorow’
this is something Ive never understood correctly apparently. I’ve always taken elevation for the height above sea level, as that is such a dominant mindset in our country which is almost 50% below… (AHN Viewer | AHN)
For your case I would set the elevation to 0. Reason being that even if you are below sea level there must be a dam or dyke between you and the horizon that is at least at sea level or you would be adversely affected by dihydrogen monoxide overdose.
It’s dangerous stuff that but you can buy packets of it in dehydrated form.
Marius, I look at Google earth and that gives you an elevation. It IS height above sea level. But there are lots of places on the Earth’s surface that are lower than you eg the dead Sea.
Edit: the point is also kinda moot if you have a 20’ wall round your property or are surrounded by skyscrapers. It’s just a general rule of thumb for light levels (well my use is) I don’t use it for astral navigation or anything.
I think we can rule out the US, the acting President Liar in Chief doesn’t even know, that the Netherlands are a country. He still thinks, it’s a suburb of Belgium (the city )…
But, if something happens to the Netherlands, you can always come here to Bavaria. We don’t have a lot of space, but everyone is sliding a bit together, than this will work! As long as we can find an understanding about soccer, everything will be fine!
It was very helpful when astronomers had to measure things by hand. If you measure the movement of a star that is close by relative to the starts in the background, you are effectively measuring in degrees. By measuring a stars’ position half a year apart, its apparent location will change depending on the distance. A parsec makes it very easy to directly translate this difference in angle directly to a distance from earth.