This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed Official Zigbee SDK2
[App] Xiaomi-mi ZigBee - Main discussion topic (v0.4.1)
This discussion has been closed.
Comments
I waited quite some time after such ' Zigbee busy' messages but in the end had to reboot Homey for a next try.
In this version, I added support for the curtain controller.
Thanks @RuudvB and @Eternity for supporting this development and @Homey_lampje, @EDV, Jahn, @mehta, @Martin_vd_Aart, @phil_s, @eternity, @Aaron, @brtw, @2Be for your donation enabling this development.
In addition, I fixed the issues with the Aqara Smart Light Wall Switch (L- and LN-version).
Thanks @lubbertkramer and @Phuturist for providing the additional switches to debug these issues.
Fixing these issues correctly, does mean that flows have to be rebuild and some devices need to be re-included.
See below changelog for details:
Changelog:
When adding the device to homey all works fine. All open, close and the slider with different positions work fine.
One thing I have noticed which is not a real issue. I also had this device working on the Xiaomi controller. Once added to homey, this controller has lost the device. I did a re-pair on both without success. It seems that 1 Zigbee device can only be paired/connected to 1 Zigbee controller? I'm not sure since I have not much experience with Zigbee yet.
I think Z-wave does allow me to use a device via homey AND via a third party app. Eh... thinking about this now I might be wrong here. I confuse my Yeelights with z-wave, but they are controlled over WiFi.
Can anyone be conclusive here, is it possible to connect/pair a Zigbee/Z-wave device to more than a single controller?
On your question, no both Zigbee as well as Z-wave only allow only 1 primary controller.
For Z-wave I'm aware that there is an option to include controllers as secondary controller (sharing the same network ID and key).. not sure if this also works for Zigbee.
But let me know if I missed some features on the curtain implementation, which the Xiaomi controller does support..
My 3 curtain controllers work fine. Just one small issue, one controller is 'reversed'.... Open is close and visa versa. Solved it via a flow, but the command 'all open' closes 1 and opens two.
I will order the Aqara Curtain controller now it's supported.
Does anybody know if you can buy the curtain rails that will fit the Aqara Curtain controller in a (web)shop here in the Netherlands or do you have to use the rails from the same brand as the Aqara controller.
That's what I need :-)
@kwan good that you solved in; I guess by resetting the controller manually, right?
That's good feedback.
So, the curtain controller should have the following settings:
- reset calibration
- reverse directions
- enable / disable hand activation
Now I need to understand how this is implemented...
The latter two are likely actual settings (which I expect that Xiaomi combined in a single value), the first one could be a command only...
Anybody willing to help solve this puzzle?
Will require some moving back and forth the curtain controller between the Xiaomi gateway and Homey... and recording the settings as shown in the debug log..
Perhaps @RuudvB can lend you his now obsolete Xiaomi gateway? ;-)
@Joolee great...
If I recall correctly, you are familiar with installing an app through the CLI, right?
What I'm interested in is the printNode information (similar to the capture in the device driver) https://github.com/TedTolboom/com.xiaomi-mi-zigbee/blob/master/drivers/curtain/device.js#L129 up to L212) that will be shown when starting up the app / adding a new device in debug modus.
So can you do the following steps:
- Remove the curtain controller from Homey
- Reset the curtain controller manually (reset to defaults)
- Add the curtain controller to Homey and capture the PrintNode (default)
- Remove the curtain controller from Homey and add it to the Xiaomi gateway (without reset)
- Change the parameter of the opening direction
- Remove the curtain controller from Xiaomi Gateway
- Add the curtain controller to Homey and capture the PrintNode (default + reverse opening)
- Remove the curtain controller from Homey and add it to the Xiaomi gateway (without reset)
- Change the parameter of the opening direction back to default and change the parameter on manually open
- Remove the curtain controller from Xiaomi Gateway
- Add the curtain controller to Homey and capture the PrintNode (default + manual opening)
- Remove the curtain controller from Homey and add it to the Xiaomi gateway (without reset)
- Change the parameter of the opening direction and change the parameter on manually open
- Remove the curtain controller from Xiaomi Gateway
- Add the curtain controller to Homey and capture the PrintNode (default + manual opening + reverse opening)
And send those printNodes to me... my guess is that either the `configStatus` or / and the `windowCoveringMode` will change... and thus will control these parameters.
Last time the seller used standard Ali shipping but it still arrived via DHL. There was no extra charge at the door when receiving so I was hopeful... A few weeks later an invoice > 50 euro...
Still, even with extra handling cost it is a steal. At least compared to pricing for the shuttle curtain systems. The Xiaomi (aqara) motor is VERY quiet and works perfect with the compatible rail.
Het is verklaarbaar en zelf correct dat 1 van mijn gordijnrails 'omgekeerd' werkt. De motor hangt daar links, bij de andere twee rechts....
Logisch dat er een native reverse optie in de xiaomi controller zit.
Sorry, should have been in English.
1 of my 3 curtain controllers has the controller on the left side of the rail. The others on the right. As a consequence, the first controller works 'reversed'. Open = closed and visa versa. This is normal behavior, and in the original xiaomi controller a setting is available to 'invert' the operation, depending on controller placement on the rail.
I’m looking to get the reverse option included...
Follow the following steps:
A video demonstration of the reset (step 2 and 3), can be seen at https://youtu.be/3lqIXm73qbk
I will check if I can discover which command triggers the recalibration...
Edited my post and added some English.
I have 3 blinds, and two came from COJA BLINDS SHAOXING KEJIA BLINDS CO. Store
https://nl.aliexpress.com/store/1908671?spm=a2g0s.9042311.0.0.SeUdPa
I ordered from them, because my first rail was shipped in 50 centimeter chunks. This shop ships rails up to 250 cm sections. So, in my case I had them ship a 440 rail in two 220 cm pieces. It arrived in a "koker" (cardboard tube) and was extremely well packaged. I have had no issues with customs and received both via UPS.