Skip to content

Please reject MAX int readings #27

Description

@ruibatista78

Having an issue with my reader that is posting MAX Int? readings for some reason.
Would be great if you could add an exclusion rule because I otherwise have to remove these outliers every other day.

Here is an example between 2 other real readings

POST body: 782792|1|EFCT|P1,2147483647.2147483647|-61

2026-07-21 16:30:20,665 [DEBUG] hub_server.py:65 - ================================================================================
2026-07-21 16:30:20,665 [DEBUG] hub_server.py:66 - >>> REQUEST: POST /h3
2026-07-21 16:30:20,665 [DEBUG] hub_server.py:67 - >>> Query params: {}
2026-07-21 16:30:20,665 [DEBUG] hub_server.py:68 - >>> Headers: {'Host': 'e2.ad.56.d88039.h3.sensornet.info', 'X-Real-IP': '192.168.1.156', 'X-Forwarded-For': '192.168.1.156', 'X-Forwarded-Proto': 'https', 'Connection': 'close', 'Content-Length': '31', 'X-Hash': 'c19b26d132deea85', 'X-TS': '6A5F908B', 'X-Uptime': '1121153', 'X-Version': '3.7.1', 'X-Mode': 'E1', 'X-Pair': 'P', 'Content-Type': 'application/eh-data'}
2026-07-21 16:30:20,665 [DEBUG] hub_server.py:69 - >>> Client: 172.16.12.3:42462
2026-07-21 16:30:20,665 [DEBUG] hub_server.py:183 - >>> POST body: 782792|1|EFCT|P1,12761.72|-61

2026-07-21 16:30:20,665 [DEBUG] hub_server.py:291 - Logging sensor: efergy_h3_782792, raw: 12761.72
2026-07-21 16:30:20,665 [DEBUG] database.py:234 - Inserted reading: efergy_h3_782792 (1), 12761.72
2026-07-21 16:30:20,666 [DEBUG] mqtt_manager.py:206 - Publishing power for efergy_h3_782792 with value 12761.72
2026-07-21 16:30:20,666 [DEBUG] mqtt_manager.py:113 - MQTT published to home/efergy/efergy_h3_782792/power: {"value": 12761.72}
2026-07-21 16:30:20,666 [DEBUG] hub_server.py:76 - <<< RESPONSE: 200 | Length: 7 | Content: 'success'
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:65 - ================================================================================
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:66 - >>> REQUEST: POST /h3
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:67 - >>> Query params: {}
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:68 - >>> Headers: {'Host': 'e2.ad.56.d88039.h3.sensornet.info', 'X-Real-IP': '192.168.1.156', 'X-Forwarded-For': '192.168.1.156', 'X-Forwarded-Proto': 'https', 'Connection': 'close', 'Content-Length': '44', 'X-Hash': '8f1addccfe807001', 'X-TS': '6A5F9095', 'X-Uptime': '1121163', 'X-Version': '3.7.1', 'X-Mode': 'E1', 'X-Pair': 'P', 'Content-Type': 'application/eh-data'}
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:69 - >>> Client: 172.16.12.3:35596
2026-07-21 16:30:30,666 [DEBUG] hub_server.py:183 - >>> POST body: 782792|1|EFCT|P1,2147483647.2147483647|-61

2026-07-21 16:30:30,666 [DEBUG] hub_server.py:291 - Logging sensor: efergy_h3_782792, raw: 2147483647.2147484
2026-07-21 16:30:30,666 [DEBUG] database.py:234 - Inserted reading: efergy_h3_782792 (1), 2147483647.2147484
2026-07-21 16:30:30,666 [DEBUG] mqtt_manager.py:206 - Publishing power for efergy_h3_782792 with value 2147483647.2147484
2026-07-21 16:30:30,667 [DEBUG] mqtt_manager.py:113 - MQTT published to home/efergy/efergy_h3_782792/power: {"value": 2147483647.2147484}
2026-07-21 16:30:30,667 [DEBUG] hub_server.py:76 - <<< RESPONSE: 200 | Length: 7 | Content: 'success'
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:65 - ================================================================================
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:66 - >>> REQUEST: POST /h3
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:67 - >>> Query params: {}
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:68 - >>> Headers: {'Host': 'e2.ad.56.d88039.h3.sensornet.info', 'X-Real-IP': '192.168.1.156', 'X-Forwarded-For': '192.168.1.156', 'X-Forwarded-Proto': 'https', 'Connection': 'close', 'Content-Length': '31', 'X-Hash': 'ba1b8639e6e4b6e8', 'X-TS': '6A5F90A9', 'X-Uptime': '1121183', 'X-Version': '3.7.1', 'X-Mode': 'E1', 'X-Pair': 'P', 'Content-Type': 'application/eh-data'}
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:69 - >>> Client: 172.16.12.3:42076
2026-07-21 16:30:50,671 [DEBUG] hub_server.py:183 - >>> POST body: 782792|1|EFCT|P1,12285.65|-61

2026-07-21 16:30:50,671 [DEBUG] hub_server.py:291 - Logging sensor: efergy_h3_782792, raw: 12285.65
2026-07-21 16:30:50,672 [DEBUG] database.py:234 - Inserted reading: efergy_h3_782792 (1), 12285.65
2026-07-21 16:30:50,672 [DEBUG] mqtt_manager.py:206 - Publishing power for efergy_h3_782792 with value 12285.65
2026-07-21 16:30:50,672 [DEBUG] mqtt_manager.py:113 - MQTT published to home/efergy/efergy_h3_782792/power: {"value": 12285.65}
2026-07-21 16:30:50,672 [DEBUG] hub_server.py:76 - <<< RESPONSE: 200 | Length: 7 | Content: 'success'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions