You don’t seem to have enabled scripting (but you just have missed it from the list). Not sure if that’s the issue.
Sent from Mail for Windows
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/8586c285-a8ee-4566-8784-6199f53b2a82n%40googlegroups.com.
When you say that you see the input on the console, can you upload what you see?
The meter definition looks incorrect
+1,20,oN1,16,115200,,1
I think the N1 only applies to MODBus. None of the OBIS examples seem to use the 16 counter flag so, assuming GPIO20 and baud rate of 115200 I would try
+1,20,o,0,115200
Regards
Phil K
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/5166644d-aa43-4f14-afdd-3833a68a0cf2n%40googlegroups.com.

Oops. Not sure what the final 1 in your definition is for too.
Phil K
Sent from Mail for Windows
From: FransOv
Sent: 01 July 2022 14:44
To: TasmotaUsers
Subject: Re: Smart meter on esp32c3
I just fried my esp32c3. That's my punishment for using 5v and 12v adapters with the same size plug.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/cd930589-f6f3-4817-999d-4923105d9b77n%40googlegroups.com.
It looks like the script isn’t running. The serial input is being read as commands
Are you sure that you have
#ifndef USE_SCRIPT
#define USE_SCRIPT
#endif
#ifndef USE_SML_M
#define USE_SML_M
#endif
#ifdef USE_RULES
#undef USE_RULES
#endif
in user_config_override.h
I therefore tried again with an esp8266 D1 mini. Surprisingly that worked to a certain extent. There are a fair number of errors and/or overruns in the serial communication. That is why I need the median filter (16) in the definition. Without it the sensors will get intermittent strange values. The N1 dies not seem to make a difference.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d4cccd41-00da-4f9b-910b-fe767846c13cn%40googlegroups.com.
I wonder if the C3 variant might be an issue. It’s only single core and not as fast as the other ESP32.
Would you not be better allocating another GPIO as SerialRx rather than using the hardware port? It would then automatically use SW Serial
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/77893bcd-5c24-42bf-9a9a-d612b4e7a901n%40googlegroups.com.