I'm trying to setup a switch in the upstairs hallway where a double tap of the bottom rocker turns off the downstairs lights and keeps the status correct in the HAI controller. HAI by default programs the switches to transmit status on links 242 and 241. Great, but the HAI controller "when upb switch off pressed" doesn't know the difference between single and double taps.
If I configure the transmit links to unused and check the "report light level after rocker switch is pressed" box the HAI controller will still see the status. This does break the "when upb switch off pressed" code, which I am not using anyway.
With that configuration I have freed up the transmit links to control other switches. The issue is I have two downstairs HLC rooms I want to turn off. I can't just transmit activate to the HLC room off link as I have more than one room. If I have the upstairs switch transmit on an unsued link and all downstairs switches receive that link the lights turn off, but the HAI controller status doesn't update.
I decided to add HAI program logic to create the functionality I needed. However the below code only works 50% of the time. Unfortunately the switch is sending the status command after the transmit command is sent. A collision sometimes occurs between the switch status and HAI controller sending the kitchen/family off command. When this happens the dinning room lights turn off, but the kicthen/family lights remain on.
The UPB protocol without collision detection and the ability to transmit separate links for single vs double tap really makes some things hard to program. Additionally the switch not sending its status first before the transmit commands, doesn't help either. Any thoughts on how to get this working reliably?
17. WHEN UPB LINK 225 ON
THEN Kitchn/Famly OFF
THEN Dining Room OFF
UPB Log
2,07/08/2013 23:52:17,2/2,25,Activate,18,Unit 018 - Common - Upstairs,Bottom Rocker,-225,,,
2,07/08/2013 23:52:18,2/2,25,State,18,Unit 018 - Common - Upstairs,,0,,,0
1,07/08/2013 23:52:18,2/2,25,Activate,255,,,-2,[multiple receivers],,
1,07/08/2013 23:52:19,4/4,25,Indicate,255,,,-193,,,
1,07/08/2013 23:52:20,2/2,25,Activate,255,,,-8,[multiple receivers],,
1,07/08/2013 23:52:21,4/4,25,Indicate,255,,,-194,,,
If I configure the transmit links to unused and check the "report light level after rocker switch is pressed" box the HAI controller will still see the status. This does break the "when upb switch off pressed" code, which I am not using anyway.
With that configuration I have freed up the transmit links to control other switches. The issue is I have two downstairs HLC rooms I want to turn off. I can't just transmit activate to the HLC room off link as I have more than one room. If I have the upstairs switch transmit on an unsued link and all downstairs switches receive that link the lights turn off, but the HAI controller status doesn't update.
I decided to add HAI program logic to create the functionality I needed. However the below code only works 50% of the time. Unfortunately the switch is sending the status command after the transmit command is sent. A collision sometimes occurs between the switch status and HAI controller sending the kitchen/family off command. When this happens the dinning room lights turn off, but the kicthen/family lights remain on.
The UPB protocol without collision detection and the ability to transmit separate links for single vs double tap really makes some things hard to program. Additionally the switch not sending its status first before the transmit commands, doesn't help either. Any thoughts on how to get this working reliably?
17. WHEN UPB LINK 225 ON
THEN Kitchn/Famly OFF
THEN Dining Room OFF
UPB Log
2,07/08/2013 23:52:17,2/2,25,Activate,18,Unit 018 - Common - Upstairs,Bottom Rocker,-225,,,
2,07/08/2013 23:52:18,2/2,25,State,18,Unit 018 - Common - Upstairs,,0,,,0
1,07/08/2013 23:52:18,2/2,25,Activate,255,,,-2,[multiple receivers],,
1,07/08/2013 23:52:19,4/4,25,Indicate,255,,,-193,,,
1,07/08/2013 23:52:20,2/2,25,Activate,255,,,-8,[multiple receivers],,
1,07/08/2013 23:52:21,4/4,25,Indicate,255,,,-194,,,