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

Use common motor_state values for Bosch & Lumi devices #7470

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

burmistrzak
Copy link
Contributor

@burmistrzak burmistrzak commented Apr 30, 2024

Use a shared set of motor_state values so integrations can standardize around them.

  • opening
  • closing
  • stopped
  • blocked

⚠️ Note: Might be a breaking change for some. ☝️

Affected devices:

  • Bosch BCMT-SLZ
  • ZNCLDJ12LM
  • ZNCLDJ14LM
  • ZNJLBL01LM

Use `stopped` instead of `idle` so integrations can expect a common, minimum set of `motor_state` values.
@burmistrzak burmistrzak changed the title fix: Use common motor_state values for Bosch BCMT-SLZ fix: Use common motor_state values for Bosch & Lumi devices Apr 30, 2024
@burmistrzak burmistrzak changed the title fix: Use common motor_state values for Bosch & Lumi devices Use common motor_state values for Bosch & Lumi devices Apr 30, 2024
@Koenkk Koenkk merged commit 5f578b1 into Koenkk:master Apr 30, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Apr 30, 2024

Thanks!

@GoodnessJSON
Copy link

I believe this may have caused some issues with the Aqara ZNJLBL01LM roller. The issue is mentioned above.

@burmistrzak
Copy link
Contributor Author

burmistrzak commented May 3, 2024

I believe this may have caused some issues with the Aqara ZNJLBL01LM roller. The issue is mentioned above.

@GoodnessJSON Huh, that's strange... This PR explicitly introduced these common states to avoid such situations. 🤔

Edit: Yeah, my bad. Totally forgot about src/lib/lumi.ts, and that these devices are handled differently. 😅
Thankfully, @Koenkk already pushed a fix! Koenkk/zigbee2mqtt#22387 (comment)

@GoodnessJSON
Copy link

No worries at all, thanks for the quick action on this one :) Good fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants