RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.73k stars 360 forks source link

Template Help: Curtain Motor #688

Closed tonysprenk closed 4 years ago

tonysprenk commented 4 years ago

This is the device: https://s.click.aliexpress.com/e/n3g3Q1For More info here.

Any help would be greatly appreciated!

tonysprenk commented 4 years ago

https://tasmota.github.io/docs/#/TuyaMCU?id=curtain-motors this might help too!

RavenSystem commented 4 years ago

Sorry, it is not compatible with HAA because esp chip does not manage curtain directly. It uses serial commands to communicate with the chip that manages it.

tonysprenk commented 4 years ago

Thats really bad news... Any plans on adding this feature into HAA? Tasmota seems to have it implemented, but I love HAA as I don't need a bridge, and it's very stable for my other accessories... I think more info on how Tasmota achieves this can be found here.

RavenSystem commented 4 years ago

Maybe in the future, but not soon.

bj-tracer commented 4 years ago

You may use other curtain drives with the direct motor control and any dual relay with esp8266 controller. If you want to use Zemismart motor than you need a tiny controller that may convert hi/low signals from esp8266 with HAA to serial comands.

bj-tracer commented 4 years ago

or... you can remove Zemismart logic and inser any dual relay module with esp8266 ;)

tonysprenk commented 4 years ago

Yes I’m researching this. It has a rj45 connection for dry connecting a low voltage relay. I guess something like this (https://s.click.aliexpress.com/e/FzW1z1iXv) should work?

tonysprenk commented 4 years ago

B8D83745-DA45-4745-972E-8AD3CA1A7AFB

tonysprenk commented 4 years ago

I’d like to keep the internal components intact as I use the RF remote as wel as the “manual open and close” functionality.

RavenSystem commented 4 years ago

Using externals controls (Like RF) is not good, because HomeKit loses position sync.

Other way could be to build a device that works over RF remote, connecting relays to RF buttons, to open, close and stop. You lose RF remote, but as I say, using controls outside HomeKit is not a good idea.

tonysprenk commented 4 years ago

Hmmm okay, maybe I should just resort to using the homeassistant Tuya component as it has the ability to get the state, unfortunately I’ll be connected to a Chinese server. Thanks for all your suggestions!

bj-tracer commented 4 years ago

You can use RF that connected to esp8266 board and working like an external switches. Then Zemismart board will to drive the motor only.

So you need to make the stick that will be connect to the Zemismart drive trough RJ45 with 1/2 logic (for example). Unfortunately there is no power in this RJ45 connection. But you can use for it USB-port ;)