Non numeric vaules send to Home Assistant even though main.CheckDigitIncreaseConsistency is set
The Problem
I think since v16.0.0 non numeric vaules are send to my home assistant instance. I did not observer this with earlier versions. The included log is from home assistant.
Version
v16.0.0
Logfile
2025-12-22 14:33:49.641 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04931.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04931.N' (<class 'str'>)
2025-12-23 11:44:34.777 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'2N4.6256': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '2N4.6256' (<class 'str'>)
2025-12-24 07:33:41.376 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04943.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04943.N' (<class 'str'>)
2025-12-25 06:23:36.844 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04950.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04950.N' (<class 'str'>)
2025-12-25 20:38:33.973 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04956.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04956.N' (<class 'str'>)
2025-12-26 22:14:22.910 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'23N.2231': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '23N.2231' (<class 'str'>)
2025-12-27 07:33:27.025 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04966.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04966.N' (<class 'str'>)
2025-12-28 19:34:17.402 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'2N5.9400': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '2N5.9400' (<class 'str'>)
2025-12-28 21:34:16.493 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'54N.5456': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '54N.5456' (<class 'str'>)
2025-12-30 00:28:13.836 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04987.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04987.N' (<class 'str'>)
2025-12-30 13:08:11.437 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'04991.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '04991.N' (<class 'str'>)
2025-12-30 17:49:10.599 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'47N.9085': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '47N.9085' (<class 'str'>)
2026-01-01 15:44:04.255 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'47N.8152': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '47N.8152' (<class 'str'>)
2026-01-01 21:52:59.782 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'05011.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '05011.N' (<class 'str'>)
2026-01-02 03:22:58.743 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'05012.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '05012.N' (<class 'str'>)
2026-01-03 05:07:53.563 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.gasmeter_raw, topic: 'gasmeter/main/raw' with payload: b'05021.N': Sensor sensor.gasmeter_raw has device class 'gas', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '05021.N' (<class 'str'>)
2026-01-03 05:18:59.040 ERROR (MainThread) [homeassistant.components.mqtt.models] Value error while updating state of sensor.watermeter_raw, topic: 'watermeter/main/raw' with payload: b'48N.1143': Sensor sensor.watermeter_raw has device class 'water', state class 'total_increasing' unit 'm³' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '48N.1143' (<class 'str'>)Expected Behavior
Values, that include 'N' are dismissed and no longer processed, threfore I set this in my post processing (but it did not help): Gasmeter: [PostProcessing] main.DecimalShift = -1 ;main.AnalogToDigitTransitionStart = ;main.ChangeRateThreshold = PreValueUse = true PreValueAgeStartup = 720 main.AllowNegativeRates = false main.MaxRateValue = 0.5 ;main.MaxRateType = AbsoluteChange main.ExtendedResolution = false main.IgnoreLeadingNaN = true ErrorMessage = true main.CheckDigitIncreaseConsistency = true
Watermeter: [PostProcessing] main.DecimalShift = 0 ;main.AnalogToDigitTransitionStart = ;main.ChangeRateThreshold = PreValueUse = true PreValueAgeStartup = 720 main.AllowNegativeRates = false main.MaxRateValue = 0.2 ;main.MaxRateType = AbsoluteChange main.ExtendedResolution = false main.IgnoreLeadingNaN = true ErrorMessage = true main.CheckDigitIncreaseConsistency = true
Screenshots
No response
Additional Context
No response
Source: jomjol/AI-on-the-edge-device