Skip to content
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

Merged
merged 13 commits into from
Nov 1, 2023

Conversation

hakan42
Copy link
Contributor

@hakan42 hakan42 commented Oct 28, 2023

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.

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>
@hakan42 hakan42 requested a review from kgoderis as a code owner October 28, 2023 10:46
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
@hakan42
Copy link
Contributor Author

hakan42 commented Oct 28, 2023

@jlaur , may I draw your attention to this pull request? Would be extremely nice if it could be incorporated into the next minor release :)

@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Oct 28, 2023
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.

Looks good, do have some suggestions and questions.

@lsiepel lsiepel requested a review from a team October 28, 2023 16:00
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
@hakan42 hakan42 requested a review from lsiepel October 28, 2023 19:07
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.

Minor textual findings. otherwise looks good.


# channel types

channel-type.tesla.softwareversion.label = Software version
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done and pushed.

Copy link
Contributor

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.

hakan42 and others added 4 commits October 29, 2023 11:57
…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>
@hakan42
Copy link
Contributor Author

hakan42 commented Oct 29, 2023

@jlaur, thank you for your review, I think I addressed all your comments. Could you give it another twirl real quick if time permits?

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.

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
Copy link
Contributor

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>
@hakan42
Copy link
Contributor Author

hakan42 commented Oct 29, 2023

LGTM, one comment is open regarding channel-type softwareversion in i18n file.

Oops, removed it from the i18n file, like it is in the main branch as well.

btw, i consider mixing me up with @jlaur as a big compliment ;-)

See how I should have more coffee before writing comments :)

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.

LGTM

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Thanks!

bundles/org.openhab.binding.tesla/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.tesla/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.tesla/README.md Outdated Show resolved Hide resolved
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer added this to the 4.1 milestone Nov 1, 2023
@kaikreuzer kaikreuzer merged commit 59c3135 into openhab:main Nov 1, 2023
2 checks passed
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
* [tesla] Add value holders for Software Update state

Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* [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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants