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

Hue Smart Button support #191

Merged
merged 28 commits into from
Aug 17, 2020
Merged

Hue Smart Button support #191

merged 28 commits into from
Aug 17, 2020

Conversation

dongennl
Copy link
Contributor

Cloned the Switch object and configured it to work with the Smart Button. There was an icon already in the assets.

There was not enough info on the original 'sensor' object from the bridge to select the Button (due to Huejay not being updated for button), therefore added a new attribute to the sensor object using the model ID from the bridge JSON. (seemed only way).
(Do we need Huejay at all? Seems unmaintained).

This works now and removed the button presses not relevant to the Smart Button. Updated info text as well.
Works for me and doesn't seem to break anything. Please review/test!

NB the state 'holded' is incorrect English; changed to 'held' in the HTML, but not the message payload as it might break people's flows for the Switch, since message object is shared.

Hope I've done it all correctly, this is my first pull request.

@dongennl
Copy link
Contributor Author

Tested as working by @jimmyeao (see Issue #123 )

@Foddy Foddy merged commit 09a9d0f into Foddy:master Aug 17, 2020
Foddy pushed a commit that referenced this pull request Aug 17, 2020
* Optimized random color mode for Hue Magic, Hue Light & Hue Group nodes ([#190](#190))
* New Hue Button node ([#190](#191))
* Updated README and Hue Button node docs (+ localized in German)
* Dependency updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants