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?
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.
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…
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…