I answer myself : wmbusmeters/wmbusmeters-ha-addon: To become the new public ha-addon repository for wmbusmeters. (github.com)
I created an extended script based on the original by Ben Johnson.
It adds the following capabilities:
- Mix and match all the message types supported by ‘rtlamr’ from multiple meters
- Specify MQTT_TOPIC_PREFIX
- Specify or use default field for reading or any given meter and message type
- Specify user-friendly name for the meter topic (in addition to the number)
- Specify multiplier on a per meter basis (and to set a default)
- Specify percentage and absolute deviations to identify and reject outliers
- Specify whether to publish unchanged (i.e., duplicate messages)
- Publish additional fields beyond just the core ‘consumption’ reading
- Specify whether to ‘retain’ messages by meter (and to set a default)
- Specify ‘rtlamr’ center frequency
- Set debug level for more debug details and granularity
The core script is titled amr2mqtt.py
All the user settings are set in settings.py
See:
Again thanks to Ben Johnson for the inspiration and the starting code!