Open Elderwolf1700 opened 7 months ago
thanks for posting your code! I used it for awhile with just my water meter. Eventually I figured out how to get my gas meter in too and I started using this add-on
I can't take credit for the code. I was just curious if a plugin was already available to do what is needed. Glad to see you found a solution and can't wait to get it working once my reader comes.
Since you have the same water meter, what model gas meter do you have? Found my water meter and my neighbors too but my gas doesn't appear at all. Mine is an older AC-250 with a GasLX module, which seems it might have a proprietary signal.
I have an AC-250 also, but it’s using an Itron 100G DLS, ERG-5006-001 module. Sent from my iPhoneOn Apr 22, 2024, at 3:29 AM, Elderwolf1700 @.***> wrote: Since you have the same water meter, what model gas meter do you have? Found my water meter and my neighbors too but my gas doesn't appear at all. Mine is an older AC-250 with a GasLX module, which seems it might have a proprietary signal.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
I am also using that Addon with both a water meter and my gas meter. I've set the frequency in the rtlamr
options and it seems to pickup both.
custom_parameters
rtlamr: "-unique=true -duration=3m -centerfreq=912000000"
meters
- id: xxxxxx
protocol: scm
name: gas_meter
format: "######"
unit_of_measurement: ft³
icon: mdi:meter-gas
device_class: gas
- id: xxxxxx
protocol: r900
name: water_meter
format: "#####.##"
unit_of_measurement: yd³
icon: mdi:cup-water
device_class: water
To get the conversion to gallons, I disabled ha_autodiscovery
and created a manual mqtt
sensor in my configuration.yaml
. You would have to add both of them if not already discovered.
configuration.yaml
mqtt:
sensor:
- name: Water Meter
icon: mdi:cup-water
unique_id: "<water-meter-id>"
state_topic: rtlamr/<water-meter-id>/state
force_update: true
value_template: "{{ ((value | float) * 201.974) | round }}"
unit_of_measurement: "gal"
device_class: water
state_class: total_increasing
json_attributes_topic: rtlamr/<water-meter-id>/attributes
- name: Gas Meter
icon: mdi:meter-gas
unique_id: "<gas-meter-id>"
state_topic: rtlamr/<gas-meter-id>/state
force_update: true
unit_of_measurement: "ft³"
device_class: gas
state_class: total_increasing
json_attributes_topic: rtlamr/<gas-meter-id>/attributes
This is all really helpfull, it works with my water meter. How did you get your gas meters ID with those parameters? I ran the command to go into listen mode but realized it dosent read the config file and I can't figure out how to have it use custom parameters.
@Elderwolf1700 you should be able to find it outside on your meter. Mine was under a barcode and was the biggest number. It started with a zero, but I omitted it.
I also first plugged in the dongle to my MacBook and ran rtlamr
locally to see what events I could find before hooking it up to my HA server.
It works fine for my water meter but still no gas. I will try being with my laptop and adapter next to the gas meter tomorrow. If that doesn't work then it might be what I guessed before of it being either encrypted data or only transmitted once a month when my gas company pulls the data (or I messed up somewhere).
So I did learn even tho the module on my gas meter is branded Intertek it was made by Landis+Gyr which gave me hope since some other devices from them are on the compatible list. From what it seems the module is most likely using a private network to report the data and even then that data is only pulled not so often as to save on battery power. So I guess I will go with another option.
I'm just going to put for future people, my meter is the last one (starting page 99) on this document.
I love that you figured this out to work with my same water meter. Before I go buying anything, I saw you wanted to make a plugin for HA and was wondering if this plugin would work? It looks to do the same with reading rtl-sdr.