>D
>B
->sensor53 r
>M 1
+1,3,o,0,300,ZE312,1,100,2F3F210D0A
I get bak all the OBIS codes from meter that it can give
so I think it means I need to send 2F3F210D0A on seria/UART and parse the results.
Is there a link describing what exactly i need to return from esphome to HA energy?
Is there simple example of sending text (hex?) on serial and parsing the results?
esphome SML will not compile, tells me that “1.8.0” is not valid SML, i guess it is not, but anyway I did not found a way to send /?!\r\n to poll the meter
So not even close to home assistant energy dashboard part
1.8.0 is what meter returns, what i posted above is reply from the meter, even if SML in esphome would parse “1-0:1.8.0” as “1.8.0” I still don’t know how to make it query the meter.
If you were asking about tasmota script that successfully polls the meter it is the thing in the first porst, i was never able to parse anything from response.¨
I guess it is worth a try to do
+
and let’s see what sml component will do (i can’t do ota currently so updating is kinda pain)
And what error message do you get/ why isn’t it working. I suspect the obis code isn’t necesarily the problem. You have your baud rate at 300, is that correct?
This is my working code (at the time SML wasn’t supported by ESPHome yet, so i used an external component):
so it seems to not send it once, but multiple times.
300 baud is correct, i get it working in tasmota with 300 baud, it should support 9600, but I got it working with 300 so that is what I set
I’m using head from hichi that does have nice provision for esp01, but that alo means i’m limited by the 1MB for OTA, i found pin compatible 4MB board on ali, but that will take about month until i get it here.
Update: i think the issue is with reading head I use “hichi” as with tasmota i can read garbage if i point it to istelf etc. but if i do same with esphome i cannot. I think there is some hacks for tasmote so that it can work with it
I’m sorry that I can’t help you any further at this point.
I’d wait for the esp with 4mb so it’s a bit easier to try some different things out OTA.
One of those things could be using the same SML integration I’m using opposed to the build in esp home one.
For me it has been working without skipping a beat for 6 months now and our setups are basically the same.
So to recap, you still have two problem at the moment:
you’re unable to trigger the smart meter
your readings are gibberish
is that correct?
I did some digging around and found the following possible solutions.
For 1: some people have succesfully triggered their smart meter. see this link
For 2: this external component should work for obis-based smart meters. It has a different parser then the true SML one which comes built in with ESPHome
no, gibberish was my test that esphome can read ir from the mirror, it could
anyway i read tasmota documentation VERY SLOWLY and managed to get it working with tasmota, so I think I can extract data into HA from the json somehow, dunno anything about energy dashboard yet. http://192.168.50.61/cm?cmnd=status%2010 will return all sensor data from tasmota as json
Thanks for the links, I will try it sometime.
ESPHome usually also complains, that my OBIS is not obis, as it really is just 61.8.0 and not 1-0:61.8.0 but might work with “D0” custom component still
My setup until i get some low profile USB powr source
but it is possible to work around by t1+t2 or l1+l2+l3 … for esphome i would need to write custom code, which, in the hindsight, would probably be fastest as it is nicely documented here Custom UART Text Sensor — ESPHome