I have used MQTT IO on a separate RPI connected to my HA running the Mosquitto broker addon. Works fine. Now I’m working on a new HA setup with all stuff integrated on the same RPI. So I have tried to install the MQTT IO addon on my RPI running HA on HASSOS. But when I try to start the MQTT IO addon I get an error, “RuntimeError: This module can only be run on a Raspberry Pi!”
My config includes the following GPIO configuration:
gpio_modules:
# Use the Raspberry Pi built-in GPIO
- name: rpi
module: raspberrypi
First I thought it was a protection issue, so I disabled the protection for the MQTT IO addon. But it doesn’t make any difference. Still the same problem.
Add-on: MQTT IO
Expose GPIO modules and digital sensors via MQTT for remote control and monitoring.
Add-on version: 0.4.0
You are running the latest version of this add-on.
System: Home Assistant OS 12.1 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2024.3.3
Home Assistant Supervisor: 2024.03.1
Maybe the addon is not added to my HA config? It is visible on the HA addon tab. However, the butt “Show addon on ‘My HA’” does not work. “Add on is not available” will show up. So where should the following lines be included?
configuration_file: /config/mqtt-io.yml
log_level: info
I wrote an issue on this in the MQTT IO github repo. This is a known problem triggered in HA OS 11.3 and later versions. RPI.GPIO module needs to be updated. Hopefully someone is working on this. Until fixed, stay away from MQTT IO addon. Or do not update HA OS…