#Can I get some help to get my Energy dashboard working?

1 messages · Page 1 of 1 (latest)

onyx sparrow
#

Long story short: I was using https://github.com/mdegat01/addon-amr2mqtt/ to retrieve data from my energy and water meters, but it became unmaintained, so I removed it from my Home Assistant (HA). I've switched to the rtlamr2mqtt add-on, but I'm not getting any readings and don't know what I might be missing. Can you suggest some ideas? Here is my configuration for the add-on.

general:
  sleep_for: 60
  verbosity: debug
  listen_only: false
  tickle_rtl_tcp: false
  device_id: single
  debug: true
mqtt:
  ha_autodiscovery: true
  ha_autodiscovery_topic: homeassistant
  base_topic: rtlamr
  tls_enabled: false
meters:
  - id: 79263328
    protocol: scm
    name: electricity_meter
    unit_of_measurement: kWh
    icon: mdi:meter-electric-outline
    device_class: energy
    state_class: total_increasing
  - id: 39276928
    protocol: r900
    name: water_meter
    unit_of_measurement: gal
    icon: mdi:meter-water
    device_class: water
    state_class: total_increasing
GitHub

HA Addon which runs rtlamr to read IDM power meter data and send to MQTT broker - mdegat01/addon-amr2mqtt

fast sable
#

Are you getting anything at all from the sensors?

onyx sparrow
# fast sable Are you getting anything at all from the sensors?

well this is all I see in the logs:

NameError: name 'external_rtl_tcp' is not defined
[2025-05-03 17:57:33] Using "/data/options.json" config file
[2025-05-03 17:57:33] Fetching default MQTT configuration from http://supervisor/services/mqtt
[2025-05-03 17:57:33] RTLAMR2MQTT Starting...
[2025-05-03 17:57:33] RTL SDR Device 0bda:2832 found on USB port 002:003 - Index: 0
[2025-05-03 17:57:33] No USB device specified in the config file, using the first found.
[2025-05-03 17:57:33] Configured MQTT sender:
[2025-05-03 17:57:33]  > hostname => core-mosquitto
[2025-05-03 17:57:33]  > port => 1883
[2025-05-03 17:57:33]  > username => addons
[2025-05-03 17:57:33]  > client_id => rtlamr2mqtt
[2025-05-03 17:57:33]  > base_topic => rtlamr
[2025-05-03 17:57:33]  > availability_topic => rtlamr/status
[2025-05-03 17:57:33]  > tls => None
[2025-05-03 17:57:33] Resetting USB device: /dev/bus/usb/002/003
[2025-05-03 17:57:34] Reset sucessful.
#
[2025-05-03 17:57:34] Sending message to MQTT:
[2025-05-03 17:57:34]  > topic => rtlamr/status
[2025-05-03 17:57:34]  > payload => online
[2025-05-03 17:57:34]  > retain => True
[2025-05-03 17:57:34] Trying to start RTL_TCP: /usr/bin/rtl_tcp  -s 2048000
[2025-05-03 17:57:34] RTL_TCP started with PID 10
[2025-05-03 17:57:39] RTL_TCP is ready to receive connections!
[2025-05-03 17:57:39] Trying to start RTLAMR: /usr/bin/rtlamr -msgtype=scm,r900 -format=json -filterid=79263328,39276928 -unique=true
[2025-05-03 17:57:39] RTLAMR started with PID 15
[2025-05-03 17:57:39] 17:57:39.241014 decode.go:45: CenterFreq: 912380000
[2025-05-03 17:57:39] 17:57:39.241213 decode.go:46: SampleRate: 2359296
[2025-05-03 17:57:39] 17:57:39.241224 decode.go:47: DataRate: 32768
[2025-05-03 17:57:39] 17:57:39.241229 decode.go:48: ChipLength: 72
[2025-05-03 17:57:39] 17:57:39.241234 decode.go:49: PreambleSymbols: 32
[2025-05-03 17:57:39] 17:57:39.241238 decode.go:50: PreambleLength: 4608
[2025-05-03 17:57:39] 17:57:39.241243 decode.go:51: PacketSymbols: 116
[2025-05-03 17:57:39] 17:57:39.241248 decode.go:52: PacketLength: 16704
[2025-05-03 17:57:39] 17:57:39.241255 decode.go:59: Protocols: scm,r900
[2025-05-03 17:57:39] 17:57:39.241261 decode.go:60: Preambles: 111110010101001100000,00000000000000001110010101100100
[2025-05-03 17:57:39] 17:57:39.241277 main.go:125: GainCount: 29
#

but I am not seeing any messages being sent over the MQTT server

fast sable
#

just doesn't seem like it's picking up anything

#

Here's mine


[2025-04-27 16:13:38] RTL_TCP is ready to receive connections!
[2025-04-27 16:13:38] Trying to start RTLAMR: /usr/bin/rtlamr -msgtype=scm,scm,r900 -format=json -filterid=39056413,29806654,1831885251 -centerfreq 912000000
[2025-04-27 16:13:38] RTLAMR started with PID 8609
[2025-04-27 16:13:38] 16:13:38.985511 decode.go:45: CenterFreq: 912000000
[2025-04-27 16:13:38] 16:13:38.987088 decode.go:46: SampleRate: 2359296
[2025-04-27 16:13:38] 16:13:38.987192 decode.go:47: DataRate: 32768
[2025-04-27 16:13:38] 16:13:38.987267 decode.go:48: ChipLength: 72
[2025-04-27 16:13:38] 16:13:38.987342 decode.go:49: PreambleSymbols: 32
[2025-04-27 16:13:38] 16:13:38.987420 decode.go:50: PreambleLength: 4608
[2025-04-27 16:13:38] 16:13:38.987496 decode.go:51: PacketSymbols: 116
[2025-04-27 16:13:38] 16:13:38.987575 decode.go:52: PacketLength: 16704
[2025-04-27 16:13:38] 16:13:38.987684 decode.go:59: Protocols: scm,r900
[2025-04-27 16:13:38] 16:13:38.987801 decode.go:60: Preambles: 00000000000000001110010101100100,111110010101001100000
[2025-04-27 16:13:38] 16:13:38.988065 main.go:124: GainCount: 5
[2025-04-27 16:14:22] {"Time":"2025-04-27T16:14:22.840316095Z","Offset":0,"Length":0,"Type":"SCM","Message":{"ID":29806654,"Type":7,"TamperPhy":2,"TamperEnc":1,"Consumption":5359565,"ChecksumVal":5855}}
[2025-04-27 16:14:22] Meter "29806654" - Consumption 5359565. Sending value to MQTT.
[2025-04-27 16:14:22] Sending message to MQTT:
[2025-04-27 16:14:22]  > topic => rtlamr/29806654/attributes
[2025-04-27 16:14:22]  > payload => {"Message Type": "SCM", "ID": 29806654, "Type": 7, "TamperPhy": 2, "TamperEnc": 1, "Consumption": 5359565, "ChecksumVal": 5855}
[2025-04-27 16:14:22]  > retain => True
[2025-04-27 16:14:22] Sending message to MQTT:
[2025-04-27 16:14:22]  > topic => rtlamr/29806654/state
[2025-04-27 16:14:22]  > payload => 5359565
[2025-04-27 16:14:22]  > retain => True
onyx sparrow
fast sable
#

can't really say

#

can you just run rtlamr locally and see if you can get it to pick up any readings?

#

Are you using the same centerfreq as you had w/ amr2mqtt?

onyx sparrow
onyx sparrow
fast sable
#

Not really sure what to say. Mine was quite fiddly as well and it took a lot of trial and error to get it right.