Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to run program based on status of Hue bulbs?

Featured Replies

Posted

Running polyglot v2 with the Hue nodeserver and in the AC I can see the status of the bulbs.

I have two lamps on my headboard and a 6 button KPL in my bedroom where one of the buttons toggles a scene.

I'm trying to turn off that scene (MasterHeadboardLights) when the bulbs are (both) off.

I made a program that says:

MasterHeadboardSceneOff - [ID 002A][Parent 0001]

If
        'Hue Bridge / Left Light' Status is 0.0000%
    And 'Hue Bridge / Right Light' Status is 0.0000%
 
Then
        Set 'Upstairs / MasterHeadboardLights' Off
 
Else
   - No Actions - (To add one, press 'Action')

 

But it doesn't work.

What am I missing?

I can use my phone to turn the scene on and off and see the KPL key light up and go dark.

Running 5.0.14.

Any thoughts?

Thanks

19 minutes ago, danbutter said:

Running polyglot v2 with the Hue nodeserver and in the AC I can see the status of the bulbs.

I have two lamps on my headboard and a 6 button KPL in my bedroom where one of the buttons toggles a scene.

I'm trying to turn off that scene (MasterHeadboardLights) when the bulbs are (both) off.

I made a program that says:


MasterHeadboardSceneOff - [ID 002A][Parent 0001]

If
        'Hue Bridge / Left Light' Status is 0.0000%
    And 'Hue Bridge / Right Light' Status is 0.0000%
 
Then
        Set 'Upstairs / MasterHeadboardLights' Off
 
Else
   - No Actions - (To add one, press 'Action')

 

But it doesn't work.

What am I missing?

I can use my phone to turn the scene on and off and see the KPL key light up and go dark.

Running 5.0.14.

Any thoughts?

Thanks

I have none now but...

Can you use "switched" instead?
Can you use "Off"?
Can you use < 1% ? Why so many decimal places? I suspect ISY is showing you a rounded off value and never really matched 0.0000%

BTW: Your AND specifies you must have both off. This will not work with "Switched" triggering. Two devices are never triggered at the same time with ISY logic.

  • Author

Well I feel silly. I looked at polyglot and it said connected, but it wasn't. I restarted it and the program worked.

I tried a couple different things and I stopped on less than 1% when I thought of restarting polyglot, but I think my original program would work.

Just FYI the decimal places were the only option.... I didn't add them all.

Thanks for the reply.

Edited by danbutter

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.