Author Topic: Boolean and multiple lights?  (Read 1871 times)

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Boolean and multiple lights?
« on: November 17, 2014, 01:45:36 pm »
Trying to bind a boolean to a number of lights but it's not working as I want.
What I did was this:

Code: [Select]
omni.LightLevels[11] >= 1 || omni.LightLevels[12] >= 1
And any time the first light is on/off the boolean responds immediately. But when the second light (#12) is changed the boolean takes over a minute to respond.

Any ideas?

Frunple

  • Hero Member
  • *****
  • Posts: 774
    • View Profile
Re: Boolean and multiple lights?
« Reply #1 on: November 18, 2014, 07:08:38 am »
Update.

Turns out this is working fine but when the second, or third etc, light changes, the TS does not update immediately. If I leave that screen and go right back the change is shown.
Any way to use the "boolean value changed" event to update the screen?? Maybe a refresh?


I got it working. Had to use the "device property changed" event instead.
« Last Edit: November 18, 2014, 07:19:30 am by Frunple »