Luup Get ModeState

Hello,

I try to do a LUUP with Work With VEra (Nest), but I have a problem my Luup don’t work.

I think my Get ModeState not working but why ?

local state = luup.variable_get(“urn:upnp-org:serviceId:HVAC_UserOperatingMode1”,“ModeState”,33)
if state == ‘Heating’
then
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “0”}, SCirculateur)
end

Thx for help

This documentation:

http://wiki.micasaverde.com/index.php/Luup_UPnP_Variables_and_Actions#HVAC_UserOperatingMode1

…would suggest that it’s ModeStatus, not ModeState.

or possibly you need:

urn:micasaverde-com:serviceId:HVAC_OperatingState1 with variable ModeState?

Yes is
urn:micasaverde-com:serviceId:HVAC_OperatingState1…

Thx :slight_smile: