I was finally able to finish the last automated window treatment in my home. This one was a bit trickier than the rest of the house. First thing I needed to do was have an electrician add outlet on the right hand side of my patio door. I was then able to combine a Zemismart Zigbee curtain rail , to move the blinds left and right. And a Soma Tilt 2, to rotate the blinds open and closed.
A raspberry Pi zero W ,running the Soma Connect software, is used to control the Soma Tilt device.
I was able to add in the commands needed for the Soma Tilt device to a Zemismart Zigbee Shade Driver. I have checks in place to make sure the Soma device receives the message to rotate and also a slight delay to make sure the blinds start turning before the rail starts to slide open. Also the blinds rotate to "0" at a different range depending on how far open "left to right" the blinds are. This prevents them from over tightening and throwing off the calibration. Each time the blinds change level/position the blinds rotate to 100% and when they stop they rotate to "0" depending on the open level/position.
Zigbee, Bluetooth, and Wifi all working in harmony
Here's a link to the driver code if anyone wants to check it out...