Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic heartrate #39

Closed
ebaauw opened this issue Jan 6, 2017 · 2 comments
Closed

Dynamic heartrate #39

ebaauw opened this issue Jan 6, 2017 · 2 comments

Comments

@ebaauw
Copy link
Owner

ebaauw commented Jan 6, 2017

As suggested by @dylanslewis (in issue #4), allow for changing the polling interval from HomeKit instead of from config.json. Add a StatefulProgrammableSwitch service to the Homekit accessory for each bridge, mapping the heartrate to Output State and the time of the last sync to Last Updated. Could even use Switch and use On to turn off polling altogether.

Notes to self:

  • Need to change setInterval() loop in HuePlatform.accessories() to fire every second and call HueBridge.heartbeat() with counter and check for counter % heartrate === 0 in each bridge.
  • Need to change the handling of "get" events from HomeKit to issue ad hoc bridge state refresh when heartbeat is off.
ebaauw added a commit that referenced this issue Jan 13, 2017
@ebaauw
Copy link
Owner Author

ebaauw commented Jan 13, 2017

Dynamic heartrate implemented in v0.1.8.

Disbabling heartrate not yet implemented, as handling of "get" events is more elaborate.

@ebaauw ebaauw closed this as completed Feb 13, 2017
@dylanslewis
Copy link

Amazing, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants