Skip to content

Commit 34a0ade

Browse files
marthocMartinHjelmare
authored andcommitted
Add deCONZ daylight sensor (home-assistant#5028)
* Add deCONZ daylight sensor * ✏️ Minor changes * 🚑 Fixes build issue * 🚑 Fixes incorrect tag
1 parent 96c997b commit 34a0ade

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

source/_components/sensor.deconz.markdown

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,28 @@ Entity ids will be sensor.device_name, where device_name is defined in deCONZ. S
4343
- Xiaomi Smart Home Wireless Switch
4444
- Temperature Sensor
4545
- Xiaomi Temperature/Humidity Sensor
46+
47+
#### {% linkable_title deCONZ Daylight Sensor %}
48+
49+
The deCONZ Daylight sensor is a special sensor built into the deCONZ software since version 2.05.12. It is represented in Home Assistant as a sensor called sensor.daylight. The sensor's state value is a string corresponding to the phase of daylight (descriptions below taken from https://github.com/mourner/suncalc, on which the deCONZ implementation is based):
50+
51+
| Sensor State | Description |
52+
|--------------|-------------|
53+
| sunrise_start | sunrise (top edge of the sun appears on the horizon) |
54+
| sunrise_end | sunrise ends (bottom edge of the sun touches the horizon) |
55+
| golden_hour_1 | morning golden hour (soft light, the best time for photography) |
56+
| solar_noon | solar noon (sun is in the highest position) |
57+
| golden_hour_2 | evening golden hour |
58+
| sunset_start | sunset starts (bottom edge of the sun touches the horizon) |
59+
| sunset_end | sunset (sun disappears below the horizon, evening civil twilight starts) |
60+
| dusk | dusk (evening nautical twilight starts) |
61+
| nautical_dusk | nautical dusk (evening astronomical twilight starts) |
62+
| night_start | night starts (dark enough for astronomical observations) |
63+
| nadir | nadir (darkest moment of the night, the sun is in the lowest position) |
64+
| night_end | night ends (morning astronomical twilight starts) |
65+
| nautical_dawn | nautical dawn (morning nautical twilight starts) |
66+
| dawn | dawn (morning nautical twilight ends, morning civil twilight starts) |
67+
68+
The sensor also has an attribute called "daylight" that has the value `true` when the sensor's state is `golden_hour_1`, `solar_noon`, or `golden_hour_2`, and `false` otherwise.
69+
70+
These states can be used in automations as a trigger (e.g., trigger when a certain phase of daylight starts or ends) or condition (e.g., trigger only if in a certain phase of daylight).

0 commit comments

Comments
 (0)