mirror of https://github.com/nymea/nymea.git
add a daylight sensor interface
parent
06763e6d2b
commit
375ac1baea
|
|
@ -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">
|
||||
<file>light.json</file>
|
||||
<file>dimmablelight.json</file>
|
||||
<file>daylightsensor.json</file>
|
||||
<file>colortemperaturelight.json</file>
|
||||
<file>colorlight.json</file>
|
||||
<file>garagegate.json</file>
|
||||
|
|
|
|||
Loading…
Reference in New Issue