Closed Kevin-vdk closed 2 weeks ago
Hey there @lennp, @jerrybboy, mind taking a look at this issue as it has been labeled with an integration (motionblinds_ble
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
motionblinds_ble documentation motionblinds_ble source (message by IssueLinks)
Hi,
So if I understand correctly you set up your blind using the mobile app, including end positions, and you can control it using the app?
How long have you been using the integration for? Could you include more debug logs, for example when you connect so I can have a look at the exact messages that are being received?
That is correct. I have setup both blinds in the IOS app. Both are working correctly in the IOS app. Both blinds are connected through the MotionBlinds Bluetooth integration but both show the same error messages.
I am new to this integration. Attached are more debug logs when i connect both blinds and when I try to move the blinds up.
home-assistant_motionblinds_ble_2024-08-18T15-05-20.598Z.log
Interesting. Both motors are CMD-03 with firmware version 1.1? Have you tried resetting the motor? Also, what happens if you move the motor after it has been reset in Home Assistant, and it has no end positions? Could you send me debug logs of that so I can see the difference?
I haven't had the chance to reset the motors but I have found out I actually have two motors of the type CM-09 with firmware version 1.1 instead of CMD-03. Are these motors supported by the integration?
I have tested with CM-09 motors previously which worked fine, so the motors should be supported. I am wondering whether this issue is just a rare occurrence that can be fixed by resetting the motor, a state that is not yet accounted for, or a change introduced with a new firmware update of the motor.
If you could reset one of the motors to see if that fixes it, then I will see if something has changed in a firmware update to cause this.
For your information, the only states that I thought were possible are:
0x2
for no end positions0xE
for both end positions
You are the first to report a 0xC
state for the end positions so I am not sure what it represents. Do you have both end positions set and the favourite position?Only the end positions are set at this moment. The favourite position is not set. I will set the favourite position this afternoon before resetting the motor to see if that fixes it.
No luck unfortunately. I first tried setting up the favourite position but HA still gave an error when moving the blind. After that I removed the device from HA, performed a reset of the CM-09 motor and setup the motor in de IOS app. I could not add the device in HA before the setup in the app was complete. After the setup in the app, I did not configure the start-, end- or favourite position. After adding the device to HA, I still got the same error message in HA when I tried moving the blind. finally I setup the positions in the IOS app but HA keeps giving the same error.
The debug logs are attached. home-assistant_motionblinds_ble_2024-08-20T14-55-42.604Z.log
Thanks! #124322 should fix the issue!
When the fix has been accepted feel free to share your experience with the integration, considering you have wired motors which means you could enable the permanent connection option to the motor!
@LennP Unfortunately it seems your fix does not solve my issue since I still get the same error message. How do I know I use the latest version of de Motionsblinds integration?
@Kevin-vdk did you update to the latest version of home assistant?
Yes, I performed the update to 2024.8.3 this evening.
Could you send me new debug logs? The Motionblinds library should have been updated to the new version which should fix this issue, have you tried restarting home assistant?
I have restarted Home Assistant but this did not fix the issue. Attached are the new debug logs. home-assistant_motionblinds_ble_2024-08-25T20-22-04.362Z.log
Oh I see the new version of the library was not included with the latest 2024.8.3 release, I'm not sure why
https://github.com/home-assistant/core/releases/tag/2024.8.3 https://github.com/home-assistant/core/blob/516f3295bf68cdb1af09ea9fc43171216f3910cf/requirements_all.txt#L1369
Are you able to get access to the python instance to manually install libraries (python -m pip install ...
)? If so, I could create a version 0.1.0 of the library for you with the fix in it
I have no experience with python but if you can provide me with the steps I need to follow, I could give it a try.
How do you run home assistant?
I run Home Assistant OS on an X86-64 machine.
Give this a try:
docker exec homeassistant python -m pip install --force-reinstall --no-cache-dir --no-deps git+https://github.com/LennP/PyPi-MotionBlinds_BLE@test_endpositions_fix2
I followed your steps and it worked. Thank you!
Great! Feel free to let me know if you encounter any additional issues or have feature ideas that you would like to see implemented in the integration!
The problem
After completing the setup of the Motionblinds CMD-03 motor with the IOS app, including the configuration of start and end positions. Motionblinds Bluetooth integration discovers the roller blind and is able to connect. However, I'm not able to control the roller blind from HA. I keep getting the error message:
"Failed to perform the action cover/open_cover. Motionblind D60A's end positions need to be set before usage of this command."
It seems the start and end position are recognised by HA because when the roller blind is at its start or end positions, the "move up" or "move down" option becomes unavailable.
Debug logging enabled and output attached below.
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Motionblinds Bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/motionblinds_ble/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Motionblinds firmware version: 1.1