Has anyone got M515EGWT Blind motor working in ESPHome?

I have had a Zemismart M515EGWT Blind motor running under TuyaLocal or LocalTuya for a year. It is my last device still on Tuya, and I would dearly love to move it to ESPHome and remove Tuya integration.

There is no template in devices.esphome.io … but I have just noticed mention in Tuya Cover — ESPHome

Here is an example output for a Tuya M515EGWT (motor for chain roller blinds):

which clearly hints that someone else has done this before.

  1. I am still very new to ESPHome, but am afraid of cloudcutting it to ESPHome then finding I have bricked it :frowning: After another look at the required ESPHome tuya components documentation I am less confident :frowning:

  2. The other issue is setting the upper and lower limits. This is not exposed in the TuyaLocal integration (there isn’t any device profile for M515EGWT yet), and I don’t remember it in LocalTuya.
    My notes indicate the Tuya website device documentation included a couple of dp_id’s which I don’t remember ever setting up … notably dp_id 16 (“border”) of “enum” type with values “up”, “down”, “up_delete”, “down_delete”, and “remove_top_bottom”. Seems like some experimentation may be in my future :wink:

Do you know what module it has?

I believe if it is a WBR3 you can now use libretiny with ESPHome.

My understanding is you can download the original firmware as back-up before you flash it.
https://docs.libretiny.eu/docs/platform/realtek-ambz/#introduction

Then you can flash the Tuya MCU and confirm the datapoints.

It would be a good little project to leap a little deeper;)
I bet the Discord folk would lend a hand too.

It is a device which has been around quite a while, since the Tuya-Convert days and when ESPHome documentation was written.
Mine is the V2 which I bought direct from Zemismart in 2021, so I assume it has the newer chip. I am reluctant to disassemble and risk breaking it, as my pension doesn’t stretch to another $100 to replace it.
I know the datapoints from having set it up in LocalTuya. Google supplies only a few references which aren’t sales pages.

Anyway it does look as though someone who was around when ESPHome documentation was written has a Tuya M515EGWT, and a working yaml config for it. I am hoping that someone will be kind enough to share what he/she has.

And yes, I intend to study it to improve my ability with ESPHome. Since the config is probably for the V1 i will compare it with the datapoints I know, and work out what the config commands are doing.

2 Likes

I’m considering buying this device and would also want to run it locally. So am following this topic :slight_smile:

I bought two of those newer devices (with a WBR3 chipset) last year, and my findings were, that WBR3 is not fully supported in libretiny (and therefore esphome) yet:

Haven’t touched the devices since, but doesn’t seem like anything has changed, so I would not recommend buying the devices currently until the chip compatibilty is unknown

1 Like

I haven’t tested this yet, but this recent comment in the libretiny upstream issue looks very promising.