Hue lights - first version for Hue pro bridge

Use this forum to discuss the Hue Lights plugin.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Hue lights - first version for Hue pro bridge

Post by kw123 »

down load at: https://github.com/kw123/Hue-Lights-Ind ... 2022.20.62

2022.20.62 @ 2025-11-05
1. added support for hue pro bridge
this is the first beta version.

steps:
0. Install the new plugin version
delete in hue plugin the to be migrated bridge in config top item: "Add/delete/modify a bridge "
this will not delete any indigo device

1. connect new pro bridge to network, power up
if you have several bridges try to place the new one so that it can "see" all of them
mine selected to use an already occupied zigbee channel, no problems so far, but I don't believe that is good.
There are 4 channels available 11, 15, 20,25 (they share the wifi spectrum side bands)
Screenshot 2025-11-05 at 13.19.58.png
Screenshot 2025-11-05 at 13.19.58.png (86.01 KiB) Viewed 290 times
Modifying them after migration is not possible. you would need to reset everything (lamps switches, bridge..) and reinstall everything

2. follow described migration like in:
https://www.philips-hue.com/en-us/suppo ... pro/000010
it will take some time as you must first update EVERYTHING

3. after migration is complete, in plugin config
-Add/delete/modify a bridge
--add or re-pair a new bridge
---select the SAME bridge number you just deleted !! this is important !!
--- if the bridge is not listed click "Exec Search now" and wait some seconds

4. press the button on the hue pro bridge

5. click on confirm

that should do it.
if automatic did not work use the manual steps.

All indigo devices of the deleted and newly paid bridge should be working again w/o issues
Again !! you must use the same bridge number for old and new !!

There is a also a menu item to manually do these steps (overwrite bridge)
but only if you know how and why this works
requires terminal interaction ...


This plugin version will NOT add any new functionality. it is using the same calls to the hue bridge,
- Only some minor changes (https instead of http and verify=False in request calls)
- The pairing process had to be changed.
- the get basic configuration call was changed (check if the ip number is a hue bridge)

Any new functionality (using the new API calls) in due time.

I like to make sure that this works completely before adding functions

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue lights - first version for Hue pro bridge

Post by kw123 »

I am slowly pushing through the changes for the new version .. the bridge still supports the old data structures.
those will not be supported for ever..

api v2 has
- new complicated data structures
- new ids instead of light # 1...999 each light is now a device with long id number and children with long id numbers those children (dicts) are eg color, brightness, on/off button press..
so one has to map top id number to property info ( brighness...) and back, as the events use the proper id numbers, and they have to be mapped back to the device.. a lot of dictionaries forward and backwards .. and they need t be kept up to date, add / remove devices and configs.
- brightness is now 0-100 instead of 0-255 and called "brightness" instead of "bri"
- xy normalization is different.
color temp is now done in "mirek" (**)
- and one little thing: the 4 button rotating dimmer has 2 sensor numbers(eg 1..99) but just one long id number and 2 indigo devices..
that creates some ifs with special exceptions for that one in the program.. don't know if there are more like this

BUT !!!
one new major improvement, it offers to stream updates only. (*)
so instead of polling the bridge every 5 secs it will send the changes (and only the changes) every second.
that is much faster as much more economically.

I should have that ready sometime next week.


(*)
code sniped to listen to he event stream in the plugin.

Code: Select all

			response = requests.get(
				EVENT_STREAM_URL,
				headers=headers,
				stream=True,
				verify=False,
				timeout=None
			)
			
			if response.status_code == 200:
				self.indiLOG.log(20,"Connected! Listening for events on hub Number: {}".format(hubNumber))
				
				for line in response.iter_lines(decode_unicode=True):
					.. line is the event dict ... 
(**) mirek = 100000k/T

(***) I tried all kinds of buttons, dimmers, FOH, lamps (Hue and non hue) .. they all seem to behave ok.
damiang1
Posts: 21
Joined: Tue Apr 03, 2018 8:09 am

Re: Hue lights - first version for Hue pro bridge

Post by damiang1 »

Sorry to report I cannot get the new Beta Hue Bridge Pro Plug to work in Indigo. Following beta instruction and pressing the bridge button does nothing. Plugin identiies the bridge and thats all it does for me at this point. Hope the screen shots helps. Im excited that you are working on this and thank you for your effort for our Indigo community.
Screenshot 2025-12-04 at 1.16.52 PM.jpg
Screenshot 2025-12-04 at 1.16.52 PM.jpg (292.83 KiB) Viewed 201 times
Screenshot 2025-12-04 at 1.18.23 PM.png
Screenshot 2025-12-04 at 1.18.23 PM.png (457.33 KiB) Viewed 201 times
Screenshot 2025-12-04 at 1.15.38 PM.png
Screenshot 2025-12-04 at 1.15.38 PM.png (503.3 KiB) Viewed 201 times
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue lights - first version for Hue pro bridge

Post by kw123 »

We could do a report session today or next week Tuesday-Friday

I need to see some details.


Sent from my iPhone using Tapatalk
damiang1
Posts: 21
Joined: Tue Apr 03, 2018 8:09 am

Re: Hue lights - first version for Hue pro bridge

Post by damiang1 »

Karl,

Thanks Im available today and next week but I believe our time zones arent in sync? At your convenience, let me know. Ive tried everything within my abilities to get the plugin to pair with my Hue Bridge Pro. Here is the log for your perusal. Thank you
Attachments
plugin.log
(195 KiB) Downloaded 1314 times
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue lights - first version for Hue pro bridge

Post by kw123 »

I am using Anydesk
Could you email me your contact info
Karlwachs at me com


Sent from my iPhone using Tapatalk
Post Reply

Return to “Hue Lights”