Grüße euch,
ich bin ein Neuling in HO und würde gerne den MG4 in HO einbinden. Hierzu gibt es ja einige Möglichkeiten.
pasted-from-clipboard.png
bei genauerer Betrachtung stelle ich fest, dass es wohl die Python Version sein sollte. Also habe ich diese installiert.
Ich verwende die App bereits vollständig inkl. digitalem Schlüssel usw.
Wenn ich es richtig verstanden habe, dann braucht man nur
einzugeben und wenn man dann startet, dann sollte er irgendetwas tun. Schaue ich ins Protokoll erscheint es mir nicht so, als würde es funktionieren.
Code
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/src/app/./mqtt_gateway.py", line 506, in run
await self.publisher.connect()
File "/usr/src/app/publisher/mqtt_publisher.py", line 86, in connect
await self.client.connect(host=self.host, port=self.port, version=gmqtt.constants.MQTTv311, ssl=ssl_context)
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 225, in connect
self._connection = await self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 241, in _create_connection
connection = await MQTTConnection.create_connection(host, port, ssl, clean_session, keepalive, logger=self._logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/mqtt/connection.py", line 27, in create_connection
transport, protocol = await loop.create_connection(MQTTProtocol, host, port, ssl=ssl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1130, in create_connection
raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 1883, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 1883)
2024-09-04 17:12:10,433 [ ERROR ] Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<Client._resend_qos_messages() running at /usr/local/lib/python3.12/site-packages/gmqtt/client.py:176>> - asyncio
sys:1: RuntimeWarning: coroutine 'Client._resend_qos_messages' was never awaited
2024-09-04 17:25:39,662 [ INFO ] Logging in to SAIC API - __main__
2024-09-04 17:25:40,623 [ INFO ] Logged in as blablabla (PLATZHALTER) - __main__
2024-09-04 17:25:40,623 [ INFO ] Fetching vehicle list - __main__
2024-09-04 17:25:40,728 [ INFO ] Registering for ['ALARM_TYPE_VEHICLE_FAULT', 'ALARM_TYPE_GEOFENCE', 'ALARM_TYPE_VEHICLE_START'] messages. vin=LSPlatzhalter965 - __main__
2024-09-04 17:25:40,801 [ INFO ] Registered for ['ALARM_TYPE_VEHICLE_FAULT', 'ALARM_TYPE_GEOFENCE', 'ALARM_TYPE_VEHICLE_START'] messages. vin=LSPlatzhalter192965 - __main__
2024-09-04 17:25:40,831 [ INFO ] Adding job tentatively -- it will be properly scheduled when the scheduler starts - apscheduler.scheduler
Traceback (most recent call last):
File "/usr/src/app/./mqtt_gateway.py", line 941, in <module>
asyncio.run(mqtt_gateway.run(), debug=debug_log_enabled())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/src/app/./mqtt_gateway.py", line 506, in run
await self.publisher.connect()
File "/usr/src/app/publisher/mqtt_publisher.py", line 86, in connect
await self.client.connect(host=self.host, port=self.port, version=gmqtt.constants.MQTTv311, ssl=ssl_context)
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 225, in connect
self._connection = await self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 241, in _create_connection
connection = await MQTTConnection.create_connection(host, port, ssl, clean_session, keepalive, logger=self._logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/mqtt/connection.py", line 27, in create_connection
transport, protocol = await loop.create_connection(MQTTProtocol, host, port, ssl=ssl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1130, in create_connection
raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 1883, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 1883)
2024-09-04 17:25:40,851 [ ERROR ] Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<Client._resend_qos_messages() running at /usr/local/lib/python3.12/site-packages/gmqtt/client.py:176>> - asyncio
sys:1: RuntimeWarning: coroutine 'Client._resend_qos_messages' was never awaited
2024-09-05 16:33:27,122 [ INFO ] Logging in to SAIC API - __main__
2024-09-05 16:33:28,102 [ INFO ] Logged in as franc.below@gmail.com - __main__
2024-09-05 16:33:28,102 [ INFO ] Fetching vehicle list - __main__PLATZHALTERJWH4096PN192965 - __main__
2024-09-05 16:33:28,288 [ INFO ] Registered for ['ALARM_TYPE_VEHICLE_FAULT', 'ALARM_TYPE_GEOFENCE', 'ALARM_TYPE_VEHICLE_START'] messages. vin=LPLATZHALTERN192965 - __main__
2024-09-05 16:33:28,323 [ INFO ] Adding job tentatively -- it will be properly scheduled when the scheduler starts - apscheduler.scheduler
Traceback (most recent call last):
File "/usr/src/app/./mqtt_gateway.py", line 941, in <module>
asyncio.run(mqtt_gateway.run(), debug=debug_log_enabled())
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/src/app/./mqtt_gateway.py", line 506, in run
await self.publisher.connect()
File "/usr/src/app/publisher/mqtt_publisher.py", line 86, in connect
await self.client.connect(host=self.host, port=self.port, version=gmqtt.constants.MQTTv311, ssl=ssl_context)
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 225, in connect
self._connection = await self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/client.py", line 241, in _create_connection
connection = await MQTTConnection.create_connection(host, port, ssl, clean_session, keepalive, logger=self._logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gmqtt/mqtt/connection.py", line 27, in create_connection
transport, protocol = await loop.create_connection(MQTTProtocol, host, port, ssl=ssl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1130, in create_connection
raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 1883, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 1883)
2024-09-05 16:33:28,348 [ ERROR ] Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<Client._resend_qos_messages() running at /usr/local/lib/python3.12/site-packages/gmqtt/client.py:176>> - asyncio
sys:1: RuntimeWarning: coroutine 'Client._resend_qos_messages' was never awaited
Alles anzeigen
Irgendeine Ahnung, was noch alles fehlt?! Bin absolut noobish in HA.... sorry.
Danke!