TuyaMCU support for Moes shutter/blinds: buttons link to dpid with payload #13308
Replies: 12 comments 9 replies
-
I managed to solve the issue using the Rules: First I configured the module as shutter see https://tasmota.github.io/docs/Blinds-and-Shutters Rule1 Activated the rule with "Rule1 1" and finally checked the MQTT outputs to be working in all ocasions. To get the LED'S on the switches to light up I had to switch dpid 7 on. Tasmota is fascinating - thanks guys! |
Beta Was this translation helpful? Give feedback.
-
Update: In order to get the shutter position working correctly, even when operating the roler with the keys i needed to update the rules. The problem behind was that the esp was not recognizing when a key is pressed. Here the refined rules: Rule1 ON Power2#state=1 DO TuyaSend4 1,0 ENDON ON Power3#state=1 DO TuyaSend4 1,1 ENDON The only flaw I have now is that once a button is pressed it refires itself until the stop button is pressed - but that is no problem. |
Beta Was this translation helpful? Give feedback.
-
Hi. Sorry for my english was translated with google. I have the same switch only I soldered an ESP-02S into it. I configured the switch as a shutter and took the template that Tasmota has but I only have one button... I tried your plan with Tuya MCU 54 but 3 buttons just don't want to come up. what am I doing wrong? Please help |
Beta Was this translation helpful? Give feedback.
-
Hello, I did everything so it works as you showed me. It only happens when I enter fnid11 <-> dpid 1 payload 0. Edith: if i have TuyaSend4 1.0 i can control it. 1.0, 1.1, 1.2 |
Beta Was this translation helpful? Give feedback.
-
Check out this page: https://tasmota.github.io/docs/TuyaMCU/ |
Beta Was this translation helpful? Give feedback.
-
I'm a complete novice with some technical understanding. I could use some help with creating a rule 🙂 |
Beta Was this translation helpful? Give feedback.
-
I can do what I want... unfortunately it doesn't work... Is it maybe because I don't have enough switches? |
Beta Was this translation helpful? Give feedback.
-
Hi. I got it. I changed the rule a bit because it didn't work properly for me. Thank you for your help and patience |
Beta Was this translation helpful? Give feedback.
-
Hello, Miquel |
Beta Was this translation helpful? Give feedback.
-
Thanks @Dobie007 this helped me a lot jointly with this reference. I am only struggling: how to calibrate, i.e. change the definition of end-points of my shade motor?
Any hints appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
-
OK thanks. My understanding is: I tried the Tasmota standard commands: shuttermode shutterbutton1 shuttercalibration1 . |
Beta Was this translation helpful? Give feedback.
-
Thanks again. Actually, Tasmota buttons an commands are not needed to move the shutters. I assume you had your calibration done / endpoints set correctly before starting this thread. |
Beta Was this translation helpful? Give feedback.
-
I have got a set of curtain switches that originally had a Beken7231 MCU which I replaced with a Tasmota flashed TYWE2S ESP8285. Only the 3.3V power and the serial interface is connected so any ESP8266 will do the job as well.
I configured Tasmota in "Shuttermode 1" and as "Tuya MCU 54" and got the three buttons to be fired if i send:
TuyaSend4 1,0; TuyaSend4 1,1; TuyaSend4 1,2 via console.
I mapped 3 relays to three unsed dpid's using: TuyaMCU 11,2 TuyaMCU 12,3 TuyaMCU 13,4
To control the module i would need:
fnid11 <-> dpid 1 payload 0
fnid12 <-> dpid 1 payload 1
fnid13 <-> dpid 1 payload 2
It would be good to be able to define something like "TuyaMCU 12,1 1" or so...
Here the actual messages the module sends back when the keys were pressed:
Left button:
19:04:11.911 {"TuyaReceived":{"Data":"55AA00070005010400010213","Cmnd":7,"CmndData":"0104000102","DpType4Id1":2,"1":{"DpId":1,"DpIdType":4,"DpIdData":"02"}}}
Center button:
19:20:43.813 {"TuyaReceived":{"Data":"55AA00070005010400010112","Cmnd":7,"CmndData":"0104000101","DpType4Id1":1,"1":{"DpId":1,"DpIdType":4,"DpIdData":"01"}}}
right button:
19:21:41.632 {"TuyaReceived":{"Data":"55AA00070005010400010011","Cmnd":7,"CmndData":"0104000100","DpType4Id1":0,"1":{"DpId":1,"DpIdType":4,"DpIdData":"00"}}}
Beta Was this translation helpful? Give feedback.
All reactions