Single phase Din rail Smart Switch with Energy monitoring zmai-90

has anyone else noticed if you press the button on the zamai-90 it loses wifi and you have to reset and start again?

in fact, I could do 4 short presses to enter the wifi SSID/password, both were correct now I get nothing from it at all… All I did was press the button on it and it has gone mental.

EDIT, turned off for 30 minutes and back on and I am able to configure again. annoying, will never press the button again :slight_smile:

hello, you updated a tasmota 8.2.0 and now all my sensors have unknown status, the switch works properly, any ideas on this?
I think it was tasmota because I updated yesterday, today was when I saw that the sensors do not register any value.
Greetings and thank you

Hi,

I’m from begining on Tasmota 8.1.0.2 and all work as expected. I do not plan to upgrade till I’ll have serious reason.
I suggest if rule1 is on and works. Simply lot to Tasmota web console and and check if you see serialsend in log. In case you are not seeing it simply repeat last step of configuration:

  • in the Tasmota console type:
    Rule1 on System#Boot do RuleTimer1 10 endon on Rules#Timer=1 do backlog SerialSend5 fe010f080000001c; RuleTimer1 10 endon
  • next, enable the rule by typing:
    Rule1 1

Hope it helps,
Jarek

Hi, thanks for answer, I did it already and same yet
I supose was tasmota update but I’m not sure at all
update:
after downgrade to 8.1.0 and the switch would stop working (my face was pale), and looking at the console everything seemed to be fine, I changed the topic, reset the device, everything remained the same until the mosquito addon stopped and I started it again … finally everything returns to normal, I can now sleep peacefully
I mention it here as a bad experience, in case someday can help to someone

Thanks for the information. I’m waiting for three to arrive. So I’ll flash them with 8.1 and not 8.2 :slight_smile:

Yes, the issue is that after release 8.1.0 they no longer put the hex value between quote marks:

-    Response_P(PSTR("{\"" D_JSON_SERIALRECEIVED "\":\"%s\"}"),
-      (Settings.flag.mqtt_serial_raw) ? ToHex_P((unsigned char*)serial_in_buffer, serial_in_byte_counter, hex_char, sizeof(hex_char)) : serial_in_buffer);
+    bool assume_json = (!Settings.flag.mqtt_serial_raw && (serial_in_buffer[0] == '{'));
+    Response_P(PSTR("{\"" D_JSON_SERIALRECEIVED "\":%s%s%s}"),
+      (assume_json) ? "" : """",
+      (Settings.flag.mqtt_serial_raw) ? ToHex_P((unsigned char*)serial_in_buffer, serial_in_byte_counter, hex_char, sizeof(hex_char)) : serial_in_buffer,
+      (assume_json) ? "" : """")

This means that you need to parse assuming that quote marks are not present. E.g.:

{"SerialReceived":FE01083233000050230000402211000050000004392600521300008241260000100000CF}

you mean that changing the value_template of the sensors would work in 8.2.0?

Yes, that would work. Apparently the new code is able to detect if you are receiving a json body or not, conditionally adding the quotation marks but I haven’t seen how that works exactly…

Cheers

1 Like

Fyi, the issue was fixed:

if you can, please build from development and give it a try.

Cheers

I’m sorry, but I dont know how do it

i received two units today. Connected the first unit to AC, started tuya convert process.

Process failed, and now the wifi led won’t turn on. Did i just brick the device?

What error did you get ? I have 6 of them, all flashed to tasmota using tuya-convert.

Very interested in picking one of these up. Does anyone have details of install (Photos or manual)? I’m interested to see if these are Hall affect or inline (apologies if this is a silly question)
Any help would be appreciated!

There are pictures here :

1 Like

I happened to me as well.
Simply open case, find 4 pins terminal, as shown here:

https://www.creationfactory.co/2019/12/reverse-engineering-zmai-90-din-rail.html

connect UART and flash with Tasmotizer.

Hi.

I’m using tuya local with this device ZMAi-90.

@luis_teixeira you thing it’s fine for 25A in a apartment?

@luis_teixeira

I do have the same doubt.
I do not want to mess with the switching part so I bridged the relay contacts (with heavy copper and solder, and with care not to mess the sense part).

So for sure that, even if the internal relay contacts do not support 30A alloted to my apartment, there will be no issues.

Just worried about the meter itself and its sense capability.

Hi, I have flashed a ZMAi-90 with ESPHome and it works perfectly. I was trying to measure a grid-tie solar inverter power generation. I connected the IN to Mains and the OUT to the grid-tie inverter. This way I can switch-off the inverter if required but I’m not able to get the power readings from the inverter to mains. Is the device able to measure in both direction or only one?

Hi,
Can I connect 6mm² wire ? I bought SDM120 that can only connect 2.5mm² wire …
Thanks.