add a daylight sensor interface
This commit is contained in:
parent
06763e6d2b
commit
375ac1baea
20
libnymea/interfaces/daylightsensor.json
Normal file
20
libnymea/interfaces/daylightsensor.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"extends": "sensor",
|
||||||
|
"description": "Devices implementing the daylight sensor interface have a boolean state indicating if currently is daylight. Additionally the current times for sunrise and sunset are provided.",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "daylight",
|
||||||
|
"type": "bool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sunriseTime",
|
||||||
|
"unit": "UnixTime",
|
||||||
|
"type": "int"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sunsetTime",
|
||||||
|
"unit": "UnixTime",
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
<qresource prefix="/interfaces">
|
<qresource prefix="/interfaces">
|
||||||
<file>light.json</file>
|
<file>light.json</file>
|
||||||
<file>dimmablelight.json</file>
|
<file>dimmablelight.json</file>
|
||||||
|
<file>daylightsensor.json</file>
|
||||||
<file>colortemperaturelight.json</file>
|
<file>colortemperaturelight.json</file>
|
||||||
<file>colorlight.json</file>
|
<file>colorlight.json</file>
|
||||||
<file>garagegate.json</file>
|
<file>garagegate.json</file>
|
||||||
|
|||||||
Reference in New Issue
Block a user