-
-
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
[Homematic] Fix "Channel not found for Datapoint" errors #11493
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
...atic/src/main/java/org/openhab/binding/homematic/internal/handler/HomematicThingHandler.java
Outdated
Show resolved
Hide resolved
...atic/src/main/java/org/openhab/binding/homematic/internal/handler/HomematicThingHandler.java
Show resolved
Hide resolved
What still irks me about this is that this change is just a workaround for what should be a bug elsewhere. Did you try adding some breakpoints in
AFAICT, the only case where a thing can be created without channels is if the channel type lookup fails, so it would be great if you could verify this actually being the case (maybe start by overriding and adding some debug statements to |
The reason this is necessary is, that (at least) when using text based config it could happen that things are created before the bridge is online or the thing type has been populated with the channels. In that case an empty thing type is used and the thing is missing the channels as when a thing type is updated the things that use it aren't automatically. So this will add the channels in that case. |
So this essentially means that |
Yes iirc that was the issue. I also tried to re-create (basically reload) the thing if the channels are empty and that created the channels as well (but caused other issues). If you ask me the current attempt is a wrong approach anyways as there's another Limit: If there are multiple versions of the same device with different channels it will cause issues. It would be better to request the channels for each thing and populate them on initialization. |
1e334a7
to
8c5501e
Compare
Signed-off-by: Flole <[email protected]>
8c5501e
to
3d6b165
Compare
@maniac103 I just fixed the 2 things you commented. |
The sign-off message should contain your real name. For the next contribution... |
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
Signed-off-by: Flole <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
Signed-off-by: Flole <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
Signed-off-by: Flole <[email protected]>
Signed-off-by: Flole <[email protected]>
Signed-off-by: Flole <[email protected]>
Signed-off-by: Flole <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
Issue described and tested in https://community.openhab.org/t/homematic-binding-channel-not-found-for-datapoint-errors-for-definitely-existing-channels/26209/113
Fixes: #11214
Signed-off-by: Flole [email protected]