Tuya Curtain Motor custom component with set position and realtime feedback

Super, now we have the component adapted for Zemismart curtain.

Hi mates,

Since I’m thinking about to install this motor on a roller shape :

https://www.aliexpress.com/item/4000983297439.html?spm=a2g0o.detail.1000014.15.2d335536fRn0gP&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.14976.171374.0&scm_id=1007.14976.171374.0&scm-url=1007.14976.171374.0&pvid=46727795-da63-4a71-8d19-73bcb73fbad5&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.14976.171374.0,pvid:46727795-da63-4a71-8d19-73bcb73fbad5,tpp_buckets:668%230%23131923%231_668%23808%234093%23726_668%23888%233325%231_4976%230%23171374%239_4976%232711%237538%23794_668%232846%238114%23789_668%232717%237562%23437

I would appreciate if some of you can share how is the hardware schema, since I don’t understand if I have to modify the internal Tuya ESP firmware using yours, or I have to put a new one connected to the TX/RX pins of the original TUYA or what else.

Thank you so much in advance.

Hi.
I’ll ask beginner questions.
How do I connect the stick to the PC to write the curtain.yaml file?
Where do I put the curtain.h file?
THX

How do I connect the stick to the PC to write the curtain.yaml file?
A: You should have Tuya converted to flash custom firmware like esphome. Hope you have done it.
Where do I put the curtain.h file?
A: It should go under ESphome foler of your home assitant (It will be under config/esphome)

Hope it helps

Thank you for your answer.
I managed to put Esphome on the stick.
image
image

But if I want to write: includes: “xxx.h” it gives me an error.
image

The custom cover component gives me an error:

cover:

  • platform: custom
    lambda: |-
    auto curtain = new CustomCurtain();
    App.register_component(curtain);
    return {curtain};
    covers:
    • name: Curtain
      device_class: blind

image

What could I do?
THX

For C header file you want to include, the path should include the directory from the root of your esphome folder. In your case for example it should be xxx/xxx.h

Even if I put the xxx.h file in the xxx folder:
image

I get this error:

As you can see I can’t upload the configuration.
What else can I do?
THX

What do you expect? :wink: :slight_smile: You put a file xxx.h.txt into your xxx folder… And as the answer above your post says, you have to put the correct location in your file, including the folder. So as said, it would be xxx/xxx.h in your *.yaml file and the file should be xxx.h in your folder xxx.

The problem was the format of the xxx.h file.
image

Hi Jaime,

I’m planning to install this motor too.
Would you share about how to get it working with esphome?

Thanks you so much!

@lemonsa22, I didn’t do it, since I don’t know how to do with the tuya firmware.

Sorry.

1 Like

Is it possible to integrate multiple devices?

Yes you can have multiple devices integrated.

Hello Dear

Can I possible to integrate tuya Zigbee devices with Home Assistant without zigbee2mqtt .

I mean is possible direct tuya integration zigbe devices

Has anyone tried this with the newer version BCM500DS-TYW? The date on the board is 2021, and I have not seen anyone online attempt Tasmota or ESPHome. It still uses an ESP chip so I think it should be possible, but I’m not confident that I have the knowledge to get the configuration right with the Tuya protocol. I was also planning to add a lux sensor to some spare pins while I’m at it.

If the Tuya commands are different on this board, how would I be able to identify what they are? Is there a way to back up the existing Tuya firmware in case I screw this up?

Update: I just went ahead and tried the ESPHome code on the updated hardware posted above. It works perfectly. Thanks to everyone who contributed!

2 Likes

Hello! I have DS82 motor for tuya curtain, I flash it with esphome and nothing works ( Can you help me? I am not understand how to obtain the codes for motors. Thank you!

Hi @folkg , I have the exact same motor. Were there instructions you followed to flash this specific chip? If so, could you advise the link. Thanks

Hello everyone, i followed everything above, but unfortunately i could not control my curtain through home assistant, i have grey arrow button. While i see communication between home assistant and esphome through esphome logs. Then suddenly i found out my board looks a bit different then last pictures of new version BCM500DS-TYW, while i have same model name. What could i do here? Original firmware for esp8266 is gone. (Besides that, original smartlife app stopped to control curtain some months ago, i just decided to do something with it finally)