-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[dirigera] Initial contribution #17719
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only looked at the thing-structure.xml files as you wanted early feedback.
I did not repeat the same comments for multiple Things. As this seems a well strucutered binding, i think it would be easy for you to project my comments on the other Things.
Extra note, please user system state channels where possible:
https://www.openhab.org/docs/developer/bindings/thing-xml.html#system-state-channel-types
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/air-purifier.xml
Outdated
Show resolved
Hide resolved
<label>Custom Name</label> | ||
<description>Name given from IKEA home smart</description> | ||
</channel> | ||
<channel id="ota-status" typeId="ota-status"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between state and status in this case?
Applies to multiple Things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/blind.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/blind.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/sound-controller.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/speaker.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/speaker.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.dirigera/src/main/resources/OH-INF/thing/temperature-light.xml
Outdated
Show resolved
Hide resolved
@lsiepel |
@lsiepel I don't forsee changes in architecture, class structure and general behavior. Only in specific device handlers if bugfixes are necessary. So I would ask to extend the review on code. Leave logging out of scope, this is still messy and I'm still working on that. |
...dirigera/src/main/java/org/openhab/binding/dirigera/internal/handler/scene/SceneHandler.java
Outdated
Show resolved
Hide resolved
@lsiepel @jlaur First log: String got from device json - ok
|
...g.dirigera/src/test/java/org/openhab/binding/dirigera/internal/handler/scene/TestScenes.java
Outdated
Show resolved
Hide resolved
Hopefully nothing is wrong - see #17719 (comment)
I assume it's your test throwing an error? Otherwise please be more specific. See #17719 (comment) regarding the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
....openhab.binding.dirigera/src/main/java/org/openhab/binding/dirigera/internal/Constants.java
Outdated
Show resolved
Hide resolved
**OTA Mappings** | ||
|
||
Mappings for `ota-status` | ||
|
||
- 0 : Up to date | ||
- 1 : Update available | ||
|
||
Mappings for `ota-state` | ||
|
||
- 0 : Ready to check | ||
- 1 : Check in progress | ||
- 2 : Ready to download | ||
- 3 : Download in progress | ||
- 4 : Update in progress | ||
- 5 : Update failed | ||
- 6 : Ready to update | ||
- 7 : Check failed | ||
- 8 : Download failed | ||
- 9 : Update complete | ||
- 10 : Battery check failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could provide the channels with option lists in the xml, this would prevent any mapping, make the UI able to provide presets and would make translation easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already in
For usage in UI these mappings are not needed.
For rules it's useful to have these mappings to check state updates and sending commands.
Mappings for `startup` | ||
|
||
- 0 : Previous | ||
- 1 : On | ||
- 2 : Off | ||
- 3 : Switch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See earlier comment, better to have option lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...ing.dirigera/src/main/java/org/openhab/binding/dirigera/internal/DirigeraHandlerFactory.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think you accidently moved this file instead of copying. Needs to be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For color temperature #17754 since the beginning it was no option to set |
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Signed-off-by: Bernd Weymann <[email protected]>
Binding for IKEA DIRIGERA hub for smart products.
The work ist still in progress but I would like to start the review to find breaking changes right now and not at the end, e.g.thing
andchannel
names.The binding is published on Marketplace and Community Discussion is active.