Problem with MQTT IO addon on RPI 4

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

I don’t see these options

Example add-on configuration:

configuration_file: /config/mqtt-io.yml
log_level: info

Do you mean the config.yml file? The complete content is like this and it is stored in the following location (default config):

/config/mqtt-io/config.yml

mqtt:
  host: localhost
  status_payload_running: available
  status_payload_stopped: unavailable
  status_payload_dead: unavailable
  topic_prefix: torngardsbio
  user: "*****"
  password: "****"
  ha_discovery:
    enabled: yes

gpio_modules:
  - name: rpi
    module: raspberrypi

digital_inputs:
  - name: East_50
    module: rpi
    pin: 18
    pullup: yes
    on_payload: "ON"
    off_payload: "OFF"
    ha_discovery:
      name: East_50

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…