Description
It would be nice to read the current state(position), for example after manual control. I also have an sun sensor, which should be readable with the same functionality. Here is all the data from the sensor. Under states - core:LuminanceState is the interesting value.
{"creationTime":xxxxxxxxxx,
"lastUpdateTime":xxxxxxxxxxx,
"label":"Sonnensensor",
"deviceURL":"io://xxxxxxxxxxx",
"shortcut":false,
"controllableName":"io:LightIOSystemSensor",
"definition":{
"commands":[],
"states":[{"type":"ContinuousState","qualifiedName":"core:LuminanceState"},{"type":"ContinuousState","qualifiedName":"core:RSSILevelState"},
{"values":["dead","lowBattery","maintenanceRequired","noDefect"],"type":"DiscreteState","qualifiedName":"core:SensorDefectState"},
{"values":["available","unavailable"],"type":"DiscreteState","qualifiedName":"core:StatusState"}],
"dataProperties":[{"value":{"activationDelayMap":{"middle":0,"lower":1200,"upper":300},"referenceStates":["middle","lower","upper"],
"qualifiedName":"io:SunSensorHysteresisBehavior"},"qualifiedName":"core:timeBasedHysteresisBehavior"}],
"widgetName":"LuminanceSensor","uiClass":"LightSensor","qualifiedName":"io:LightIOSystemSensor","type":"SENSOR"},
"states":[
{"name":"core:StatusState","type":3,"value":"available"},
{"name":"core:RSSILevelState","type":2,"value":92.0},
{"name":"core:LuminanceState","type":2,"value": 32956.0}
],
"attributes":[
{"name":"core:MeasuredValueType","type":3,"value":"core:LuminanceInLux"},
{"name":"core:MaxSensedValue","type":1,"value":100000},
{"name":"core:MinSensedValue","type":1,"value":50},
{"name":"core:PowerSourceType","type":3,"value":"battery"}
],
"available":true,
"enabled":true,
"placeOID":"xxxxxxx",
"widget":"LuminanceSensor",
"type":2,"oid":"xxxxxxxxx",
"uiClass":"LightSensor"
},