Does the 'sun' component require internet access?

I want my IoT home to work even without the “I”. Not on a regular basis, but it should deal with a connection loss in a reasonable way. My automation rules that feature “online” components therefore contain fallbacks as well.

Question today: Is the sun component (elevation, sunrise, sunset) based on configuration and computing only or does it call an internet service to get required values? Will it work without internet access?

I think as long as you have your lat and long specified, it does everything internally. I just took a quick look at the code and the supporting library (astral).

1 Like