Sun attributes to sensors (#24704)

This commit is contained in:
G Johansson 2023-03-26 13:55:12 +02:00 committed by GitHub
parent 5b4a78cbec
commit a7515b4181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,14 +73,18 @@ which event (sunset or sunrise) and the offset.
| `above_horizon` | When the sun is above the horizon.
| `below_horizon` | When the sun is below the horizon.
| State Attributes | Description |
## Sensors
The sensors are also available as attributes on the `sun.sun` entity for backwards compatibility reasons.
| Sensors | Description |
| --------- | ----------- |
| `next_rising` | Date and time of the next sun rising (in UTC).
| `next_setting` | Date and time of the next sun setting (in UTC).
| `next_dawn` | Date and time of the next dawn (in UTC).
| `next_dusk` | Date and time of the next dusk (in UTC).
| `next_noon` | Date and time of the next solar noon (in UTC).
| `next_midnight` | Date and time of the next solar midnight (in UTC).
| `elevation` | Solar elevation. This is the angle between the sun and the horizon. Negative values mean the sun is below the horizon.
| `azimuth` | Solar azimuth. The angle is shown clockwise from north.
| Next rising | Date and time of the next sun rising (in UTC).
| Next setting | Date and time of the next sun setting (in UTC).
| Next dawn | Date and time of the next dawn (in UTC).
| Next dusk | Date and time of the next dusk (in UTC).
| Next noon | Date and time of the next solar noon (in UTC).
| Next midnight | Date and time of the next solar midnight (in UTC).
| Elevation | Solar elevation. This is the angle between the sun and the horizon. Negative values mean the sun is below the horizon.
| Azimuth | Solar azimuth. The angle is shown clockwise from north.
| `rising` | True if the Sun is currently rising, after solar midnight and before solar noon.