mampfes / esphome_obis_d0

esphome external component to support meters with OBIS D0 interface
MIT License
43 stars 7 forks source link

value regx #3

Closed rojanet closed 1 year ago

rojanet commented 1 year ago

Hallo .

ich benutze ein ir lese kopf an ein esp32 lan modul.

Zähler ist ein logarex.

und habe ihren code benutz von ihnen.

bekomme auch daten rein. nur die volt werden übertragen.

watt un die restlichen daten bekomme ich nichts angezeigt. Köntten sie mir mal das value regx.

dort bekomme ich die richtigen werte bei den rest nicht. wie watt ampere.

können sie mir die value rex irgend wie mit teilen oder erklären wie die zusammen gesetzt werden.

gibt es auch ein update intervall jede 1sek.

Mfg

mampfes commented 1 year ago

I created a config file from a "Betriebsanleitung" for LK11/LK13: https://github.com/mampfes/esphome_obis_d0/blob/logarex/doc/logarex.md

Could you please check if all sensors are working properly?

rojanet commented 1 year ago

Thanks.

2 Sensoren Zeigen noch falsche werte an.

Sensor 1:

dann geht es.

[08:07:23][D][obis_d0:185]: OBIS info: 1-0:14.7.0*255 -> 49.9*Hz [08:07:23][W][obis_d0:017]: value regex doesn't match: 1-0:14.7.0*255 -> 49.9*Hz

Sensor 2:

[08:07:23][D][obis_d0:185]: OBIS info: 1-0:0.2.0*255 -> ver.03,432F,20170504 [08:07:23][W][obis_d0:017]: value regex doesn't match: 1-0:0.2.0*255 -> ver.03,432F,20170504

Ich habe ein LOgarex LK 13.

super danke .

mampfes commented 1 year ago

Great, thanks. I fixed the 2 sensors. Could you please try again? https://github.com/mampfes/esphome_obis_d0/blob/logarex/doc/logarex.md

rojanet commented 1 year ago

translate with Google translater:

Sorry 1 sensor is not working yet.

[08:04:11][D][obis_d0:185]: OBIS info: 1-0:0.2.0*255 -> ver.03,432F,20170504 [08:04:11][W][obis_d0:017]: value regex doesn't match: 1-0:0.2.0*255 -> ver.03,432F,20170504

otherwise all good.

The only thing left. Sometimes I get wrong values.

eg. at Voltage normal value 223.5 V > 600.8 V > 223.6 V which cannot be. Or e.g. 13,567.3567KWh > 206,678.6788KWh > 13,567.3590KWh.

The peaks disturb.

Values ​​are currently read out with Iobroker and in parallel with HomeAssistant. Because of Dashboard..

Otherwise great work.

German:

Sorry 1 Sensor geht noch nicht.

[08:04:11][D][obis_d0:185]: OBIS info: 1-0:0.2.0*255 -> ver.03,432F,20170504 [08:04:11][W][obis_d0:017]: value regex doesn't match: 1-0:0.2.0*255 -> ver.03,432F,20170504

sonst alles gut.

Das einzige was noch ist. Ab und zu bekomme ich falsche Werte.

Zb. bei Voltage normaler wert 223.5 V > 600,8 V > 223,6 V was nicht sein kann. Oder zb. 13.567,3567 Kwh > 206.678,6788 Kwh > 13.567,3590 Kwh.

Die peaks stören.

Werte werden im Moment mit Iobroker ausgelesen und parallel mit HomeAssistent. Wegen Dashboard..

Sonst super arbeit.

mfg Ossibayer

mampfes commented 1 year ago

Regarding the not working sensor: I didn't find the time yet to really try it out. I assume that the . has to be escaped, like this: value_regex: "[0-9a-fA-F\\.,]{20}". Alternatively you can just allow arbitrary characters value_regex: ".{20}" or completely remove the value_regex.

Regarding the errorneous values: The problem is that the OBIS D0 protocol doesn't contain any integrity information (except the parity bit) like CRC. Therefore you can't really check the received values. The mitigation I already added is the the value_regex. What you can do in addition (as you still get bad values):

  1. Try to improve the signal quality by checking the alignment of infrared transmitter (Smart Meter) and receiver (your IR Reader). The have to be eyeball to eyeball.
  2. Check if there is an extra IR transmitter LED on your IR reader which is on by default and therefore disturbs the signal. (My IR reader is doing so).
  3. In esphome, add a filter to the critical sensors, like quantile or median filter. See: https://esphome.io/components/sensor/index.html#filter-out