michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
409 stars 114 forks source link

Manage multiple Philips Hue bridges #98

Closed MiguelRipoll23 closed 7 years ago

MiguelRipoll23 commented 7 years ago

I see that the method LocateBridgesAsync returns strings. I'm not quite sure if the bridge has a static IP address but is there any way to know their MAC address or get some kind of id to differentiate which bulbs belong to each bridge?

Thanks.

freeubi commented 7 years ago

The bridges doesnt have static IP, it can change. There is unique bridge id, so you can check that. Its called bridgeid.

More info here: https://developers.meethue.com/documentation/configuration-api 7.2

MiguelRipoll23 commented 7 years ago

@freeubi this attribute only appears inside the RemoteHue class but it looks like it can be accessed locally, so I just need to do the HTTP request myself.

Thanks for the info!

freeubi commented 7 years ago

There is a BridgeId in the BridgeConfig class. I think its available, but i cant check it right now :/

michielpost commented 7 years ago

See PR #99 LocateBridgesAsync now returns a IP and a SerialNumber / BridgeId for each bridge

michielpost commented 7 years ago

New version is now on NuGet (3.3.0)

MiguelRipoll23 commented 7 years ago

@michielpost I didn't see that PR, thank you!