-
-
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
[luxtronikheatpump] Fix control signal circulating pump #15855
[luxtronikheatpump] Fix control signal circulating pump #15855
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.
Hey @jamietownsend
Thanks for providing this pull request. The Energy definition was for sure added by accident.
I'm actually not using this channel on my heatpump as it doesn't provide a value in my set up. Otherwise I might have noticed it.
I've added some comments, as some changes might be required to have that working correctly.
...pump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/enums/HeatpumpChannel.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
9990e89
to
dc3ca47
Compare
dc3ca47
to
c352739
Compare
b5078f9
to
bcafa9c
Compare
bcafa9c
to
7e61c94
Compare
I'm not sure what needs to be done here. After following your suggested approach, I see that the Channel definition under the Thing shows "(Number:Dimensionless)", but the Item shows "Number:Energy". Deleting the Item and recreating it doesn't fix the problem. I notice the following while adding the Item from the Thing: Notice that the types are not the same. I also notice that the file .../openhab/userdata/jsondb/org.openhab.core.thing.Thing.json doesn't contain the correct value, even though the channel appears right on the Thing in the UI. Deleting the Item and the Thing and then re-creating them solves the conflict. |
I added an update.xml to delete and re-create the controlSignalCirculatingPump channel. This enables the correct creation of a new Item. Old items will still have issues and will have to be manually deleted and re-created. |
Yes, the update instructions will only update the channel definitions in jsondb, but will touch linked items. Did you notice a difference between having the update instructions when upgrading the binding and not having them? Since I'm confused about whether this binding provide static or dynamic channels (or both), I would like to figure out if the instructions are needed in this case. |
If the channel was automatically updated for your existing Thing when you updated the binding, the instructions are not needed. You have not added the |
This is the case. The Thing was updated automatically, even without the update.xml.
Thanks for this clarification. I tested what happened when the As such I'll remove the update.xml again to keep things simple. Question: is there any way that we can automatically have the Items updated or should we write something in the docs to explain what has to be done? |
58861af
to
d2694d4
Compare
Not sure why this was closed. I'll try to re-open it... |
Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>
Ok, re-opening 🙂 |
There is no way to automatically update the items, but you could add a note somewhere around here: These messages will be displayed during an upgrade. |
Thanks @jlaur. See related pull request: openhab/openhab-distro#1606 I hope both pull requests can now me merged 🙂 |
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.
To me this looks good now.
Note: I'm unable to say if the new label matches what the channel actually provides. The previously used label was defined by "reverse engineering" and looking up what the java applet on the heatpump was using for it.
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.
LGTM
Fixes #15836