Either / OR script
Hi to everyone who still visits the forum.
After a number of years of using the HAH to manage our central heating amongst other things, we have made a number of building changes to our house and would like to zone our central heating.
I have 4 script/applets (thanks to garry) running 4 different zones which work fine on their own, but this has its limitations.
What I would like is a very simple script/applet that works as follows:-
If any relay on my RelayNode4{instance="jeenode:kema6",endpoints={relay1=1,relay2=1,relay3=1,relay4=1}, ttl=900}, -(4 ZONES)
is on, then turn on Relay1 (dbzoo.livebox.Controller:relay.1).
Any help whatsoever would be very much appreciated.
Kema...
I'll fire up my trusty HAH development VM and see if I can whip you up something. It might be a day or two if you can bear with me.
Some scripts. The applet is what you want. I'm also attaching my endpoint simulator that I used to verify the applet was working.
Attachment | Size |
---|---|
masterSlaveApplet.lua | 1.69 KB |
masterSlaveEndpointSim.lua | 723 bytes |
Those changes look correct there where two places to change the dbzoo.livebox.Slave.relay.* filter string I assume you did both. You might want to put in debugging print statements in the callback to see if its getting in there. Sounds like its not for some reason which would imply a filter issue. The trick is understanding what I've given you so you can see the path forward.
Kema, Did you have a look at the sample where relays are bound together so they stay in sync?
https://github.com/dbzoo/hah/blob/master/userapps/hah/xap-plugboard/samples/bindRelaysApplet.lua
Doing more would require I wrap my head around my code and figure this out as its been a while.