jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.63k stars 606 forks source link

nach Update auf 15.3.0: "Value" wird falsch angezeigt. #2540

Open AdmiralRaccoon opened 1 year ago

AdmiralRaccoon commented 1 year ago

The Problem

Hi, dieses Problem habe ich nach dem update auf 15.3.0: Die Ziffern werden korrekt gelesen (4037,3) aber der eigentliche Wert, der daraus erstellt wird passt nicht ganz (4037,2) Vor dem update hat er die "3" hinter dem Komma korrekt dargestellt, jetzt besteht natürlich der Fehler mit einem negativen Wert.

Ich kann das leider momentan nicht im Auge behalten, da ich derzeit kein Gas verbrauche. Irgendetwas was ich ausprobieren könnte?

Version

15.3.0

Logfile

[0d00h00m00s] 2023-07-28T10:56:19 <INF> [MAIN] =================================================
[0d00h00m00s] 2023-07-28T10:56:19 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2023-07-28T10:56:19 <INF> [MAIN] =================================================
[0d00h00m00s] 2023-07-28T10:56:19 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2023-07-28T10:56:19 <INF> [MAIN] Total heap: 4376891 byte
[0d00h00m04s] 2023-07-28T10:56:24 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2023-07-28T10:56:24 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2023-07-28T10:56:24 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2023-07-28T10:56:24 <INF> [SNTP] TimeServer: pool.ntp.org
[0d00h00m04s] 2023-07-28T10:56:24 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2023-07-28T12:56:24 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2023-07-28T12:56:24 <INF> [SNTP] Time is already set: 2023-07-28 12:56:24
[0d00h00m04s] 2023-07-28T12:56:24 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2023-07-28T12:56:24 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2023-07-28T12:56:24 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2023-07-28T12:56:24 <INF> [MAIN] Tag: 'v15.3.0', Release: v15.3.0 (Commit: 3fbff0a), Date/Time: 2023-07-22 09:42, Web UI: Release: v15.3.0 (Commit: 3fbff0a)
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WLANINI] SSID: home-wlan
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WLANINI] Hostname: esp32gasmeter
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WIFI] Automatic interface config --> Use DHCP service
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WIFI] Set hostname to: esp32gasmeter
[0d00h00m05s] 2023-07-28T12:56:25 <INF> [WIFI] Init successful
[0d00h00m10s] 2023-07-28T12:56:29 <INF> [WIFI] Connected to: home-wlan, RSSI: -68
[0d00h00m10s] 2023-07-28T12:56:30 <INF> [WIFI] Assigned IP: 192.168.1.249
[0d00h00m25s] 2023-07-28T12:56:45 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m25s] 2023-07-28T12:56:45 <INF> [MAIN] SD card info: Name: SU01G, Capacity: 968MB, Free: 946MB
[0d00h00m27s] 2023-07-28T12:56:47 <INF> [MAIN] Initialization completed successfully
[0d00h00m31s] 2023-07-28T12:56:51 <INF> [LOGFILE] Set log level to ERROR
[0d00h01m34s] 2023-07-28T12:57:53 <ERR> [POSTPROC] main: Raw: 04037.2, Value: , Status: Neg. Rate - Read: - Raw: 04037.2 - Pre: 4037.3

Expected Behavior

No response

Screenshots

image

Additional Context

No response

GunterAv commented 1 year ago

Hello,

the same on my System...

Gasmeter: Value 3935.674 <> 3935.675

Gas

Watermeter: Value 727.262 <> 727.263

Wasser

Additionally: After updating the data, the values are displayed in the HA for 3 minutes, after 3 minutes the devices are no longer available. (My Inverval are 15min. / Round) HA

Best regards Gunter

Slider0007 commented 1 year ago

Since 15.3.0 the first digit will be generally truncated which means e.g. 2.9 -> 2.

This was recently changed by @haverland due to #2465.

@haverland: Maybe you can have a look into that.

GunterAv commented 1 year ago

Hello,

please have a look at the screenshots.

With me not x.9 is recognized but with Watermeter 3.0 not 2 with the last digit. And with the Gasmeter 5.0 and not 4.

Best regards Gunter

Slider0007 commented 1 year ago

On Recognition Page output is additionally rounded, this means even an internal number with 2.95 will be 3.0 on WebUI, but 2 in terms of Algo processing.

GunterAv commented 1 year ago

Hallo,

Thanks for the additional info. IMO this is still a Bug.

Best Regads Gunter

haverland commented 1 year ago

Since 15.3.0 the first digit will be generally truncated which means e.g. 2.9 -> 2.

This was recently changed by @haverland due to #2465.

@haverland: Maybe you can have a look into that.

I will look into it.

haverland commented 1 year ago

On Recognition Page output is additionally rounded, this means even an internal number with 2.95 will be 3.0 on WebUI, but 2 in terms of Algo processing.

May be the cause. Quickfix would be to enable Extended Resolution in Configuration