2 house codes controling same light

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Nullen_Void
Member
Posts: 12
Joined: Sun Sep 24, 2006 11:48 am

2 house codes controling same light

Post by Nullen_Void »

Ok I've got 1 light that I'm controling with 2 different X10 house codes.
At this point to make it work I use the following task but I'm looking for a more efficient way of doing it. Any suggestions?

This task keeps my software remote status and both light switch LED's updated correctly.


Devices
Light (Leviton 6376 inline dimmer)
Landing = A1 (Leviton 16400 & 16450-4W )
Landing (Basement Switch) = B1 (Leviton 16400 & 16450-4W )



If ('Landing (basement Switch).Power State' is Equal 'Off') Then
Change 'Landing.Power State' to 'Off"
Else If ('Landing (basement switch).Power State' is Equal "On') Then
Change 'Landing.Power State' to 'On'
Else If ('Landing.Power State' is Equal 'Off") Then
Change 'Landing (basement switch).Power State' to 'Off'
Else If ('Landing.Power State' is Equal 'On') Then
Change 'Landing (basement switch).Power State' to 'On'
Post Reply