Push Notification for Hue bridge
This beta includes the first step to support Hue bridge push notifications by the Hue bridge API v2 event stream, see #1057.
Testers wanted: please run ph eventlog
your Hue bridge, capturing the output to a file. If you see any errors or raw messages, please add a comment to #1057, attaching the output file. Thanks.
Note that Homebridge Hue does not yet connect to the event stream.
Enhancements
EventStreamClient
: new class to connect to the event stream and handle notifications. This class translates the notifications to an API v1 compatible format consumable by Homebridge Hue, similar to the deCONZ web socket notifications.
ph eventlog
: New command to monitor the deCONZ web socket notification or Hue bridge API v2 event stream notifications.
dc_eventlog
: Deprecated in favour ofph eventlog
.
HueClient
: AddisHue2
property to indicate Hue bridge with API v2 support.
HueDiscovery
: Add local discovery over mDNS (Bonjour), as Hue has deprecated UPnP discovery.
ph discover
: add-S
or--stealth
option to do only local discovery.
Bug Fixes
- Fix some unhandled promise rejections when parsing command line parameters to
ph discover
andph search
;
- Fix usage message for
ph discover
.
Bump Dependencies
- deCONZ v2.13.4;
- homebridge-lib v5.1.22.