probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

Improve compatibility and add group support #30

Closed opticron closed 7 years ago

opticron commented 7 years ago

This fixes some client crashes with the new Hue app (still non-functional and still non-discoverable, but I'm on the way there), makes the number of exposed lights configurable via a call to the class, returns an empty object for scenes queries (this speeds up client querying versus blank responses), and adds group support (except for scene usage, I'm getting there).

On a side note, I do have local experimental code working for discovery with the new Hue app, but it requires tweaks to the SSDP library since the new Hue app requires the message elements in a certain order and requires non-standard elements in the response (hue-bridgeid). I'm working up a more generic patch that will be more likely to go in to the official ESP8266 hardware package, but that will take some time and probably won't be available in the board manager for even longer.

probonopd commented 7 years ago

In the beginning, I used a local SSDP implementation; later switched to the library when it became available in the ESP8266 hardware package.

Maybe we should go back to this?

opticron commented 7 years ago

I was thinking about that. I'll probably pull in a local copy of the current ESP8266SSDP library with the tweaks that will eventually go into mainline if that's alright.

probonopd commented 7 years ago

Yes, sure. Better than waiting :+1:

probonopd commented 7 years ago

Can you make scenes work @opticron? The iOS app doesn't seem to set up a new bridge without this anymore :-(

opticron commented 7 years ago

The android app has been that way for a while now. I did some experimentation with scenes a while back as a hack on top of the group support, but it was too different to do it that way properly. It's definitely on my list of things to do in the near term now that I finally have some basic home automation stuff setup.