Comments (3)
I think I figured out how to do this. As always, please let me know your thoughts.
- Create a new
StatelessProgrammableSwitch
service for the Hue bridge accessory. As of iOS 10.3, the build-in Home app should treat the Hue bridge accessory as programmable switch instead of Not Supported (see issue #54); - When the link button on the bridge is pressed, the bridge
config.linkbutton
attribute changes totrue
. Homebridge-hue detects this and updates the programmable switch'sInputEvent
, so the corresponding action is triggered; - Typically,
linkbutton
stays on for a minute or so, so a next press would only be registered after that time. To overcome this, homebridge-hue immediately resetslinkbutton
tofalse
. As a consequence, pressing the button on the bridge no longer works for linking a new application to the Hue bridge (but who would want to do that when you have Homekit? ;-) - Oh, you would? Actually, so would I. I'll create a custom service with
Enabled
for the Hue bridge accessory to setlinkbutton
without triggering the programmable switch and without homebridge-hue immediately resetting it. Note that whileEnabled
is set, link button presses won't be registered. Also note that Home won't support the custom service, so you'd need to use Eve or another HomeKit app; - Of course, the new services would be optional, through a
config.json
setting.
While I'm at it, I could also create another custom service with Enabled
for touchlink
and one for searching for new lights and sensors. However, until homebridge-hue supports dynamic platform accessories (issue #4), you would have to restart homebridge to expose any newly found lights and sensors.
from homebridge-hue.
Typically, linkbutton stays on for a minute or so, so a next press would only be registered after that time. To overcome this, homebridge-hue immediately resets linkbutton to false. As a consequence, pressing the button on the bridge no longer works for linking a new application to the Hue bridge (but who would want to do that when you have Homekit? ;-)
Personally, this option sounds the most appealing to me. This will make sure the button will always trigger the HomeKit-scene, and it will be fully functional through iOS 10(.3) Home, the application I like to use most of the time.
I don't have to link a new application to the Hue Bridge often, when I do I can just close Homebridge for 1 minute.. I do understand some people do it way more often, but this option is most appealing to me. My two cents.
from homebridge-hue.
Added support for the physical link button on the bridge as programmable switch in v0.4.0. Consequently, the iOS builtin Home app will no longer show an unsupported accessory per Hue bridge, but a programmable switch instead. homebrige-hue resets the linkbutton
after pressing it, so it can register the next press. To register a new application to the bridge, use the Link
attribute of the custom service for the Hue bridge. Unfortunately, the iOS builtin Home app doesn't support this service, so you need another HomeKit app, like Eve. Also added a Touchlink
characteristic to this service, to enable touchlink from HomeKit. Link button support can be disabled by specifying "linkButton": false
in config.json.
from homebridge-hue.
Related Issues (20)
- $ (sudo) npm install -g homebridge-hue
- 0.13.67 version mismatch HOT 5
- Add artificially delay before turning off a scene switch HOT 2
- Homebridge flooded with logs? HOT 4
- Intermittent toggling between states of certain lights HOT 12
- error:0A00010B HOT 1
- Unable to update to version 0.13.68 HOT 3
- Reset Timeout parameter throws error HOT 1
- Log level settings HOT 3
- Hue Bridge: warning: not using recommended Hue bridge api version 1.60.0 HOT 8
- 2nd Hue Bridge needs manual pressing of button HOT 13
- Hue Zones to Homekit? HOT 3
- Trying to add an outlet HOT 7
- Unable to setup - Unauthorized HOT 2
- Hue Dimmer Switch don't show in new home architecture HOT 2
- No devices showing up at all HOT 6
- Many devices not reachable since today HOT 7
- HUE Wall-Switch Module new Revision RDM004 not working HOT 2
- Expose more precise Hue bridge daylight sensor status HOT 1
- Hue light group shows as Off even if some of the lights are On HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-hue.