diff --git a/libnymea/interfaces/daylightsensor.json b/libnymea/interfaces/daylightsensor.json new file mode 100644 index 00000000..db82c096 --- /dev/null +++ b/libnymea/interfaces/daylightsensor.json @@ -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" + } + ] +} diff --git a/libnymea/interfaces/interfaces.qrc b/libnymea/interfaces/interfaces.qrc index 0ad2c938..22f7e751 100644 --- a/libnymea/interfaces/interfaces.qrc +++ b/libnymea/interfaces/interfaces.qrc @@ -2,6 +2,7 @@ light.json dimmablelight.json + daylightsensor.json colortemperaturelight.json colorlight.json garagegate.json