We have moved at community.getvera.com

Author Topic: What is the UDN for the 2GIG CT30 variable ModeState?  (Read 1417 times)

Offline joel

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
What is the UDN for the 2GIG CT30 variable ModeState?
« on: January 14, 2012, 02:57:41 pm »
Hey -- I can use
http://myzwaveip:3480/data_request?id=variableget&UDN=${UDN}&serviceId=urn:upnp-org:serviceId:HVAC_UserOperatingMode1&Variable=ModeStatus
to get the ModeStatus variable, which I assume is the mode setting on the thermostat. What I need though is the actual status (i.e. did the thermostat turn the furnace on). This is reflected by the ModeState variable. I have been able to force the UI to reflect this using Poll now a few times, and refreshing (e.g. it goes from Idle to HeatOn). But I want to get this state programmatically, to monitor the state of my HVAC.

What is the UDN for ModeState?

Is there an http request (or lua from script) that I can send to force the equivalent of Poll now in UI?

Is there a general way to map variables in the UI to luup UDNs? This link only has a few:
http://wiki.mios.com/index.php/Luup_Devices

Thanks -- Joel

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: What is the UDN for the 2GIG CT30 variable ModeState?
« Reply #1 on: January 14, 2012, 03:08:09 pm »
Perhaps easiest is to hover the mouse over the variable in the Advanced tab (and find it's HVAC_OperatingState1 for ModeState).

Also, have a look at this wiki page and this topic.


Dezwaved at the moment...

Offline joel

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
Re: What is the UDN for the 2GIG CT30 variable ModeState?
« Reply #2 on: January 14, 2012, 04:13:37 pm »
Perfect! First I sync state with a Poll call to thermostat device (mine is #23):
http://myzwaveip:3480/data_request?id=action&DeviceNum=23&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=Poll
Then to query whether the furnace is Heating or Idle:
http://myzwaveip:3480/data_request?id=variableget&DeviceNum=23&serviceId=urn:micasaverde-com:serviceId:HVAC_OperatingState1&Variable=ModeState"

Folks, this is seriously awesome! Having this simple http interface to Z-Wave is a huge improvement over what I've tried the last few years: I've done C# with the ControlThink SDK, serial ASCII via Vizia RF -- all wrapped behind ASP.NET, which essentially was my own http protocol. This is by far the superior programmatic interface.

Nice!

Thanks - Joel

PS: I'll update another thread on this question of how to monitor the thermostat.