Skip to content

Conversation

weymann
Copy link
Contributor

@weymann weymann commented Nov 7, 2024

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 and channel names.

The binding is published on Marketplace and Community Discussion is active.

@weymann weymann requested a review from a team as a code owner November 7, 2024 21:42
@lsiepel lsiepel added the new binding If someone has started to work on a binding. For a new binding PR. label Nov 8, 2024
Copy link
Contributor

@lsiepel lsiepel left a 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

@weymann
Copy link
Contributor Author

weymann commented Nov 13, 2024

@lsiepel
Thanks for the fast reply - I'll start now working on this.

@weymann
Copy link
Contributor Author

weymann commented Dec 1, 2024

@lsiepel
All channel adaptions done which shall be now in a stable status.
Binding is running for several community members who reported positive results for several devices. Stability improved with watchdog running.

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.

@weymann
Copy link
Contributor Author

weymann commented Dec 11, 2024

@lsiepel @jlaur
What's wrong with the DateTimeType? Didn't changed anything but now it's throwing an error!

First log: String got from device json - ok
Second log: ZonedDateTime after conversion with defined TimeZone +02:00 - ok
Third log: Created DateTimeType

[main] WARN  o.o.b.d.i.handler.scene.SceneHandler - LastTrigger Instant       2024-10-16T00:21:15.977Z
[main] WARN  o.o.b.d.i.handler.scene.SceneHandler - LastTrigger ZonedDateTime 2024-10-16T02:21:15.977+02:00[Europe/Berlin]
[main] WARN  o.o.b.d.i.handler.scene.SceneHandler - LastTrigger DateTimeType  2024-10-16T00:21:15.977+0000
[main] WARN  o.o.b.d.internal.mock.CallbackMock - Update dirigera:scene:test-device:last-trigger : 2024-10-16T00:21:15.977+0000

Code here

@jlaur
Copy link
Contributor

jlaur commented Dec 11, 2024

What's wrong with the DateTimeType?

Hopefully nothing is wrong - see #17719 (comment)

Didn't changed anything but now it's throwing an error!

I assume it's your test throwing an error? Otherwise please be more specific. See #17719 (comment) regarding the test.

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

So many files to look at, so have to break this up into smaller review rounds. This is a first pass. Besides the comments, want to point to recent changes:
color-temperate channels: #17754 for recent DatetimeType channels: #17725

Edit: lol. nice timing

@weymann
Copy link
Contributor Author

weymann commented Dec 11, 2024

So many files to look at, so have to break this up into smaller review rounds. This is a first pass. Besides the comments, want to point to recent changes: color-temperate channels: #17754 for recent DatetimeType channels: #17725

Edit: lol. nice timing

For color temperature #17754 since the beginning it was no option to set kelvin or system:color-temperature-abs directly - this should be fine!
For DateTimeType commit is already in place

@weymann weymann changed the title [WIP] [dirigera] Initial contribution [dirigera] Initial contribution Dec 13, 2024
@weymann weymann requested a review from lsiepel December 14, 2024 16:48
@weymann
Copy link
Contributor Author

weymann commented Feb 26, 2025

FYI @lsiepel
Please check my review responses if they are ok or further discussion is needed

From community I don't get further problem reports and I don't intent to change this PR.

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks for looking at the comments and move this forward. Looked at 142/169 files. I think i need one more partial review to have everything covered. Overall the codes looks good, so i expect we can finish this soon.

@jlaur
Copy link
Contributor

jlaur commented Feb 27, 2025

Spotless must be applied after #18318.

@weymann weymann force-pushed the dirigera branch 2 times, most recently from 15a8685 to e4b7680 Compare March 7, 2025 19:59
@weymann
Copy link
Contributor Author

weymann commented Mar 7, 2025

Any ideas why build doesn't work?
pom.xml failure but I

  • synced fork
  • updtaed main
  • rebased on main
  • spotless:apply
  • local build runs fine

@lsiepel
Copy link
Contributor

lsiepel commented Mar 7, 2025

Any ideas why build doesn't work? pom.xml failure but I

  • synced fork
  • updtaed main
  • rebased on main
  • spotless:apply
  • local build runs fine

It is spotless for sure. Some xml line breaks.

Are all changes (upstream merges) pulled into your local branch? As you say that builds fine.

@weymann
Copy link
Contributor Author

weymann commented Mar 7, 2025

Are all changes (upstream merges) pulled into your local branch? As you say that builds fine.

Yes, I'm sure

Command line build
image

Github rebased on latest PR merged 6 hours ago
image

@weymann weymann requested a review from florian-h05 as a code owner March 8, 2025 16:44
@lsiepel lsiepel removed the request for review from jsetton March 8, 2025 20:07
@weymann
Copy link
Contributor Author

weymann commented Apr 19, 2025

@weymann are you able to proceed and resolve the comments?

Just pushed the solved review comments so far.
Comments from Andrew not in yet

On debug actions I would really like to have an opionion from e.g. core maintainers.

  • dumping JSON snapshot helps
    • to identify device ids for textual configuration
    • check for 3rd party devices attached to DIRIGERA hub
  • custonDebug helps to debug specific devices
    • helped for community post here
    • will help for community here
  • getToken helps to try out commands e.g. with postman

@lsiepel
Copy link
Contributor

lsiepel commented Apr 26, 2025

Added an example for the CLI command and pinged another maintainer to look at the debug logging. There are also a few burried comments left.

weymann added 3 commits May 2, 2025 01:10
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
weymann added 6 commits May 4, 2025 00:56
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Copy link
Contributor

@andrewfg andrewfg left a comment

Choose a reason for hiding this comment

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

LGTM

@lsiepel
Copy link
Contributor

lsiepel commented May 16, 2025

It is ready to merge when there is agreement / follow-up on two comments, i really appreciate it when another @openhab/add-ons-maintainers can comment:
#17719 (comment)
#17719 (comment)

@lsiepel
Copy link
Contributor

lsiepel commented Jun 8, 2025

@lolodomo @jlaur any of you available to look at the two remaining comments about debugging?

@lolodomo
Copy link
Contributor

lolodomo commented Jun 8, 2025

I tried to answer to the two comments.

weymann added 2 commits June 11, 2025 22:59
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
@weymann
Copy link
Contributor Author

weymann commented Jun 11, 2025

Comments from @lolodomo corrected.

@weymann weymann requested review from lolodomo and lsiepel June 11, 2025 21:29
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

Do you need additional testing time or community members to verify the latest changes are all good?

@jaywiseman1971
Copy link

Is there a 4.3.x version to test, I'd be glad to.

Best, Jay

@weymann
Copy link
Contributor Author

weymann commented Jun 12, 2025

@lsiepel
Last 2 commits are only handling the thing action / console changes. The rest I would say is well aged.

@jaywiseman1971
You can install it from Marketplace. Discussion here.

image

@lsiepel lsiepel merged commit 78c4962 into openhab:main Jun 12, 2025
2 checks passed
@lsiepel lsiepel added this to the 5.0 milestone Jun 12, 2025
@lsiepel
Copy link
Contributor

lsiepel commented Jun 12, 2025

Thanks again! Now, you could add the binding's logo to the openHAB website. See https://www.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website

phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
* feature-squash

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Aug 6, 2025
* feature-squash

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new binding If someone has started to work on a binding. For a new binding PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants