Set point - Virtual Device?

Guys,

Being a pretty clueless newbie I am rapidly getting confused about LUA, LuuP, UpnP and all the new and exiting things around here.
I am sure I can get my head around it at last, but would really appreciate some help pushing me in the right direction. :slight_smile:

I am trying to achieve the following:

  1. Have a “device” on the dashboard where I set and read the desired temperature (and possible the actual sensor reading)
  2. Create a scene that compares the set point from the virtual device with actual temperature sensor readings
  3. Turns heating on or off based on delta between set point and reading

I am pretty sure I can cope with 2) and 3) above, but the first challenge is halting any progress…

I thought I could just create a virtual device using a HVAC_Thermostat device as starting point. So I created a device using the D_HVAC_ZoneThermostat1.xml as Upnp Device Filename.
The device is created OK, but I can’t do anything sensible with it. Trying to adjust set points or pushing buttons only triggers a “No Implementation” error. As far as I can see, no variables are changed under the Advanced tab either. In fact, I can’t even see any Setpoint variable field there.

Any suggestions on how to create the virtual device just to enter and display set point would certainly be valuable, and very much appreciated!

[tt]http://forum.micasaverde.com/index.php/topic,8363.msg53275.html#msg53275[/tt]

Perfect, thanks!

That I_HVAC_ZoneThermostat1.xml did the trick, guess missing that one is what created the “No Implementation” errors. I’m getting the logic now. :slight_smile:
These files deserve space in the common library.

I’ll go on making a subset of the D_ and I_ xml’s with just the basic stuff I need, and it should be able to run like intended.

Then the next challenge is to be able to define the setpoint both from Vera and the sensor device. Which means I need to make the most recently changed value the master of both. Is there a time stamp for the variables I could utilize? Any other suggestions?

This is cool stuff, thanks again! 8)