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

[shelly] Fix initialization of BLU Motion device #17053

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

markus7017
Copy link
Contributor

@markus7017 markus7017 commented Jul 14, 2024

This PR fixes BLU motion initialization. In facts various flag in the device profile were not correctly initialized. This also affected other BLU devices even they seem to work.

This also should be back ported to 4.2 (cheeky picking)

Fixes #17052

… flags for

BLU devices in general and for BLU Motion another one)

Signed-off-by: Markus Michels <[email protected]>
@markus7017 markus7017 added bug An unexpected problem or unintended behavior of an add-on awaiting feedback labels Jul 14, 2024
@markus7017 markus7017 self-assigned this Jul 14, 2024
@jlaur jlaur changed the title [shelly] Fixes initialization of BLU Motion device [shelly] Fix initialization of BLU Motion device Jul 14, 2024
@markus7017 markus7017 changed the title [shelly] Fix initialization of BLU Motion device [shelly][hotfix] Fix initialization of BLU Motion device Jul 14, 2024
@lolodomo
Copy link
Contributor

lolodomo commented Jul 14, 2024

"awaiting feedback" tag is used when a reviewer is awaiting a feedback from the contributor, not the reverse. Putting it could lead to your PR being "ignored" or put in very low priority !

@jlaur jlaur added additional testing preferred The change works for the pull request author. A test from someone else is preferred though. and removed awaiting feedback labels Jul 14, 2024
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I have added two very minor comments regarding logging, otherwise LGTM. Please ping when tested/verified (I replaced the label, see @lolodomo's comment).

@markus7017 markus7017 added community approved and removed additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Jul 15, 2024
@markus7017
Copy link
Contributor Author

@jlaur I did some testing with 10 BLU DW and 2 BLU Motion sensors, also 3 different Shelly acting as hub
I user confirmed the fix, solved this problem.

Nevertheless, I saw "BLU Device not yet connected" which shouldn't show up on device initialization. I'm still chasing, it's hard to reproduce so it makes sense to merge this PR and add another one when I have a fix.

Signed-off-by: Jacob Laursen <[email protected]>
Fix:
```
[WARNING] .binding.shelly/README.md:[217]
The line before a Markdown list must be empty.
[WARNING] .binding.shelly/README.md:[218]
The line after a Markdown list must be empty.
```

Signed-off-by: Jacob Laursen <[email protected]>
@jlaur jlaur merged commit b123863 into openhab:main Jul 16, 2024
5 checks passed
@jlaur jlaur added this to the 4.3 milestone Jul 16, 2024
jlaur pushed a commit that referenced this pull request Jul 16, 2024
* Fixes #17052 (caused by inproper initialization of the profile flags for
BLU devices in general and for BLU Motion another one)

Signed-off-by: Markus Michels <[email protected]>
@jlaur jlaur added the patch A PR that has been cherry-picked to a patch release branch label Jul 16, 2024
@jlaur jlaur changed the title [shelly][hotfix] Fix initialization of BLU Motion device [shelly] Fix initialization of BLU Motion device Jul 16, 2024
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/shelly-binding/56862/3933

andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Jul 18, 2024
* Fixes openhab#17052 (caused by inproper initialization of the profile flags for
BLU devices in general and for BLU Motion another one)

Signed-off-by: Markus Michels <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on community approved patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[shelly] Fix thing discovery/initialization for Shelly BLU Motion.
4 participants