-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call getState to know manual changes/sensor values #6
Comments
I would also be very interested in getting the current position of the shutter. |
I have added both requests to the development version:
However, please node that the luminance thing was not tested on a real device (I currently don't have any sun sensor). Any feedback on that feature would be more than welcome :) I will merge those items and publish a new release very soon. Thanks! |
fantastic, thank you very much! |
Is it possible to also get the status of the window sensor? |
Luminance reading seems to be left out from official API altogether. Even when this was still working, no luminance device can be found in the device list. I can't test anything right now any more because of issue #23. Is anyone in contact with Somfy about luminance device? |
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"
},
The text was updated successfully, but these errors were encountered: