It shows "0" for both parameters no matter if the device is currently on or off (and the Telldus Live! website shows correctly whether the device is on or not).
What am I doing wrong? Is there anything I have to add to "supportedMethods"?
I have a follow-up question for this. When I retrieve device info from a PHP script, I get an empty response for "statevalues":
...
</name>
<state>
1
</state>
<statevalue />
<statevalues state="2048" value="" />
<methods>
2050
</methods>
<type>
device
</type>
<client>
...
using "$response = $consumer->sendRequest(constant('REQUEST_URI').'/device/info', $params, 'GET');"
with params "id" and "supportedMethods" like described.
However, when I use Telldus API explorer for the same device, I get this:
...
"statevalue": null,
"statevalues": [
{
"state": "2048",
"value": {
"setpoint": {
"heat": "22.0",
"eco-heat": "10.0"
},
"mode": "eco-heat"
}
}
],
"methods": "0",
"type": "device",
...
Why is the response different? Am I missing any params? Could there be some access rights?