Open leoshusar opened 1 year ago
@leoshusar Did you ever get the BCM500DS-TYW flashed?
@dancwilliams Yes, I made a messy workaround, but it works!
You can download my custom component and extract it to esphome/custom_components
(the path will look like esphome/custom_components/tuya_cover_fix
). It's just the official Tuya component and I hardcoded correct codes for this model.
tuya_cover_fix.zip
Then your YAML will look like this:
cover:
- platform: tuya_cover_fix
device_class: curtain
name: "curtain"
control_datapoint: 102
position_datapoint: 101
direction_datapoint: 103
The log still complains about the init_state
:
but it doesn't block anything.
@leoshusar Awesome! Thanks! What method did you use to flash ESPHome onto the device?
@dancwilliams no problem!
Do you actually have an ESP chip in there? Tuya started swapping ESPs for chinese Beken chips several months ago, incompatible with ESPHome and Tasmota.
If you have TYWE1S with ESP, you can follow this guide, solder few wires to it and it should just work.
If you have non-ESP module (just google its model number), you have two options: 1) Solder ESP instead of it 2) Try OpenBK7231T_App - it's a Tasmota "clone" (built from scratch I believe) for those chinese chips, but I won't tell you if and how it would work with this motor.
@leoshusar I have the TYWE1S so I am good to go! Thanks for the links.
Describe the problem you have/What new integration you would like I would like to get support for my Zemismart curtain motor BCM500DS-TYW
Please describe your use case for this integration and alternatives you've tried: I've tried the current
tuya/cover
component but it doesn't work 100% for my motorAdditional context
I've got Zemismart curtain motor BCM500DS-TYW, it comes with TYWE1S and I was able to flash ESPHome to it. Then I tried to configure it using
tuya/cover
component, however it seems to communicate somehow differently than the already verified motor.First thing is, it gets stuck on
init_state
3:and the heartbeat response is
55:AA:00:00:00:01:01:01
- found in the docs here. It looks like they are for some reason using Bluetooth protocol for WiFi module?But ESPHome seems to work even with incomplete init state. What could happen if I keep it running like this? Won't ESPHome complain after some time or something? Would it be possible to implement this too?
However the main problem is, my motor has
swapped close and stop commandcompletely swapped commands. It should be:I was able to find this - it says legacy only, so maybe my TuyaMCU uses some kind of legacy protocol?
And here I was able to query my datapoints using Tuya API, which is great, after finding many posts about how people do it by trial / error:
Let me know if you need anything else. Thank you!