Bonjour à tous!
Je viens de migrer d’un KIT de connectivité SOMFY a une CONNEXOON afin de pouvoir piloter ma solution en local.
J’ai activer le mode developpeur sur mon compte Somfy, et j’ai bien la confirmation que le mode developpeur est activé. Ca c’est OK
J’ai par la suite installer le plugin-tahomalocalapi.
J’ai enregisté mes information comme suit:
Impossible de lancer le DEMON
Pouvez vous me venir en aide svp ?
Voici les logs:
[2024-01-12 11:05:05]DEBUG : Shutdown
[2024-01-12 11:05:05]DEBUG : Removing PID file /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
[2024-01-12 11:05:06]INFO : LoopNetServer Thread stopped
[2024-01-12 11:05:06]DEBUG : Exit 0
[2024-01-12 11:06:05]INFO : *-------------------------------------------------------------------------*
[2024-01-12 11:06:05]INFO : Start demond
[2024-01-12 11:06:05]INFO : Log level: debug
[2024-01-12 11:06:05]INFO : Socket port: 55009
[2024-01-12 11:06:05]INFO : Socket host: localhost
[2024-01-12 11:06:05]INFO : PID file: /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
[2024-01-12 11:06:05]INFO : Device: auto
[2024-01-12 11:06:05]INFO : User: xxxxxxxxx@gmail.com
[2024-01-12 11:06:05]INFO : Pin ocde: xxxx-xxxx-xxxx
[2024-01-12 11:06:05]INFO : Box IP: https://192.168.1.88:8443
[2024-01-12 11:06:05]INFO : Tahoma token: 65a118270989975c4f83
[2024-01-12 11:06:05]INFO : *-------------------------------------------------------------------------*
[2024-01-12 11:06:05]INFO : Writing PID 32299 to /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
[2024-01-12 11:06:05]INFO : Init request module v2.31.0
[2024-01-12 11:06:05]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
[2024-01-12 11:06:05]DEBUG : http://127.0.0.1:80 "GET /plugins/tahomalocalapi/core/php/jeeTahomalocalapi.php?apikey=MwI7Xereg0VZ8xNeeggx1JWCfYAT9uIH68daCKHqDl0tZ2Vbh5gVuXYx4Llbg7im HTTP/1.1" 200 0
[2024-01-12 11:06:05]DEBUG : Listen socket jeedom
[2024-01-12 11:06:05]INFO : Socket interface started
[2024-01-12 11:06:05]INFO : LoopNetServer Thread started
[2024-01-12 11:06:05]INFO : Listening on: [localhost:55009]
[2024-01-12 11:06:05]DEBUG : * Retrieve gateways list
[2024-01-12 11:06:05]ERROR : Fatal error: HTTPSConnectionPool(host='192.168.1.88', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))
[2024-01-12 11:06:05]INFO : Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 207, in _new_conn
socket_options=self.socket_options,
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 803, in urlopen
**response_kw,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 492, in _make_request
raise new_e
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 468, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 1097, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 611, in connect
self.sock = sock = self._new_conn()
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 220, in _new_conn
) from e
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 497, in send
chunked=chunked,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 846, in urlopen
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.1.88', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 668, in
listen()
File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 78, in listen
getGateways()
File "/var/www/html/plugins/tahomalocalapi/resources/tahomalocalapid/tahomalocalapid.py", line 274, in getGateways
response = requests.request("GET", url, verify=False, headers=headers)
File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.1.88', port=8443): Max retries exceeded with url: /enduser-mobile-web/1/enduserAPI/setup/gateways (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))
[2024-01-12 11:06:05]DEBUG : Shutdown
[2024-01-12 11:06:05]DEBUG : Removing PID file /tmp/jeedom/tahomalocalapi/tahomalocalapid.pid
[2024-01-12 11:06:06]INFO : LoopNetServer Thread stopped
[2024-01-12 11:06:06]DEBUG : Exit 0