-
Notifications
You must be signed in to change notification settings - Fork 502
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
[Request Device Support] Aqara Curtain motor B1 #1654
Comments
It looks like the previous (mains powered) Aqara curtain controller ( I'm a bit worried that the Windows Covering cluster doesn't provide Current Position Lift Percentage. It probably reports the position on the Analog Output cluster. The REST API plugin already picks that up (the Can you check that the Present Value of the Analog Output cluster reports 0 when the curtains are closed and 100 when open? Can you also check that it responds to the Open, Close, Stop and Go to lift percentage commands from the Windows Covering cluster? Can you set Reversed in Config/Status to change the direction for Open en Close (in case you installed the band to pull the curtains the other way round)? I'm afraid we need for the API v2 |
Ok, in the next 2-3 days I will check everything and write the result on all issues. |
|
Odd. Does the curtain controller connect to the RaspBee/ConBee directly, or did it select another parent node?
On the old controller, it changes from 0.00 (closed) to 100.00 (open), after calibrating the controller. Just like Current Position Life Percentage. Does the controller react when you try and write Present Value? Does the Multistate Output report anything?
My bad, it's a read-only attribute. The setting is through Mode.
Do you mean the calibration of the open and close position? Yes, that's handled by the motor itself, "behind" the ZigBee module. On the old model, you need to detach the ZigBee module to access the (other) reset button for the motor and make it re-calibrate. |
Hi Can you confirm if this works with deconz/conbee 2? I am planning to get one. Appreciate your feedback. |
Hello. This curtain is working? |
Hi, unfortunately not, I'm still waiting for B1 support to be added to the deconz. Maybe support will appear in 2.05.67. Like this issue to show the importance of adding support for B1. |
@ebaauw Should we expect support for Aqara B1 in Deconz 2.05.67? |
I’m not the person to answer that question. I am just a deCONZ user, who on occasion contributes to this open source
To support the B1, we first need to understand how to control it, i.e. what ZigBee commands make it open, close, and hold the curtains, and how it reports the current curtain position. If it’s not through the Window Covering nor through the Analog Output cluster, I wouldn’t know how. |
I test zigbee2mqtt and change config from aqara curtain for aqara curtain b1. It is working. But without battery state I want to say that the control commands work with the previous non-battery version One problem i cant get responce with current position |
So it will be enough to clone the settings from the old version of the "lumi.curtain" for the new version of the b1 "lumi.curtain.hagl04", good news. |
Not according to your own tests. We must understand how to control the B1 from the GUI, before we can support it in the API. |
https://github.com/freenetwork/ZNCLDJ12LM I capture packets. Controls messages use previous |
Thanks. Very insightful.
Unfortunately, you didn't capture opening nor closing the B1. I bet they use special attributes for that as well. And for reporting the current position. First order of business is defining these attributes in |
Ok. I try today. I did not capture the opening and closing since the motor was on the table. it is not calibrated and in packets it would not be possible to determine correctly the current position. I’ll try at home today when the motor is on the ledge and write there |
My radio broadcast is very full. For this status message is difficult to choose. I take screenshoots from wireshark. Control message work from old model. |
Working config Aqara B1 for Homebridge based on Xiaomi hub: |
Working config Aqara B1 for Home Assistant based on Xiaomi hub: |
@cacherocks, that won’t be of any help. These integrate with the API offered by the Xiaomi hub. For deCONZ support, we need to integrate with the B1 itself over ZigBee. |
ok, what other data is needed, at least for the test addition of the motor to the deconz? Even without a battery, the main thing is motor control. The data that @freenetwork provided is not enough? |
@freenetwork says that the control commands for version B1 are the same as for the old version of the motor. It turns out that you just need to copy everything from lumi.curtain to lumi.curtain.hagl04. Obtaining data on the battery charge can be omitted, it is not as interesting as managing curtains. Please do a PR with a copy of the data from lumi.curtain to lumi.curtain.hagl04. |
The code checks if the model identifier starts with |
I have just tried to pair my new B1 but it did not want to connect to Deconz. @ebaauw how can I help? I have the dongle for sniffer. |
I’m afraid you need to sniff the ZigBee commands that the Aqara hub sends to the controller. As mentioned above, I suspect they use manufacturer-specific attributes to control and report the motor. As for pairing: it should appear in the deCONZ GUI, see screenshots above. |
@ebaauw oh, ok. I was looking into Deconz web interface. I am away for two weeks so cannot do it now but I will update as soon as possible. Thank you for your great work 😄 |
How is the progress guys? |
Hi! Is the motor supported now? |
Nothing has changed since my last reply - you can open/close/set position, but you don't get a status of the device. |
This topic has already been closed, but I'll post a reply to @ebaauw request to do GET on /lights. |
Does Present Value already reflect the actual position before the Read, or only after it?
Can you check the value of the Current Position Lift Percentage in the _WIndow Covering cluster? What happens if you read this attribute (after you read the Present Value in the Analog Output cluster)? My guess is:
To figure out what's happening, we would need a sniffer log of the Zigbee traffic; alternatively, run deCONZ with |
Only after.
Attribute unsupported.
I'll need more time for that, so I hope I'll manage to do that this weekend. |
OK, so it looks like the B1 simply isn't reporting the Present Value. Could you try in the GUI to set up a binding from the Analog Output cluster to the coordinator, and to configure reporting for Present Value (values 1/300/1 should be OK). See the User Manual under Help how to do this. If this works, could you try the same for the Power Configuration cluster and the Battery Percentage Remaining attribute (with values 7200/7200/0). |
I did the binding and then tried to configure the reporting, but unfortunately the attribute is unreportable. |
Unfortunately, that doesn’t come as a big surprise for a Xiaomi device. I cannot imagine that the B1 doesn’t report the current position somehow, but without having access to the device it will be hard for me to find out how. Really need a sniffer log, or debug log from deCONZ. I assume just creating the binding didn’t result in the position being reported? |
According to z2m, the binding should be sufficient and the device sends those attributes. |
I double checked that. The binding alone changes nothing: I don't see values udating in HA unless I do a "Read" in decons. I run deconz with debug 2. Here are several entries starting with aps-data.indication. I was gathering data while making the curtain go to positions 0,10,20,50 ` 16:58:37:954 APS-DATA.indication from child 0x0100 17:01:16:259 APS-DATA.indication from child 0x0100 17:04:34:158 APS-DATA.indication from child 0x0100 postion: 20 postion: 0 postion: 50 BTW: can I access deconz log file somehow? Right now the only way to access log is throughs HA's GUI which is not very convenient. |
So the B1 does send attribute reports for 0x0055 and 0x00F0. I’m not good at manually deciphering |
Is it a good thing? Given the fact that the reported values are incorrect? I mean in some cases 100 was truly what was requested, but most of the time I asked for 90, 80, 50 (in HA it will be 10, 20, 50), so even 98 that occurs in the reports from time to time is incorrect. |
It's a good thing that the B1 is reporting something; it's a bad thing that it's reporting nonsense. I'd try a full reset, not just of the Zigbee module, but also of the motor, and a recalibration of the open and close positions. I don't have a B1 myself and I'm at a loss what's happening otherwise. |
so, any kind of use? i have conbee II and home assistant and i can't set up automation because home assistant can't receive open/closed status :( .. any kind of workaround? |
Is there any news on this? I can't really do anything with the Aqara B1 motor with ConBee II stick on HomeAssistant as the stick doesn't know the position of the curtains. Is there anything we can do to help move this forward? |
@ebaauw Can you answer the above? |
No |
Sorry - is that a: I'm keen to help out in any way I can. If there's testing that needs doing or information that needs collecting, etc. |
No, there isn’t any news on this. I don’t have the B1. I tried to add support based on the mains-powered curtain controller (which I do have). I understand controlling the B1 works, but it doesn’t send notifications when its state is updated. As I’ve mentioned before, we need a sniffer log of the Mi gateway setting up the B1, configuring it to send notifications. Even with that info, it might be challenging to mimic that setup without having the device at hand. |
@ebaauw How about polling it? |
No fan of polling end-devices. If the Mi gateway turns out to be polling the B1, I suppose we have no alternative, but otherwise, I won't go there. |
Hi ebaauw. I have boght a Mi gateway and it happily controls the Aqara B1. What do I need to do to sniff the messages beteen the gateway and the curtain motor? Can I use my ConBee II stick to do this? Or do I need some special Zigbee hardware? |
I use ZShark to sniff the traffic and Wireshark to analyse it, but ZShark still doesn’t support the ConBee II nor RaspBee II. I understand controlling the B1 is not the issue, but getting the B1 to report its state to deCONZ. |
Can someone help me with this? |
Hi, just checking in if someone had managed to get this to work? I had tried pairing through the phoscon GUI, and wasn’t able to detect the motor. |
You need to use phoscon "add new light" for the device be included in the API If it's your first device, can be a setting issue, else your procedure for reset the device is perhaps bad. |
I had used “Add New Lights” from the phoscon GUI. Then hold the button on the B1 motor for 5 seconds until it blinks. No feedback from the GUI. |
A device can't be paired to 2 network. |
Node Info
Basic cluster 0000
Identify cluster 0003
Windows covering cluster 0102
Analog Output (Basic) cluster 000D
Multistate Output (Basic) cluster 0013
Power Configuration cluster 0001
Node
Description
Works both with the battery and from power supply. Review.
The text was updated successfully, but these errors were encountered: