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

[hdpowerview] Support refresh command for battery-related channels #11933

Merged

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Jan 2, 2022

Fixes #11932

As natural evolution after:

we should hard-refresh battery level also when receiving REFRESH command. The REFRESH command now correctly takes the channel into consideration:

  • position, secondary, vane -> refresh positions.
  • lowBattery, batteryLevel, batteryVoltage -> refresh battery level.

Even before those mentioned pull requests, REFRESH for channel lowBattery would wrongly refresh shade positions, which had absolutely no effect for that channel. With #11260 battery refresh was introduced, making it possible to refresh exactly that.

Signed-off-by: Jacob Laursen jacob-github@vindvejr.dk

Fixes openhab#11932

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Jan 2, 2022
@lolodomo lolodomo merged commit e8df66f into openhab:main Jan 2, 2022
@lolodomo lolodomo added this to the 3.3 milestone Jan 2, 2022
@jlaur jlaur changed the title [hdpowerview] Refresh battery level when receiving refresh command [hdpowerview] Support refresh command for battery-related channels Jan 2, 2022
mischmidt83 pushed a commit to mischmidt83/openhab-addons that referenced this pull request Jan 9, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
moesterheld pushed a commit to moesterheld/openhab-addons that referenced this pull request Jan 18, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Apr 27, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
@jlaur jlaur deleted the 11932-hdpowerview-refresh-battery-status branch June 13, 2022 18:46
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…penhab#11933)

* Refresh battery level when receiving REFRESH command.

Fixes openhab#11932

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
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.

[hdpowerview] Refresh battery status also when receiving refresh command
2 participants