You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.deconz.markdown
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,3 +43,28 @@ Entity ids will be sensor.device_name, where device_name is defined in deCONZ. S
43
43
- Xiaomi Smart Home Wireless Switch
44
44
- Temperature Sensor
45
45
- 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) |
| 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