I've been at this for 3 hours and still can't get it to resolve... tried so many edits to the config.ini but nothing works. I'm about to throw the computer at a wall....
Here is my log with the --debug flag
Please help
python3 /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py --debug
[2025-03-01 23:03:27] - (DBG): --------------------------------------------------------------------
[2025-03-01 23:03:27] - (DBG): Debug enabled
[2025-03-01 23:03:27] - (DBG): * init mqtt_client_connected=[False]
[2025-03-01 23:03:29] - (DBG): - RQST daemon_version_list=(['v1.8.5', 'v1.7.2', 'v1.7.3', 'v1.7.4', 'v1.8.3', 'v1.8.4'])
[2025-03-01 23:03:29] - (DBG): * daemon_last_fetch_time=(1740837809.131168)
[2025-03-01 23:03:29] - (DBG): fqdn_raw=[pihole-thorhax]
[2025-03-01 23:03:29] - (DBG): rpi_fqdn=[pihole-thorhax.home]
[2025-03-01 23:03:29] - (DBG): rpi_hostname=[pihole-thorhax]
[2025-03-01 23:03:29] - (DBG): rpi_model_raw=[Raspberry Pi 3 Model B Plus Rev 1.3]
[2025-03-01 23:03:29] - (DBG): rpi_model=[RPi 3 Model B+r1.3]
[2025-03-01 23:03:29] - (DBG): rpi_connections=[e,w,b]
[2025-03-01 23:03:29] - (DBG): getDvcCPUinfo() stdout=[b'processor\t: 0\nBogoMIPS\t: 38.40\nprocessor\t: 1\nBogoMIPS\t: 38.40\nprocessor\t: 2\nBogoMIPS\t: 38.40\nprocessor\t: 3\nBogoMIPS\t: 38.40\nSerial\t\t: 00000000f539ecd0\nModel\t\t: Raspberry Pi 3 Model B Plus Rev 1.3\n'], retCode=(0)
[2025-03-01 23:03:29] - (DBG): getDvcCPUinfo() stdout=[b'0.07 0.06 0.08 1/191 702986\n'], retCode=(0)
[2025-03-01 23:03:29] - (DBG): cpu_loads_raw=[['0.07', '0.06', '0.08', '1/191', '702986']]
[2025-03-01 23:03:29] - (DBG): rpi_cpu_tuple=[('', '', 4, 153.6, '00000000f539ecd0', 1.8, 1.5, 2.0)]
[2025-03-01 23:03:29] - (DBG): rpi_linux_release=[bookworm]
[2025-03-01 23:03:29] - (DBG): rpi_linux_version=[6.6.28+rpt-rpi-v8]
[2025-03-01 23:03:29] - (DBG): getFileSystemDrives() trimmedLines=[['udev 318 0 318 0% /dev', '/dev/mmcblk0p2 14383 3976 9658 30% /']]
[2025-03-01 23:03:29] - (DBG): lineParts(6)=[['udev', '318', '0', '318', '0%', '/dev']]
[2025-03-01 23:03:29] - (DBG): percent_field_index=[4]
[2025-03-01 23:03:29] - (DBG): device=[udev]
[2025-03-01 23:03:29] - (DBG): mount_point=[/dev]
[2025-03-01 23:03:29] - (DBG): newTuple=[('0', '0', '/dev', 'udev')]
[2025-03-01 23:03:29] - (DBG): lineParts(6)=[['/dev/mmcblk0p2', '14383', '3976', '9658', '30%', '/']]
[2025-03-01 23:03:29] - (DBG): percent_field_index=[4]
[2025-03-01 23:03:29] - (DBG): device=[/dev/mmcblk0p2]
[2025-03-01 23:03:29] - (DBG): mount_point=[/]
[2025-03-01 23:03:29] - (DBG): newTuple=[('16', '30', '/', '/dev/mmcblk0p2')]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem_space=[16GB]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem_percent=[30]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem=[[('0', '0', '/dev', 'udev'), ('16', '30', '/', '/dev/mmcblk0p2')]]
And here is my config.ini
Configuration file for RPi-Reporter-MQTT2HA-Daemon
Uncomment and adapt all settings as needed.
Some settings can be configured by environment variables.
If an env variable is set, it takes precedence over settings in this file
[Daemon]
Enable or Disable an endless execution loop (Default: true)
enabled = true
This script reports RPi values at a fixed interval in minutes [2-30], [Default: 5]
#interval_in_minutes = 5
This script checks for pending os updates at a fixed internal in hours [2-24], [Default: 4]
#check_updates_in_hours = 4
default domain to use when hostname -f doesn't return a proper fqdn
#fallback_domain = home
[Commands]
#shutdown = /usr/bin/sudo /sbin/shutdown -h now 'shutdown rqst via MQTT'
#reboot = /usr/bin/sudo /sbin/shutdown -r now 'reboot rqst via MQTT'
#restart_service = /usr/bin/sudo systemctl restart isp-rpi-reporter.service
[MQTT]
The hostname or IP address of the MQTT broker to connect to (Default: localhost)
Also read from the MQTT_HOSTNAME environment variable
hostname = localhost
The TCP port the MQTT broker is listening on (Default: 1883)
Also read from the MQTT_PORT environment variable
port = 1883
Maximum period in seconds between ping messages to the broker. (Default: 60)
#keepalive = 60
by default Home Assistant listens to the /homeassistant but it can be changed for a given installation
likewise, by default this script advertises on the same default topic. If you use a different
discovery prefix then specify yours here. [default: homeassistant]
#discovery_prefix = homeassistant
NOTE: The MQTT topic used for this device is constructed as:
{base_topic}/{sensor_name}
The MQTT base topic under which to publish the Raspberry Pi sensor data topics.
base_topic = home/nodes
The MQTT name for this Raspberry Pi as a sensor
#sensor_name = rpi-{hostname}
The MQTT broker authentification credentials (Default: no authentication)
Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
#username =
#password =
Enable TLS/SSL on the connection
#tls = false
Path to CA Certificate file to verify host
#tls_ca_cert =
Path to TLS client auth key file
#tls_keyfile =
Path to TLS client auth certificate file
#tls_certfile =
I've been at this for 3 hours and still can't get it to resolve... tried so many edits to the config.ini but nothing works. I'm about to throw the computer at a wall....
Here is my log with the --debug flag
Please help
python3 /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py --debug
[2025-03-01 23:03:27] - (DBG): --------------------------------------------------------------------
[2025-03-01 23:03:27] - (DBG): Debug enabled
[2025-03-01 23:03:27] - (DBG): * init mqtt_client_connected=[False]
[2025-03-01 23:03:29] - (DBG): - RQST daemon_version_list=(['v1.8.5', 'v1.7.2', 'v1.7.3', 'v1.7.4', 'v1.8.3', 'v1.8.4'])
[2025-03-01 23:03:29] - (DBG): * daemon_last_fetch_time=(1740837809.131168)
[2025-03-01 23:03:29] - (DBG): fqdn_raw=[pihole-thorhax]
[2025-03-01 23:03:29] - (DBG): rpi_fqdn=[pihole-thorhax.home]
[2025-03-01 23:03:29] - (DBG): rpi_hostname=[pihole-thorhax]
[2025-03-01 23:03:29] - (DBG): rpi_model_raw=[Raspberry Pi 3 Model B Plus Rev 1.3]
[2025-03-01 23:03:29] - (DBG): rpi_model=[RPi 3 Model B+r1.3]
[2025-03-01 23:03:29] - (DBG): rpi_connections=[e,w,b]
[2025-03-01 23:03:29] - (DBG): getDvcCPUinfo() stdout=[b'processor\t: 0\nBogoMIPS\t: 38.40\nprocessor\t: 1\nBogoMIPS\t: 38.40\nprocessor\t: 2\nBogoMIPS\t: 38.40\nprocessor\t: 3\nBogoMIPS\t: 38.40\nSerial\t\t: 00000000f539ecd0\nModel\t\t: Raspberry Pi 3 Model B Plus Rev 1.3\n'], retCode=(0)
[2025-03-01 23:03:29] - (DBG): getDvcCPUinfo() stdout=[b'0.07 0.06 0.08 1/191 702986\n'], retCode=(0)
[2025-03-01 23:03:29] - (DBG): cpu_loads_raw=[['0.07', '0.06', '0.08', '1/191', '702986']]
[2025-03-01 23:03:29] - (DBG): rpi_cpu_tuple=[('', '', 4, 153.6, '00000000f539ecd0', 1.8, 1.5, 2.0)]
[2025-03-01 23:03:29] - (DBG): rpi_linux_release=[bookworm]
[2025-03-01 23:03:29] - (DBG): rpi_linux_version=[6.6.28+rpt-rpi-v8]
[2025-03-01 23:03:29] - (DBG): getFileSystemDrives() trimmedLines=[['udev 318 0 318 0% /dev', '/dev/mmcblk0p2 14383 3976 9658 30% /']]
[2025-03-01 23:03:29] - (DBG): lineParts(6)=[['udev', '318', '0', '318', '0%', '/dev']]
[2025-03-01 23:03:29] - (DBG): percent_field_index=[4]
[2025-03-01 23:03:29] - (DBG): device=[udev]
[2025-03-01 23:03:29] - (DBG): mount_point=[/dev]
[2025-03-01 23:03:29] - (DBG): newTuple=[('0', '0', '/dev', 'udev')]
[2025-03-01 23:03:29] - (DBG): lineParts(6)=[['/dev/mmcblk0p2', '14383', '3976', '9658', '30%', '/']]
[2025-03-01 23:03:29] - (DBG): percent_field_index=[4]
[2025-03-01 23:03:29] - (DBG): device=[/dev/mmcblk0p2]
[2025-03-01 23:03:29] - (DBG): mount_point=[/]
[2025-03-01 23:03:29] - (DBG): newTuple=[('16', '30', '/', '/dev/mmcblk0p2')]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem_space=[16GB]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem_percent=[30]
[2025-03-01 23:03:29] - (DBG): rpi_filesystem=[[('0', '0', '/dev', 'udev'), ('16', '30', '/', '/dev/mmcblk0p2')]]
And here is my config.ini
Configuration file for RPi-Reporter-MQTT2HA-Daemon
Source: https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon
Uncomment and adapt all settings as needed.
Some settings can be configured by environment variables.
If an env variable is set, it takes precedence over settings in this file
[Daemon]
Enable or Disable an endless execution loop (Default: true)
enabled = true
This script reports RPi values at a fixed interval in minutes [2-30], [Default: 5]
#interval_in_minutes = 5
This script checks for pending os updates at a fixed internal in hours [2-24], [Default: 4]
#check_updates_in_hours = 4
default domain to use when hostname -f doesn't return a proper fqdn
#fallback_domain = home
[Commands]
#shutdown = /usr/bin/sudo /sbin/shutdown -h now 'shutdown rqst via MQTT'
#reboot = /usr/bin/sudo /sbin/shutdown -r now 'reboot rqst via MQTT'
#restart_service = /usr/bin/sudo systemctl restart isp-rpi-reporter.service
[MQTT]
The hostname or IP address of the MQTT broker to connect to (Default: localhost)
Also read from the MQTT_HOSTNAME environment variable
hostname = localhost
The TCP port the MQTT broker is listening on (Default: 1883)
Also read from the MQTT_PORT environment variable
port = 1883
Maximum period in seconds between ping messages to the broker. (Default: 60)
#keepalive = 60
by default Home Assistant listens to the /homeassistant but it can be changed for a given installation
likewise, by default this script advertises on the same default topic. If you use a different
discovery prefix then specify yours here. [default: homeassistant]
#discovery_prefix = homeassistant
NOTE: The MQTT topic used for this device is constructed as:
{base_topic}/{sensor_name}
The MQTT base topic under which to publish the Raspberry Pi sensor data topics.
base_topic = home/nodes
The MQTT name for this Raspberry Pi as a sensor
#sensor_name = rpi-{hostname}
The MQTT broker authentification credentials (Default: no authentication)
Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
#username =
#password =
Enable TLS/SSL on the connection
#tls = false
Path to CA Certificate file to verify host
#tls_ca_cert =
Path to TLS client auth key file
#tls_keyfile =
Path to TLS client auth certificate file
#tls_certfile =