Bonjour à tous,
je galère depuis des jours avec ce script pour grdf (pas veolia) et je ne comprend vraiment pas pourquoi ça ne marche pas :
mon installation :
RPI3 avec home assistant OS
appdaemon installé et configuré avec toutes les options
HACS installé, et meterstoha à jour
j’ai un compte 2captcha avec des sous dessus !
quand je lance l’event call_grdf
le log se rempli bien et il bloque à Click on connexion :
2023-06-21 09:22:59,936 : OK :
2023-06-21 09:23:44,927 : OK : Waiting for cookie popup
2023-06-21 09:24:00,378 : OK : Click on deny
2023-06-21 09:24:14,070 : OK : Connexion au site GRDF
2023-06-21 09:24:17,285 : OK : Waiting for Password
2023-06-21 09:24:25,660 : OK : Waiting for Email
2023-06-21 09:25:01,717 : OK : Type Email
2023-06-21 09:25:02,867 : OK : Type Password
2023-06-21 09:25:05,880 : ~~ : Proceed with captcha resolution 2Captcha Service response OK|73880302268
2023-06-21 09:25:05,881 : ~~ : Sleeping for 10 seconds to wait for 2Captcha
2023-06-21 09:25:16,536 : ~~ : 2Captcha Service response CAPCHA_NOT_READY
2023-06-21 09:25:16,542 : ~~ : Sleeping for 10 seconds to wait for 2Captcha
2023-06-21 09:25:26,880 : ~~ : 2Captcha Service response CAPCHA_NOT_READY
2023-06-21 09:25:26,887 : ~~ : Sleeping for 10 seconds to wait for 2Captcha
2023-06-21 09:25:37,239 : ~~ : 2Captcha Service response CAPCHA_NOT_READY
2023-06-21 09:25:37,240 : ~~ : Sleeping for 10 seconds to wait for 2Captcha
2023-06-21 09:25:47,628 : ~~ : 2Captcha Service response CAPCHA_NOT_READY
2023-06-21 09:25:47,629 : ~~ : Sleeping for 10 seconds to wait for 2Captcha
2023-06-21 09:25:58,017 : ~~ : 2Captcha Service response OK|03AL8dmw-c_hR8AO8GHZR8jjSJX7He2sKYd034_ZgpblOHAVGxFU50HiGsFhQoTHUZVHRXuI1e2qLZZrqZ4g-FrJy35AEHr3ioG1dyYMJzXHILl2YpPitdQnEDWDDB89mqEa70kSbJX48wzVKf4-pVYaLFd66EXt-oFR9JtxiMQgN6TqUxAP9SGbW5qUeJqSIT73Q7bbYsvda4oEoleAFXcA62T7eeDk-PmqrjuTIveIlNNzyBWIPpZ7EI8CSfrmN8insC2dLoWD1cz4UGsdfbKDqgYd_2KJH1sstI1Ow6sC7J5muEaX85-KdafWnlWhsXYDtDRgiz2Dx1oaKcQ3tul5VuY0UOxygkv_xYiCHralJmYTrTvy_RJ4sT1dVEN8vR--68xTc1OwVf6nrm8iqo-rlDUrWDimxUiaZoDcpxQc9BY7Yu7-5OwHKbr4Ei3rBli1nnKuoYA0Mwr_v7LzjXF8BX2ywB7UJKlYoa9-ZT66gqVShzqEnmvmmeik83-GqPW4bBZ0E4pQc-7BahOEYN25eM7GyF1FCivr3SBdN4MR7iyB81XQ81JAEZlBxSzgLxSaGYOXNGDVU-T0-e5vF0NS0xuXqO7d31XN9sg9NO5PLnI9GssK-TP0Jm3pD-brGthzkPTiarWCVP
2023-06-21 09:26:03,982 : OK : Automatic resultution succeededWait for Button xpath://input[@value='Connexion']
2023-06-21 09:26:03,984 : ~~ : Wait before clicking (1.9s)
2023-06-21 09:26:09,483 : OK : Click on connexion ```
le log appdaemon indique :
2023-06-21 09:26:58.210013 WARNING AppDaemon: Excessive time spent in callback ‹ call_meters_to_ha() in grdf ›, Thread ‹ thread.thread-0 › - now complete after 304.16498 seconds (limit=10)```
voici mon config.json
{
"grdf_login": "elmattt@xxxxxxx",
"grdf_password": "xxxxxxxx",
"grdf_pce": "xxxxxxxxx",
"ha_server": "http://192.168.0.50:8123",
"ha_token": "xxxxxxxxx",
"2captcha_token": "xxxxxxxxx",
"type": "ha",
"timeout": "60"
}```
mon apps.yaml
grdf:
module: meters_to_ha_appdaemon
class: MetersToHA
event_name: call_grdf
config_file: /config/gaz/config.json```
une autre erreur que je rencontre apres avoir eu la premiere erreur est la suivant :
2023-06-21 09:32:22,198 : OK : End loading Home Assistant configuration
2023-06-21 09:32:22,199 : ~~ : Check availability of "geckodriver"+"firefox" or "chromedriver"+"chromium"
2023-06-21 09:32:22,200 : OK : Found chromium binary
2023-06-21 09:32:22,269 : OK : Check Home Assistant connectivity
2023-06-21 09:32:31,421 : OK : Try starting ChromiumStart virtual display (chromium)
2023-06-21 09:33:36,389 : EE : Start the browser Message: unknown error: DevToolsActivePort file doesn't exist```
si quelqu'un à une idée ca m'intéresse ^^
d'avance merci !