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

Support for ORVIBO switch, dimmer and motion sensor #1763

Merged
merged 2 commits into from
Aug 26, 2019

Conversation

udoewich
Copy link
Contributor

This adds support for ORVIBO in-wall switch, in-wall dimmer and motion sensor. Closes #794, #1686 and #1747.

@hafffe
Copy link

hafffe commented Aug 20, 2019

@udoewich is it possible for you to add support for #901 also? :)

removed stray closing brace
@udoewich
Copy link
Contributor Author

@alonalon
I just pushed a small update which "should" add support for the ORVIBO smoke sensor. Obviously that's untested as I don't have one of those.

@@ -3504,6 +3559,15 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
else if (modelId.isEmpty() && j->id() == 0x0005) // model id
{
modelId = j->toString().trimmed();
// replace ORVIBO model ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this for 2.05.67 but suggest we refactor it later, so that optional translations or mappings of device model identifiers into readable text are kept in the device map.

Copy link
Contributor Author

@udoewich udoewich Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that sounds good. I'm guessing ORVIBO went with a GUID for the model to be able to localize their app for different countries.

I second a system that separates what the device advertises from the presentation layer. That way we can correct wrong or add missing information without putting a lot of checks all over the code.

Thanks for the merge.

@manup manup merged commit 0b5e05e into dresden-elektronik:master Aug 26, 2019
@udoewich udoewich deleted the ORVIBO_switch_dimmer_motion branch August 26, 2019 22:53
@hafffe hafffe mentioned this pull request Aug 27, 2019
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.

Device support request: Orvibo in-wall dimmer switch
3 participants