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

Unable to see r900 signals #30

Open robertscheib opened 1 year ago

robertscheib commented 1 year ago

Describe the bug SDR Meter Reader doesn't appear to be locating my r900 water meter, but rtlamr2mqtt is able to see and ingest the data just fine. I have the following config:

debug: false
rtltcpdebug: false
msgType: all
ids: "########"
duration: 600
pause_time: 30
gas_unit_of_measurement: ft³
electric_unit_of_measurement: kWh
water_unit_of_measurement: gal
gas_multiplier: 1
electric_multiplier: 1
water_multiplier: 1

I'm able to start the addone and I get the following in the log (meter ID removed):

Starting RTLAMR with parameters:
AMR Message Type = r900
AMR Device IDs = ########
Time Between Readings = 30
Duration =  120
Electric Unit of measurement =  kWh
Gas Unit of measurement =  ft³
Water Unit of measurement =  gal
Gas Multiplier =  1
Electric Multiplier =  1
Water Multiplier =  1
Debug is  false
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 1090
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Tuned to 100000000 Hz.
Allocating 15 zero-copy buffers
16:08:22.560895 decode.go:45: CenterFreq: 912380000
16:08:22.564007 decode.go:46: SampleRate: 2359296
16:08:22.564147 decode.go:47: DataRate: 32768
16:08:22.564177 decode.go:48: ChipLength: 72
16:08:22.564208 decode.go:49: PreambleSymbols: 32
16:08:22.564237 decode.go:50: PreambleLength: 4608
16:08:22.564265 decode.go:51: PacketSymbols: 116
16:08:22.564294 decode.go:52: PacketLength: 16704
16:08:22.564331 decode.go:59: Protocols: r900
16:08:22.564363 decode.go:60: Preambles: 00000000000000001110010101100100
16:08:22.564474 main.go:124: GainCount: 29
200
16:10:22.602296 main.go:341: Time Limit Reached: 2m0.013775526s
Signal caught, exiting!

For comparsion, here is my rtlamr2mqtt config (meter ID removed)

general:
  sleep_for: 300
  verbosity: debug
  listen_only: false
  tickle_rtl_tcp: false
  device_id: single
mqtt:
  ha_autodiscovery: true
  ha_autodiscovery_topic: homeassistant
  base_topic: rtlamr
  tls_enabled: false
  host: 192.168.86.10
  port: 1883
  user: mqttclient
  password: fORyBoUstoSO
custom_parameters:
  rtltcp: "-s 2048000"
  rtlamr: "-unique=true"
meters:
  - id: ########
    protocol: r900
    name: water_meter
    format: "######.#"
    unit_of_measurement: Gal
    icon: mdi:water

Expected behavior I'm expecting for the add on to see my water meter and report consumption