-
-
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
[tesla] Add channels for software update #15816
[tesla] Add channels for software update #15816
Conversation
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
…lability Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
@jlaur , may I draw your attention to this pull request? Would be extremely nice if it could be incorporated into the next minor release :) |
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.
Looks good, do have some suggestions and questions.
...inding.tesla/src/main/java/org/openhab/binding/tesla/internal/TeslaChannelSelectorProxy.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
Signed-off-by: Hakan Tandogan <hakan@tandogan.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.
Minor textual findings. otherwise looks good.
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
|
||
# channel types | ||
|
||
channel-type.tesla.softwareversion.label = Software 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.
Think the i18n files need to be regenerated.
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.
Done and pushed.
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 am i missing, i would not expect this as software version is no longer a channel, but a property as it was before.
…ing/channels.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
…ing/channels.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
…ing/channels.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
@jlaur, thank you for your review, I think I addressed all your comments. Could you give it another twirl real quick if time permits? |
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, one comment is open regarding channel-type softwareversion in i18n file.
btw, i consider mixing me up with @jlaur as a big compliment ;-)
|
||
# channel types | ||
|
||
channel-type.tesla.softwareversion.label = Software 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.
What am i missing, i would not expect this as software version is no longer a channel, but a property as it was before.
… is a property again Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
Oops, removed it from the i18n file, like it is in the main branch as well.
See how I should have more coffee before writing comments :) |
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
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!
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* [tesla] Add value holders for Software Update state Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
* [tesla] Add value holders for Software Update state Signed-off-by: Hakan Tandogan <hakan@tandogan.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
With this enhancement, the software update information of the cars can be injected into OH.
The PR has been running on my local instance for weeks now, waiting for the next software update. Finally, with the upgrade from 2023.32.6 to 2023.32.9, I could confirm that the "update available" OnOff-Channel works as intended, too.
The "carversion" property of the things had to be disabled to make the enhancement work with logic the TeslaChannelSelectorProxy. If this is used by someone, I'll try to re-add the property in an upcoming pull request.