cpyarger / Home-Assistant-Addons

A hass.io addon for a software defined radio tuned to listen for Utility Meter RF transmissions and republish the data via Home Assistant's API
MIT License
9 stars 4 forks source link

Add ability to format consumption values as decimals #15

Closed cbird527 closed 2 years ago

cbird527 commented 2 years ago

My water meter reports values in tenths of gallons. Is it possible to make the value shown in this output show as 253999.8 gal?

{
    "Time": "2022-06-20T11:16:41.373827852-04:00",
    "Offset": 0,
    "Length": 0,
    "Type": "R900",
    "Message": {
        "ID": 123456789,
        "Unkn1": 163,
        "NoUse": 1,
        "BackFlow": 0,
        "Consumption": 2539998,
        "Unkn3": 0,
        "Leak": 3,
        "LeakNow": 0
    }
}
pasyn commented 2 years ago

Should be doable although I may not have time to submit a PR until this weekend. Many water meters report the same way. What is the make and model of your meter?

cbird527 commented 2 years ago

The meter is a Neptune E-coder R900i DL, Part No. RD2G11

pasyn commented 2 years ago

@cbird527 update to the latest version and enable the water_use_tenths toggle.

cbird527 commented 2 years ago

Thanks for the update, works great!