lukasroegner / homebridge-philips-hue-sync-box

Homebridge plugin for the Philips Hue Sync Box.
MIT License
57 stars 13 forks source link

[Feature Request] Use recent "on" mode instead of the configured default #11

Closed josiasmontag closed 4 years ago

josiasmontag commented 4 years ago

When changing the brightness via the light bulb, the sync box always switches to the "video" mode. Even though it was in the music mode before.

I have no idea why this is happening.

lukasroegner commented 4 years ago

Currently, only one "on" mode is enabled, which you can set via config.json. Technically, it would be possible to change to the most recent mode. Feel free to submit a PR to support this feature!

lukasroegner commented 4 years ago

There is now a new option lastSyncMode for the property defaultOnMode in the config.json, which does exactly what you need. Updates are on master and new version 0.4.1 is on NPM.