this post was submitted on 22 Aug 2023
21 points (100.0% liked)
homeassistant
11878 readers
1 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
the 'actual daylight level' is my main automation trigger. I used to do it using the azimuth but that didn't cover rainy days or days with a clouded sky so I added the lux sensor of my outside motion sensor into this. until the battery went out during a holiday. I now have a template sensor named 'reliable light level'. It uses the actual lux sensor as the main value, if that is not available I use the sun azimuth and do some calculations with the date and time to get a light level. after that it was a bit of trying things out to find the perfect levels for
I do this by activating different mode booleans (dim, dark, light) so the automations are triggered by them turning on or off and Incan also check the state of these in the automation conditions.