trouble getting Smart Meter interface working

61 views
Skip to first unread message

Chris Huitema

unread,
Mar 21, 2021, 8:15:59 AM3/21/21
to TasmotaUsers
Hi All,

Does anyone have experience getting the smart meter interface working? 

I have used Gitpod to compile firmware, I'm pretty sure I have compiled correctly because I can see the script option show up in the tasmota config menu on the device.
in user_cofig_override.h
#ifndef USE_SCRIPT
#define USE_SCRIPT 
#endif 
#ifndef USE_SML_M 
#define USE_SML_M
#endif
#ifdef USE_RULES
#undef USE_RULES
#endif

Ultimately I want 2 meters set up on the device, one a 20 year old 3 phase meter.. and a gas meter with a simple magnet in the last wheel.

So starting with the easy one - the counter. I have connected a hall sensor to the D1 mini D4 (GPIO2), I can see when the meter is spinning away I'm getting a good pulse every 10L, this is indicated by the onboard LED illuminating and also when I'm using stock firmware and GPIO2 as a switch and a different pin as a relay I can see it switching on and off at the right times.

On the device I have entered the simple script
>D  
>B  
->sensor53 r
>M 1 
+1,2,c,1,-10,GAS
1,1-0:1.8.0\*255(@1,Gas,cbm,Count,19
#  

I have clicked the enable script in the menu and also in the console. I've found I need to reboot to see any changes made to the script text show up, however I get no change on the meter reading and no mqtt even though it should transmit every pulse
I can see the script is kind of working because I see GAS Gas 0.000 cbm it the top in the main menu.
I have tried the flag set to 0 and 1, I've tried 10 and -10 for the parameter

Any ideas to troubleshoot would be greatly appreciated

Thanks Chris



Reply all
Reply to author
Forward
0 new messages