weird timing issue with events...

So I have an ISY with the ISY plugin and I have been using a button on my dining room ISY to turn on our living room lamps. Those lamps were using z-wave lamp dimmers and my PLEG to turn off the button (via a pleg action that calls a scene on the ISY for when I “automate” those lights). This worked very well. Clicking the button turned on the lights (and turning the light on), and clicking it again turned off the lights (And the button, which was always on the Insteon side).

I just changed those lamps from z-wave dimmers to Cree Connected bulbs and my Hue system (using the Philips hue plugin). The lights work great, but now, when I turn off the light at the KPL, the button turns back on! I’m sure I know why this is. I am doing this to turn the button “Off”:

c_DiningRoomSceneController_7_OFF - !t_LivingRoomTorchiereLamp_On AND !t_LivingRoomSofaLamp1_ON AND !t_LivingRoomSofaLamp2_ON

And this to turn it on

c_DiningRoomSceneController_7_OFF - !c_DiningRoomSceneController_7_OFF

I even tried changing it to this to turn it on:

c_DiningRoomSceneController_7_OFF - t_LivingRoomTorchiereLamp_On OR t_LivingRoomSofaLamp1_ON OR t_LivingRoomSofaLamp2_ON

My guess is that the events for turning the lights “on” are somehow firing and causing the button to turn back on before it turns off. I would think that ultimately it would settle with the button off but that is not the case. Any suggestions on how to fix this? Would I be better suited using a variable and/or MS to keep track of whether or not the lights were turned on at the switch? Is there some kind of timing I can implement?

I will attach a copy of my status report just in case I’m missing something.

Anyone have any ideas? This is really affecting the WAF of the system… “I turned it off, but the light comes back on!”

Well from your status report:

t_LivingRoomSofaLamp1_ON Living Room: Sofa Lamp 1 is turned on false 2015?03?04 10:11:40.130 2015?03?04 10:11:45.630
t_LivingRoomSofaLamp2_ON Living Room: Sofa Lamp 2 is turned on false 2015?03?04 10:11:39.880 2015?03?04 10:11:45.381
t_LivingRoomTorchiereLamp_On Living Room: Torchiere Lamp2 is turned on true 2015?03?03 17:00:15.749 2015?03?03 13:52:37.7

So that’s why it’s ON … for it yo be OFF, t_LivingRoomTorchiereLamp_On would need to be FALSE.

I will need to regenerate a status report tomorrow after I press the button. I’m not sure that was taken right after the button press and that is my oversight.

@RichardTSchaefer, you were so right! I didn’t change over one of my triggers! The torchier lamp trigger was still pointing to the z-wave dimmer (which was on) and it was on. Since i had changed the actions for turning lamps on/off, it was always on, while all the Hue bulbs turned off.

Sorry about this :slight_smile: