Using HTTP Luup interface

I am having difficulties using the HTTP requests to control devices…

I use this URL to get the current set point of the thermostat…
http://10.0.0.20:49451/data_request?id=lu_variableget&DeviceNum=16&serviceId=urn:upnp-org:serviceId:TemperatureSetpoint1_Cool&Variable=CurrentSetpoint

which works correctly,
Then I use this URL to change the set point…

http://10.0.0.20:49451/data_request?id=lu_variableset&DeviceNum=16&serviceId=urn:upnp-org:serviceId:TemperatureSetpoint1_Cool&Variable=CurrentSetpoint&Value=75

And it returns OK,
The Vera dashboard reports the new temperature, and if you gointo devices, ZWave, The Thermostat , it reports the new value.
However, the thermostat isn’t updated!

Is there a command that tells Vera to send the commands out to the devices which must be initiated?

Can anyone throw some light on this?

Thanks!

So no one knows?

As I don’t have access to a Z-Wave thermostat, just a few observations:

According to http://wiki.micasaverde.com/index.php/Luup_UPNP_Files the correct variable for setting the setpoint might be ‘SetCurrentSetpoint’ (instead of ‘CurrentSetpoint’).

Although ‘SetCurrentSetpoint’ is declared as a variable, the prefix ‘Set’ suggests that it is
an action (you could check this with Intel’s UPnP device spy). So, give lu_action/SetCurrentSetpoint a try.

In addition, you could try to reconfigure your thermostat after changing the setpoint
(Luup Lua extensions syntax: luup.call_action( ‘urn:micasaverde-com:serviceId:HaDevice1’, ‘Reconfigure’, {}, DevNum)).

If your thermostat is battery-powered, your thermostat will be configured at the next wakeup.

Please let us know your results.

THANK YOU!
I tried:
http://10.0.0.20:49451/data_request?id=lu_variableset&DeviceNum=16&serviceId=urn:upnp-org:serviceId:TemperatureSetpoint1_Cool&Variable=SetCurrentSetpoint&Value=80

which uses the SetCurrentSetpoint instead of CurrentSetpoint, and it did nothing observable, except respond with OK.

Without Set, it did change the GUI within Vera…

As for the reconfigure, I am not sure how to implement that via the web interface…

(Luup Lua extensions syntax: luup.call_action( ‘urn:micasaverde-com:serviceId:HaDevice1’, ‘Reconfigure’, {}, DevNum)).

I have developed an AGI interface for Asterisk (So you can change the thermostat, and anything else for that matter) from a telephone…

However, the set commands don’t seem to make it to the device… So, I am still at a loss…

Actually, I ran the SetCurrent… and it did do something…
I then ran it with SetXXXCurret… and it did the same… See the device status below…

<state_22 service=“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool” variable=“CurrentSetpoint” value=“72”/>
<state_23 service=“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool” variable=“SetCurrentSetpoint” value=“80”/>
<state_24 service=“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool” variable=“SetXXXXCurrentSetpoint” value=“80”/>
<state_25 service=“urn:upnp-org:serviceId:HVAC_FanOperationMode1” variable=“ModeStatus” value=“Auto”/>

Try

http://[ipadress]:49451/data_request?id=lu_action&DeviceNum=[DevNum]&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=Reconfigure

See

http://forum.micasaverde.com/index.php?topic=1503.msg5092#msg5092

for an explanation of UPnP variables.

Unfortunately, I do not know of a way to delete UPnP variables …

That didn’t work either.
I think I am missing something…
The original commands update the GUI, but the changes aren’t pushed out to the device…

Hmm…

You gave me an idea…
So I did what I do best…
I reverse engineered the Smart Phone web interface…
and reconstructed the command from the Form Post command.

Here is a/the command to set the temperature on the thermostat…

http://10.0.0.20:49451/data_request?id=lr_sPhone_action&room=2&device=16&service=urn:upnp-org:serviceId:TemperatureSetpoint1_Cool&action=SetCurrentSetpoint&NewCurrentSetpoint=72

You see, before I was setting the VARIABLE, which didn’t do anything to the device. It required and ACTION, which works in conjunction with the SETxxxx hat you referred to earlier.
It makes perfect sense now!!

Anyhow, once I implement these commands into the AGI, you are welcome to a copy of the AGI script which runs in asterisk to control your thermostat…

THANKS!

@MCV:
Please update http://wiki.micasaverde.com/index.php/Luup_UPNP_Files
(“SetCurrentSetpoint” seems to be an action, not a variable).