yukulehe / gazpar2mqtt

Python script to fetch GRDF's website data and publish data to a mqtt broker.
GNU General Public License v3.0
21 stars 9 forks source link

Pb Accès Broker (résolu) et accès portail GRDF (nouveau) #82

Open karba78 opened 2 weeks ago

karba78 commented 2 weeks ago

Hello mon addon Gazpar2MQTT ne se connect plus, sans avoir change de fichiers de config seulement effectue des mises a jour de HomeAssistant je me connecte parfaitement avec les memes paramètres depuis MQTT explorer j ai d autres addons (2 zigbee2mqtt) qui se connectent sans problème. rechecke toutes les configs. qq un d autre a eu le meme problème et en changeant le topic cela a résolu le pb, pas ici merci

sur la console du broker j ai 2024-11-09 20:53:14: mosquitto version 2.0.18 running 2024-11-09 20:53:14: New connection from ::1:43980 on port 1883. 2024-11-09 20:53:14: Client disconnected due to protocol error. estrangement dans les logs il ne voit pas. l adresse ip du client gazpar2mqtt: New connection from ::1:43980 on port 1883. contrairement aux autres New connection from 172.30.33.3:60828 on port 1883.

et sur la console de GazPar2MQTT j ai

2024-11-09 21:13:06,417 INFO ----------------------------------------------------------- 2024-11-09 21:13:06,418 INFO # Connexion to Mqtt broker # 2024-11-09 21:13:06,419 INFO ----------------------------------------------------------- 2024-11-09 21:13:06,419 INFO Connect to Mqtt broker... 2024-11-09 21:13:06,420 DEBUG Mqtt connect : activation of callbacks 2024-11-09 21:13:06,421 DEBUG Mqtt connect : connection to broker core-mosquitto :1883... 2024-11-09 21:13:06,424 ERROR Unable to connect to Mqtt broker. Please check that broker is running, or check broker configuration.

etrangement

karba78 commented 2 weeks ago

j ai fait un retour a la ligne après MQTT_HOST: core-mosquitto

hostname or ip adress of the MQTT broker.

au lieu de MQTT_HOST: core-mosquitto. # hostname or ip adress of the MQTT broker. et ca s est reconnecte maintenant problème d auth avec GRDF

karba78 commented 2 weeks ago

2024-11-09 21:45:10,309 INFO Connexion to GRDF, try 2/14... 2024-11-09 21:45:10,335 DEBUG Starting new HTTPS connection (1): monespace.grdf.fr:443 2024-11-09 21:45:10,408 DEBUG https://monespace.grdf.fr:443 "GET /client/particulier/accueil HTTP/1.1" 302 None 2024-11-09 21:45:10,425 DEBUG Starting new HTTPS connection (1): connexion.grdf.fr:443 2024-11-09 21:45:10,696 DEBUG https://connexion.grdf.fr:443 "GET /oauth2/aus5y2ta2uEHjCWIR417/v1/authorize?response_type=code&scope=openid+profile+email&client_id=0oa95ese18blzdg3p417&state=%2Fclient%2Fparticulier%2Faccueil&redirect_uri=https://monespace.grdf.fr/_codexch&nonce=Cwh91ja7uNpLE5V-9k3cXswGaom-Oq37OHuLKIUSzNk&by_pass_okta=1&capp=meg HTTP/1.1" 200 None 2024-11-09 21:45:10,713 DEBUG Cookies ok. 2024-11-09 21:45:10,715 DEBUG auth_nonce: 44bb4d264ad0312928ffe0b1f19fe22e 2024-11-09 21:45:10,715 DEBUG Logging ... 2024-11-09 21:45:10,716 DEBUG Logging payload : {'email': 'xxxxxxt@gmail.com', 'password': 'yyyyyy', 'capp': 'meg', 'goto': 'https://sofa-connexion.grdf.fr:443/openam/oauth2/externeGrdf/authorize'} 2024-11-09 21:45:10,726 DEBUG Starting new HTTPS connection (1): login.monespace.grdf.fr:443 2024-11-09 21:45:10,801 DEBUG https://login.monespace.grdf.fr:443 "POST /sofit-account-api/api/v1/auth HTTP/1.1" 302 None 2024-11-09 21:45:10,809 DEBUG Logging returned :

302 Found

302 Found


nginx/1.19.0