We have moved at community.getvera.com

Author Topic: noob:sending Binary Switch SET command. please explain  (Read 1986 times)

Offline UKsub

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-1
noob:sending Binary Switch SET command. please explain
« on: July 09, 2012, 06:55:47 pm »
forgive my dumbness, i am a complete newbie here.
I have a two-channel ASR2-RF boiler control unit which i wish to send a "Binary Switch SET command" as opposed to the (easily controlable "Thermostat Mode SET command". My vera, by default has given me access to the thermostat mode set but the ASR unit times out unless a continous/regular signal is received. Using the "binary switch set command" the unit should respond similarly without the failsafe time out.
As far as i can make out i need a short command to switch using the binary method but i have no idea how to syntax the code.

the unit i wish to control is this: http://www.pepper1.net/zwavedb/device/44
Can anyone please help.
many thanks
« Last Edit: July 09, 2012, 07:01:10 pm by UKsub »

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: noob:sending Binary Switch SET command. please explain
« Reply #1 on: July 13, 2012, 12:07:13 pm »
Hi,

You can find some info on how to send Z-Wave commands on this thread: http://forum.micasaverde.com/index.php/topic,9034.msg59377.html#msg59377

Offline UKsub

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-1
Re: noob:sending Binary Switch SET command. please explain
« Reply #2 on: July 20, 2012, 05:06:19 am »
Many thanks for the reply. I spent some time and found a better solution whereby the vera checks the state of the device at regular intervals and then repeats the output back to the device. This keeps the system "alive" and prevents the receiving unit shutting down under failsafe conditions. However, this still should allow a failsafe to occur if comms is lost.

Code: [Select]
-- device#14 Hot water
local HVACstatus = luup.variable_get("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "ModeStatus", 14)

if (HVACstatus == "HeatOn") then
luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "SetModeTarget", {NewModeTarget = "HeatOn"}, 14)
else
luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "SetModeTarget", {NewModeTarget = "Off"}, 14)
end

-- device#15 Heating
local HVACstatus = luup.variable_get("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "ModeStatus", 15)

if (HVACstatus == "HeatOn") then
luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "SetModeTarget", {NewModeTarget = "HeatOn"}, 15)
else
luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "SetModeTarget", {NewModeTarget = "Off"}, 15)
end
I put this code on a "every 20minutes" schedule so it runs automatically
« Last Edit: July 20, 2012, 05:09:27 am by UKsub »

Offline pncarrerars

  • Sr. Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: noob:sending Binary Switch SET command. please explain
« Reply #3 on: July 20, 2012, 10:48:49 am »
Thanks UKsub, you have just saved me a load of time as the BinarySet does not seem to work!

However for me this is not fail safe as if Vera fails in the winter the boiler & heating will go off & the house could freeze. I shall maybe try wiring it the other way round using the NC contacts so that it all fails on.
« Last Edit: July 20, 2012, 10:55:01 am by pncarrerars »