FLEXi Lighting - a flexible system for lighting scenes (Hues, dimmers, and switches)


Currently, the option “push mode change” is used to push a notification to your mobile device when the mode (now called the routine) changed.

I included this option because I have multiple FLEXi_Trigger apps running - one for each room / area in my house - and I didn’t like having multiple notifications appear on my phone every time the mode/routine changed.

So I select “yes” for the “push mode change” option only on one of the FLEXi_Trigger apps (because I have one that applies to all possible modes/routines - if you had a mode/routine that only applied to a specific room/area, then I would select “yes” for that one too).

Please let me know if this doesn’t makes sense.



I’ve fixed the code for the FLEXi_Scenes app that was posted in the link you included. Sorry about any confusion.

Just to be clear: The FLEXi_Scenes smartapp and the FLEXi_Triggers smartapp are meant to be used in conjunction with each other. The FLEXi_Scenes smartapp sets the lights to the desired colors/levels based on the mode (now called the routine), while the FLEXi_Trigger smartapp handles turning the lights on (from a motion or an open contact event) and off (from a no motion or a closed contact event).

Also - thank you for your kind words. You (and anyone else using my code) should feel free to let me know if you have any questions/issues with the current versions or have any requests for new features.



@infofiend I have installed everything but keep getting this error after selecting bulbs in discovery mode:

error physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘FLEXiHue Lux Bulb’ in namespace ‘info_fiend’ not found. @ line 285


Are you getting the error from the device type or from one of the a smartapps?

Do you actually have a Lux Bulb? Or is that a mistake as well?

Also - I’m very close to releasing a new version of the app that will work with any light and will not require the use of a custom device type. So it will likely solve this issue.



I’m getting an error when I hit “Done” after the lights are discovered. Here is the “Live Log”: Any thoughts?
6:47:05 AM: error physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘FLEXiHue Lux Bulb’ in namespace ‘info_fiend’ not found. @ line 285
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:05 AM: trace FLEXiHue SM: FLEXiHUE BULBS:
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:05 AM: trace [3:[id:3, name:Hallway 2, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Dimmable light], 2:[id:2, name:Hallway 1, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Dimmable light], 1:[id:1, name:TV Light, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Color light], 7:[id:7, name:Front Right Speaker, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Color light], 6:[id:6, name:Dining Room, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Extended color light], 5:[id:5, name:Hallway 3, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Extended color light], 4:[id:4, name:Front Left Speaker, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Color light], 9:[id:9, name:Rear Right Speaker, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Color light], 8:[id:8, name:Rear Left Speaker, hub:d1308137-ebce-4f26-a25c-5ff25cacbfec, type:Color light]]
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:05 AM: trace FLEXiHue SM: created FLEXiHue Bridge with id C0A802C5:0050
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:04 AM: debug FLEXiHue SM: INITIALIZE
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:04 AM: trace FLEXiHue SM: Updated with settings: [selectedHue:C0A802C5:0050, selectedBulbs:[04b4139a-8519-46d5-b8fb-45c744d252d9/3, 04b4139a-8519-46d5-b8fb-45c744d252d9/2, 04b4139a-8519-46d5-b8fb-45c744d252d9/1, 04b4139a-8519-46d5-b8fb-45c744d252d9/7, 04b4139a-8519-46d5-b8fb-45c744d252d9/6, 04b4139a-8519-46d5-b8fb-45c744d252d9/5, 04b4139a-8519-46d5-b8fb-45c744d252d9/4, 04b4139a-8519-46d5-b8fb-45c744d252d9/9, 04b4139a-8519-46d5-b8fb-45c744d252d9/8]]
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:05 AM: trace FLEXiHue SM: NON-HUE EVENT FLEXiHue Bridge updated
04b4139a-8519-46d5-b8fb-45c744d252d9 6:47:05 AM: trace FLEXiHue SM: LOCATION HANDLER: FLEXiHue Bridge updated
a8bdaa27-6bb9-4911-a168-3de685e407b0 6:47:05 AM: debug FLEXiHue Bridge was updated
6:46:47 AM: info Waiting on events…

FYI - [UPDATED as of March 24, 2016] Hue Lights & Groups & Scenes (OH MY!) is essentially the new version of this.

Hi there, this app looks great and exactly what I have been looking for! I have removed my existing hue bridge from the ST app and all of the devices. Installed LEXiHue (Hue Connect)smartapp and ran the set up, it found my Hue bridge, but when I get to the next screen where it says “Press the button on your Hue Bridge to setup a link” it just hangs and doesnt do anything?

I have tried rebooting the the Hue bridge but this hasnt helped. Am I being a bit dim or have I missed something? Any help would be greatly appreciated!