-
-
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
[omnikinverter] Add extra parameters (temperature, AC frequency, AC current, AC voltage and total hours running) #14244
Conversation
Signed-off-by: Dave <leansoft@users.noreply.github.com>
Prevents 'Received HTTP PUT request with an invalid item name' when adding items Signed-off-by: Dave <leansoft@users.noreply.github.com>
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.
Thanks for the channel and UoM fixes as well. I have provided some minor feedback mostly about typos.
.../src/main/java/org/openhab/binding/omnikinverter/internal/OmnikInverterBindingConstants.java
Outdated
Show resolved
Hide resolved
...kinverter/src/main/java/org/openhab/binding/omnikinverter/internal/OmnikInverterMessage.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...kinverter/src/main/java/org/openhab/binding/omnikinverter/internal/OmnikInverterMessage.java
Show resolved
Hide resolved
…enhab/binding/omnikinverter/internal/OmnikInverterBindingConstants.java Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
…enhab/binding/omnikinverter/internal/OmnikInverterMessage.java Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
…H-INF/thing/thing-types.xml Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
…H-INF/thing/thing-types.xml Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
openhab#14244 (comment) Signed-off-by: Dave <leansoft@users.noreply.github.com>
Signed-off-by: Dave <leansoft@users.noreply.github.com>
Signed-off-by: Dave <leansoft@users.noreply.github.com>
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
[omnikinverter] Added extra data for AC and hours running (#1) Signed-off-by: Dave <leansoft@users.noreply.github.com>
…H-INF/thing/thing-types.xml Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
…H-INF/thing/thing-types.xml Signed-off-by: Dave <leansoft@users.noreply.github.com> Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Dave <leansoft@users.noreply.github.com>
Signed-off-by: Dave <leansoft@users.noreply.github.com>
Removed newline Signed-off-by: Dave <leansoft@users.noreply.github.com>
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.
A few additional comments for new changes. Please also regenerate the I18N properties file - see https://www.openhab.org/docs/developer/utils/i18n.html#generating-i18n-properties-file
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
<label>Instantaneous Power</label> | ||
<description>The instantaneous power generation for output 1</description> | ||
</channel> | ||
<channel id="powerAC1" typeId="system.electric-power"> |
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.
This is actually a breaking change until openhab/openhab-core#2590 has been resolved, unfortunately. Even though the channel type is fully compatible, I believe this could be a problem for existing things configured in the UI.
You would either need to revert the channel type changes for existing channels or add a note here:
/~https://github.com/openhab/openhab-distro/blob/84f0e7d06e23befbb7a9bebe36783fc5f1665f18/distributions/openhab/src/main/resources/bin/update.lst#L95-L99
IMHO your refactoring/simplification makes sense, so either solution is fine by me.
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.
I Reverted this in f25b9b2
I also build it against 3.4.2 with the XML and everything works.
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.
I mean that changing the underlying channel type for an existing channel is a breaking change (when the previous channel type id no longer exists). I'm fine with it, but it needs to be mentioned in the openhab-distro notes that users may have to re-create their things. You should be able to reproduce it if you go back to the previous version before your changes and create an item for one of these old channels - in the UI, so it will be managed. Then upgrade to this version.
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.
Unresolving this for visibility until PR towards openhab-distro has been created. @leansoft, please remember about this.
bundles/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
* [Omnik] Added AC Voltage, Currrent and Frequency Signed-off-by: Dave <leansoft@users.noreply.github.com> * [Omnik] Added AC Voltage, Currrent and Frequency and total running hours Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikinverter] Fixes for wrong method names Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikinverter] Adjusted test to omnik test output Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikinverter] XML syntax fix Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikconverter] Reverted channel changes Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikconverter] Reverted channel to things-types to prevent backward issues Signed-off-by: Dave <leansoft@users.noreply.github.com> * [omnikconverter] Regenerated Generating I18N properties file As requested in PR Signed-off-by: Dave <leansoft@users.noreply.github.com> Signed-off-by: Dave <leansoft@users.noreply.github.com>
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.
One more small iteration. Sorry for being absent the last few days.
...es/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/i18n/omnikinverter.properties
Outdated
Show resolved
Hide resolved
...es/org.openhab.binding.omnikinverter/src/main/resources/OH-INF/i18n/omnikinverter.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Dave <leansoft@users.noreply.github.com> *
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
… current, AC voltage and total hours running) (openhab#14244) * [omnikinverter] Added temperature sensor * [Omnikinverter] Bugfix for wrong channeltype item-type Prevents 'Received HTTP PUT request with an invalid item name' when adding items * [Omnik] Added AC Voltage, Currrent and Frequency and total running hours Signed-off-by: Dave <leansoft@users.noreply.github.com>
… current, AC voltage and total hours running) (openhab#14244) * [omnikinverter] Added temperature sensor * [Omnikinverter] Bugfix for wrong channeltype item-type Prevents 'Received HTTP PUT request with an invalid item name' when adding items * [Omnik] Added AC Voltage, Currrent and Frequency and total running hours Signed-off-by: Dave <leansoft@users.noreply.github.com>
… current, AC voltage and total hours running) (openhab#14244) * [omnikinverter] Added temperature sensor * [Omnikinverter] Bugfix for wrong channeltype item-type Prevents 'Received HTTP PUT request with an invalid item name' when adding items * [Omnik] Added AC Voltage, Currrent and Frequency and total running hours Signed-off-by: Dave <leansoft@users.noreply.github.com>
Added temperature sensor to the Omnikinvert addon:
Description
This PR adds an improvement and bugfix to the omnikinverter.