Bonjour,
Je n’arrive pas à faire fonctionner ce plugin avec mon poele Piazzetta.
Je précise que j’ai réussi avec le plugin Homebridge.
Voici le log :
[2022-06-07 09:54:27][INFO] : Lancement démon PoeleAgua : /usr/bin/python3 /var/www/html/plugins/PoeleAgua/resources/demond/PoeleAgua.py --loglevel debug --PoeleAgua_SERVICE https://piazzetta.agua-iot.com/ --PoeleAgua_CUSTOMER_CODE 458632 --PoeleAgua_LOGIN 'nlaplanche@gmail.com' --PoeleAgua_UUID 3f7fc057-ab11-4e63-96db-381f33bc80e8 --PoeleAgua_BRAND_ID 1 --PoeleAgua_PASSWD 'Mlx51359' --callback http://127.0.0.1:80/plugins/PoeleAgua/core/php/jeePoeleAgua.php --apikey cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8 --pid /tmp/jeedom/PoeleAgua/deamon.pid --socketport 55219
[2022-06-07 09:54:27][INFO] : [deamon] Start demond
[2022-06-07 09:54:27][INFO] : [deamon] Log level : debug
[2022-06-07 09:54:27][INFO] : [deamon] Socket port : 55219
[2022-06-07 09:54:27][INFO] : [deamon] PoeleAgua uuid : 3f7fc057-ab11-4e63-96db-381f33bc80e8
[2022-06-07 09:54:27][INFO] : [deamon] PoeleAgua Brand : 1
[2022-06-07 09:54:27][INFO] : [deamon] PoeleAgua customer code : 458632
[2022-06-07 09:54:27][INFO] : [deamon] PID file : /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 09:54:27][INFO] : [deamon] Apikey : cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8
[2022-06-07 09:54:27][INFO] : [deamon] creation pid file
[2022-06-07 09:54:27][DEBUG] : Writing PID 4145 to /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 09:54:27][DEBUG] : Init request module v2.27.1
[2022-06-07 09:54:27][INFO] : [deamon] creation pid file done
[2022-06-07 09:54:27][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-06-07 09:54:27][DEBUG] : reception callback
[2022-06-07 09:54:27][DEBUG] : http://127.0.0.1:80 "GET /plugins/PoeleAgua/core/php/jeePoeleAgua.php?apikey=cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8 HTTP/1.1" 200 0
[2022-06-07 09:54:27][INFO] : [deamon] creation socket
[2022-06-07 09:54:27][INFO] : [deamon] appel main
[2022-06-07 09:54:27][INFO] : [deamon] Start Main...
[2022-06-07 09:54:27][DEBUG] : Socket interface started
[2022-06-07 09:54:27][DEBUG] : LoopNetServer Thread started
[2022-06-07 09:54:27][DEBUG] : Listening on: [127.0.0.1:55219]
[2022-06-07 09:54:27][INFO] : [deamon] Read Socket Thread Launched
[2022-06-07 09:54:27][INFO] : [deamon] Recupere la loop
[2022-06-07 09:54:27][DEBUG] : Using selector: EpollSelector
[2022-06-07 09:54:27][INFO] : [deamon] Lance l api
[2022-06-07 09:54:27][DEBUG] : [agua-iot] Lancement init
[2022-06-07 09:54:27][DEBUG] : [agua-iot] Lancement _login
[2022-06-07 09:54:27][DEBUG] : [agua-iot] Register app id with Agua IOT
[2022-06-07 09:54:27][DEBUG] : [agua-iot] Correctly set headers for requests to Agua IOT
[2022-06-07 09:54:27][DEBUG] : Starting new HTTPS connection (1): piazzetta.agua-iot.com:443
[2022-06-07 09:54:28][DEBUG] : https://piazzetta.agua-iot.com:443 "POST /appSignup HTTP/1.1" 201 64
[2022-06-07 09:54:28][DEBUG] : [agua-iot] Authenticate with email and password to Agua IOT
[2022-06-07 09:54:28][DEBUG] : [agua-iot] Correctly set headers for requests to Agua IOT
[2022-06-07 09:54:28][DEBUG] : Starting new HTTPS connection (1): piazzetta.agua-iot.com:443
[2022-06-07 09:54:28][DEBUG] : https://piazzetta.agua-iot.com:443 "POST /userLogin HTTP/1.1" 404 62
[2022-06-07 09:54:28][DEBUG] : [agua-iot] Failed to login, please check credentials
[2022-06-07 09:54:28][ERROR] : [deamon] Fatal error : Failed to login, please check credentials
[2022-06-07 09:54:28][INFO] : [deamon] Shutdown
[2022-06-07 09:54:28][INFO] : [deamon] Removing PID file /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 09:54:28][DEBUG] : LoopNetServer Thread stopped
[2022-06-07 09:54:28][INFO] : [deamon] Exit 0
[deamon] Lancement du fichier deamon
[2022-06-07 09:54:57][ERROR] : Impossible de lancer le démon PoeleAgua, vérifiez le log PoeleAgua
[2022-06-07 09:55:07][DEBUG] : Deamon_info:nok
[2022-06-07 09:56:02][DEBUG] : Deamon_info:nok
Le user et le psw ont été vérifiés biensur
J’ai également testé avec l’URL de connexion « bis » indiquée sur la doc du plugin.
| MyPiazzetta (MySuperior?) | 458632 | https://piazzetta.agua-iot.com | https://piazzetta.iot.web2app.it/api/bridge/endpoint/ |
avec le résultat suivant :
[2022-06-07 10:05:20][INFO] : Lancement démon PoeleAgua : /usr/bin/python3 /var/www/html/plugins/PoeleAgua/resources/demond/PoeleAgua.py --loglevel debug --PoeleAgua_SERVICE https://piazzetta.iot.web2app.it/api/bridge/endpoint/ --PoeleAgua_CUSTOMER_CODE 458632 --PoeleAgua_LOGIN 'nlaplanche@gmail.com' --PoeleAgua_UUID 3f7fc057-ab11-4e63-96db-381f33bc80e8 --PoeleAgua_BRAND_ID 1 --PoeleAgua_PASSWD 'Mlx51359' --callback http://127.0.0.1:80/plugins/PoeleAgua/core/php/jeePoeleAgua.php --apikey cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8 --pid /tmp/jeedom/PoeleAgua/deamon.pid --socketport 55219
[2022-06-07 10:05:20][INFO] : [deamon] Start demond
[2022-06-07 10:05:20][INFO] : [deamon] Log level : debug
[2022-06-07 10:05:20][INFO] : [deamon] Socket port : 55219
[2022-06-07 10:05:20][INFO] : [deamon] PoeleAgua uuid : 3f7fc057-ab11-4e63-96db-381f33bc80e8
[2022-06-07 10:05:20][INFO] : [deamon] PoeleAgua Brand : 1
[2022-06-07 10:05:20][INFO] : [deamon] PoeleAgua customer code : 458632
[2022-06-07 10:05:20][INFO] : [deamon] PID file : /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 10:05:20][INFO] : [deamon] Apikey : cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8
[2022-06-07 10:05:20][INFO] : [deamon] creation pid file
[2022-06-07 10:05:20][DEBUG] : Writing PID 10112 to /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 10:05:20][DEBUG] : Init request module v2.27.1
[2022-06-07 10:05:20][INFO] : [deamon] creation pid file done
[2022-06-07 10:05:20][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2022-06-07 10:05:20][DEBUG] : reception callback
[2022-06-07 10:05:20][DEBUG] : http://127.0.0.1:80 "GET /plugins/PoeleAgua/core/php/jeePoeleAgua.php?apikey=cVQiBtlEceV2WAS03MxZTlgUZkSnRujqBJXyaORrw3XhmlaJe5sv4uEBviNhQpk8 HTTP/1.1" 200 0
[2022-06-07 10:05:20][INFO] : [deamon] creation socket
[2022-06-07 10:05:20][INFO] : [deamon] appel main
[2022-06-07 10:05:20][INFO] : [deamon] Start Main...
[2022-06-07 10:05:20][DEBUG] : Socket interface started
[2022-06-07 10:05:20][DEBUG] : LoopNetServer Thread started
[2022-06-07 10:05:20][DEBUG] : Listening on: [127.0.0.1:55219]
[2022-06-07 10:05:20][INFO] : [deamon] Read Socket Thread Launched
[2022-06-07 10:05:20][INFO] : [deamon] Recupere la loop
[2022-06-07 10:05:20][DEBUG] : Using selector: EpollSelector
[2022-06-07 10:05:20][INFO] : [deamon] Lance l api
[2022-06-07 10:05:20][DEBUG] : [agua-iot] Lancement init
[2022-06-07 10:05:20][DEBUG] : [agua-iot] Lancement _login
[2022-06-07 10:05:20][DEBUG] : [agua-iot] Register app id with Agua IOT
[2022-06-07 10:05:20][DEBUG] : [agua-iot] Correctly set headers for requests to Agua IOT
[2022-06-07 10:05:20][DEBUG] : Starting new HTTPS connection (1): piazzetta.iot.web2app.it:443
[2022-06-07 10:05:21][DEBUG] : https://piazzetta.iot.web2app.it:443 "POST /api/bridge/endpoint/appSignup HTTP/1.1" 404 None
[2022-06-07 10:05:21][DEBUG] : [agua-iot] Erreur : Failed to register app id
[2022-06-07 10:05:21][ERROR] : [deamon] Fatal error : Failed to register app id
[2022-06-07 10:05:21][INFO] : [deamon] Shutdown
[2022-06-07 10:05:21][INFO] : [deamon] Removing PID file /tmp/jeedom/PoeleAgua/deamon.pid
[2022-06-07 10:05:21][DEBUG] : LoopNetServer Thread stopped
[2022-06-07 10:05:21][INFO] : [deamon] Exit 0
[deamon] Lancement du fichier deamon
[2022-06-07 10:05:50][ERROR] : Impossible de lancer le démon PoeleAgua, vérifiez le log PoeleAgua
[2022-06-07 10:06:02][DEBUG] : Deamon_info:nok
Je fais donc appel à la communauté ainsi qu’à @lefilliatre car je ne suis à court d’idée.
Par avance merci