Logo
ZMAi-90 Digital Energy Meter
Model reference: ZMAi-90
ZMAi-90 Digital

Available from:
Aliexpress.com
Amazon.com
Amazon.de




Flashed with:
Tuya-Convert

GPIO #Component
GPIO00 None
GPIO01 Serial Tx
GPIO02 None
GPIO03 Serial Rx
GPIO04 None
GPIO05 None
GPIO09 None
GPIO10 None
GPIO12 Relay1
GPIO13 Button1n
GPIO14 None
GPIO15 None
GPIO16 None
FLAG None
Template
{"NAME":"ZMAi-90","GPIO":[0,148,0,149,0,0,0,0,21,90,0,0,0],"FLAG":0,"BASE":18}
Tuya-Convert might not be possible for this device if the manufacturer started using newest Tuya firmware since this template was published (2020-05-12).

Full instructions here

There is a more recent version of the device which uses TuyaMCU protocol for communications instead of its custom serial protocol. To configure this version, don’t use this template but use “Tuya MCU (54)” module (command module 54`) and the following settings entered via the console.

Backlog SetOption66 1; TuyaMCU 0,17; TuyaMCU 32,18; TuyaMCU 31,19; TuyaMCU 33,20; SetOption59 1
Backlog Rule1 1; Rule1 on System#Boot do RuleTimer1 5 endon on Rules#Timer=1 do backlog SerialSend5 55aa0001000000; RuleTimer1 5 endon