Somfy Protect MQTT

Bonjour,

Mon problème concerne l’installation du module « SomfyProtect2MQTT » directement depuis la boutique des modules complémentaires.

Renseigner votre problème
Le module démarre, puis s’arrête avec le message d’erreur ci-dessous dans les logs.

Merci

 2024-07-09 14:53:05,510 [INFO] [root:92] Init MQTT
Traceback (most recent call last):
  File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/main.py", line 68, in <module>
    MQTT_CLIENT = init_mqtt(config=CONFIG, api=API)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/mqtt/__init__.py", line 96, in init_mqtt
    mqtt_client = MQTTClient(config=mqtt_config, api=api)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/mqtt/__init__.py", line 29, in __init__
    self.client.connect(config.get("host", "127.0.0.1"), config.get("port", 1883), 60)
  File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect
    return self.reconnect()
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/socket.py", line 827, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name does not resolve
[12:53:06] WARNING: Halt add-on

Ma configuration


[center] ## System Information

version core-2024.7.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1390
Downloaded Repositories 6
HACS Data ok
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.4
update_channel stable
supervisor_version supervisor-2024.06.2
agent_version 1.6.0
docker_version 26.1.4
disk_total 113.6 GB
disk_used 8.0 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi3-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.1), Zigbee2MQTT (1.38.0-1), SSH Tunnel (1.0.6), Terminal & SSH (9.14.0), go2rtc (1.9.4), Linky (1.4.0), RTSPtoWebRTC (1.0.1), File editor (5.8.0), FTP (5.0.2), Tailscale (0.20.0), SomfyProtect2MQTT (2024.3.0)
Dashboards
dashboards 2
resources 2
views 5
mode storage
Recorder
oldest_recorder_run 26 juin 2024 à 18:50
current_recorder_run 9 juillet 2024 à 14:27
estimated_db_size 36.88 MiB
database_engine sqlite
database_version 3.45.3
[/center]

même problème chez moi :frowning_face:
j’investigue mais je ne comprend pas d’ou viens le pb