Maintenant j’ai ça :
2022-08-20 16:16:16.271707 - INFO : - password : ** hidden **
2022-08-20 16:16:16.271727 - INFO : - port : 1883
2022-08-20 16:16:16.271777 - INFO : - prefix : enedis_gateway
2022-08-20 16:16:16.271798 - INFO : - qos : 0
2022-08-20 16:16:16.271848 - INFO : - retain : True
2022-08-20 16:16:16.271899 - INFO : - username : MQTT
2022-08-20 16:16:16.271929 - INFO : ####################################################################################
2022-08-20 16:16:16.271947 - INFO : Home Assistant
2022-08-20 16:16:16.272003 - INFO : - card_myenedis : False
2022-08-20 16:16:16.272025 - INFO : - discovery : False
2022-08-20 16:16:16.272043 - INFO : - discovery_prefix : homeassistant
2022-08-20 16:16:16.272061 - INFO : ####################################################################################
2022-08-20 16:16:16.272078 - INFO : Enedis Gateway
2022-08-20 16:16:16.272098 - INFO : - 50039742874572
2022-08-20 16:16:16.272118 - INFO : addresses : True
2022-08-20 16:16:16.272137 - INFO : consumption : True
2022-08-20 16:16:16.272154 - INFO : consumption_detail : True
2022-08-20 16:16:16.272185 - INFO : consumption_price_base : 0.174
2022-08-20 16:16:16.272205 - INFO : consumption_price_hc : 0
2022-08-20 16:16:16.272223 - INFO : consumption_price_hp : 0
2022-08-20 16:16:16.272243 - INFO : offpeak_hours : None
2022-08-20 16:16:16.272261 - INFO : plan : BASE
2022-08-20 16:16:16.272278 - INFO : production : False
2022-08-20 16:16:16.272296 - INFO : production_detail : False
2022-08-20 16:16:16.272314 - INFO : refresh_addresses : False
2022-08-20 16:16:16.272331 - INFO : refresh_contract : False
2022-08-20 16:16:16.272348 - INFO : token : ** hidden **
2022-08-20 16:16:16.272365 - INFO : ####################################################################################
2022-08-20 16:16:16.272381 - INFO : Check database/cache
2022-08-20 16:16:16.272542 - INFO : => Init SQLite Database
2022-08-20 16:16:23.057253 - INFO : ####################################################################################
2022-08-20 16:16:23.057366 - INFO : MQTT Connect
2022-08-20 16:16:23.059631 - INFO : => Connected to MQTT Broker!
2022-08-20 16:16:23.062047 - INFO : ####################################################################################
2022-08-20 16:16:23.062163 - INFO : # 50039742874572 #
2022-08-20 16:16:23.062600 - INFO : ####################################################################################
2022-08-20 16:16:23.062705 - INFO : Get contract :
2022-08-20 16:16:23.063470 - INFO : => Query API
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.9/http/client.py", line 1371, in getresponse
response.begin()
File "/usr/local/lib/python3.9/http/client.py", line 319, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.9/http/client.py", line 280, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 410, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 428, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 335, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='enedisgateway.tech', port=443): Read timed out. (read timeout=240)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/main.py", line 656, in <module>
run(pdl, pdl_config)
File "/app/main.py", line 257, in run
contract = cont.getContract(headers, client, cur, con, pdl, pdl_config)
File "/app/contract.py", line 38, in getContract
contract = queryApi(url, headers, data)
File "/app/contract.py", line 15, in queryApi
contract = f.apiRequest(cur, con, pdl, type="POST", url=f"{url}", headers=headers, data=json.dumps(data))
File "/app/function.py", line 145, in apiRequest
retour = requests.request(type, url=f"{url}", timeout=240, headers=headers, data=data).json()
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='enedisgateway.tech', port=443): Read timed out. (read timeout=240)
[16:20:23] FATAL: The app has crashed. Are you sure you entered the correct config options?
J’ai donc fait comme tu as dis mais rien ne change