-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addon mqtt_io.__main__ [ERROR] MqttIo crashed! #141
Comments
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
The Problem stil exist
github-actions[bot] ***@***.***> schrieb am So., 15. Dez.
2024, 09:22:
… There hasn't been any activity on this issue recently, so we clean up some
of the older and inactive issues.
Please make sure to update to the latest version and check if that solves
the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further
activity occurs. Thanks!
—
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7GYIG2TQSKTY35O5LQAAT2FU33RAVCNFSM6AAAAABRYJ7K36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGU2TGOJVHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have the same problem. HAOS is installed on a RPI 4B and produces the same log. |
Problem/Motivation
These issues are closed but not resolved
RuntimeError: This module can only be run on a Raspberry Pi! #100
MQTT IO addon fails to start on RPI 4 with Home Assistant OS 12.1 #112
Expected behavior
Should run
Actual behavior
addon starts but fails and stop
mqtt_io.main [ERROR] MqttIo crashed!
[34m-----------------------------------------------------------[0m
[34m Add-on: MQTT IO[0m
[34m Expose GPIO modules and digital sensors via MQTT for remote control and monitoring.[0m
[34m-----------------------------------------------------------[0m
[34m Add-on version: 0.4.0[0m
[32m You are running the latest version of this add-on.[0m
[34m System: Home Assistant OS 13.2 (aarch64 / raspberrypi4-64)[0m
[34m Home Assistant Core: 2024.11.0[0m
[34m Home Assistant Supervisor: 2024.11.2[0m
[34m-----------------------------------------------------------[0m
[34m Please, share the above information when looking for help[0m
[34m or support in, e.g., GitHub, forums or the Discord chat.[0m
[34m-----------------------------------------------------------[0m
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service mqtt-io: starting
s6-rc: info: service mqtt-io successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[08:49:03] INFO: [32mStarting MQTT IO...[0m
2024-11-14 08:49:09 mqtt_io.main [ERROR] MqttIo crashed!
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 107, in main
mqtt_gpio.run()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 1269, in run
self._init_gpio_modules()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 244, in _init_gpio_modules
self.gpio_modules[gpio_config["name"]] = _init_module(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/init.py", line 106, in init
self.setup_module()
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/raspberrypi.py", line 25, in setup_module
import RPi.GPIO as gpio # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/RPi/GPIO/init.py", line 23, in
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 115, in
main()
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 107, in main
mqtt_gpio.run()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 1269, in run
self._init_gpio_modules()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 244, in _init_gpio_modules
self.gpio_modules[gpio_config["name"]] = _init_module(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/init.py", line 106, in init
self.setup_module()
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/raspberrypi.py", line 25, in setup_module
import RPi.GPIO as gpio # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/RPi/GPIO/init.py", line 23, in
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
[08:49:09] INFO: [32mService MQTT IO exited with code 1 (by signal 0)[0m
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service mqtt-io: stopping
s6-rc: info: service mqtt-io successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Steps to reproduce
my config for mqtt-io
mqtt:
host: ha-home
port: 1883
user: "usr-mqtt"
password: "mqtt-usr"
topic_prefix: mqtt-io/ha-home/gpio
ha_discovery:
enabled: yes
gpio_modules:
module: raspberrypi
digital_outputs:
module: rpi
pin: 26
My System
Core 2024.11.0
Supervisor 2024.11.2
Operating System 13.2
Frontend 20241106.0
on rpi4-64
Proposed changes
The text was updated successfully, but these errors were encountered: