add a daylight sensor interface

pull/135/head
Michael Zanetti 2018-12-20 20:21:06 +01:00
parent 06763e6d2b
commit 375ac1baea
2 changed files with 21 additions and 0 deletions

View 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"
}
]
}

View File

@ -2,6 +2,7 @@
<qresource prefix="/interfaces">
<file>light.json</file>
<file>dimmablelight.json</file>
<file>daylightsensor.json</file>
<file>colortemperaturelight.json</file>
<file>colorlight.json</file>
<file>garagegate.json</file>