Bonjour @Mips !
Après quelques recherches, et n’ayant pas trouvé de réponses fonctionnelles, je m’en remets à ce petit ticket concernant ma problématique.
J’ai installé hier le plugin « Gardena-Husqvarna » pour la première fois.
Voici le retour de l’installation des dépendances :
*****************************
Install modules using apt-get
*****************************
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.11.2-1+b1).
python3-requests is already the newest version (2.28.1+dfsg-1).
python3-pip is already the newest version (23.0.1+dfsg-1).
python3-setuptools is already the newest version (66.1.1-1).
python3-venv is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
*************************************
Creating python 3 virtual environment
*************************************
Done
*************************************
Install the required python libraries
*************************************
Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (23.2.1)
Requirement already satisfied: wheel in ./venv/lib/python3.11/site-packages (0.41.2)
Requirement already satisfied: requests>=2.20.0 in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (2.31.0)
Requirement already satisfied: oauthlib>=3.2.2 in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (3.2.2)
Requirement already satisfied: requests_oauthlib>=1.3.1 in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: websocket-client~=1.6 in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.6.2)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.11/site-packages (from requests>=2.20.0->-r requirements.txt (line 1)) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.11/site-packages (from requests>=2.20.0->-r requirements.txt (line 1)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.11/site-packages (from requests>=2.20.0->-r requirements.txt (line 1)) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.11/site-packages (from requests>=2.20.0->-r requirements.txt (line 1)) (2023.7.22)
***************************
* Install ended *
***************************
La configuration du plugin est réalisée conformément à la documentation (clé d’application & secret + API Gardena). Le port socket interne est laissé par défaut.
Au lancement du Daemon, plantage sous 2-3 secondes.
Les logs DEBUG sont les suivants :
INFO : Starting daemon
INFO : Log level: debug
DEBUG : Socket port: 55070
DEBUG : PID file: /tmp/jeedom/gardena/deamon.pid
DEBUG : Init request module v2.31.0
DEBUG : token content:
DEBUG : # access_token: *********...
DEBUG : # user_id: *********...
DEBUG : # expires_in: 86399
DEBUG : # expires_at: 1694174088.5484498
DEBUG : # token_type: Bearer
DEBUG : # provider: husqvarna
INFO : Authentication done
INFO : updating locations
DEBUG : opening websocket for location My Garden
ERROR : Exception while starting gardena websocket:Retry.__init__() got an unexpected keyword argument 'method_whitelist'
DEBUG : exception, restarting daemon...
DEBUG : Send to jeedom: {'daemon': 'start'}
DEBUG : ...and calling onFailure
INFO : Shuting down
DEBUG : Removing PID file /tmp/jeedom/gardena/deamon.pid
DEBUG : Exit 0
J’ai vérifié l’intégralité de mon système (machine physique), fait quelques mises à jour (notamment de modules python3).
Voici l’état des modules pip3 actuel :
android-backup==0.2.0
anyio==4.0.0
appdirs==1.4.4
attrs==23.1.0
blinker==1.6.2
bluepy==1.3.0
certifi==2023.7.22
cffi==1.15.1
chardet==5.2.0
charset-normalizer==3.2.0
click==8.1.7
colorama==0.4.6
construct==2.10.68
croniter==1.4.1
cryptography==41.0.3
cupshelpers==1.0
dbus-python==1.3.2
defusedxml==0.7.1
distro==1.8.0
dnspython==2.4.2
enum-compat==0.0.3
enum34==1.1.10
fail2ban==1.0.2
future==0.18.3
gpg==1.18.0
h11==0.14.0
h2==4.1.0
hpack==4.0.0
httpcore==0.17.3
httplib2==0.22.0
httpx==0.24.1
hyperframe==6.0.1
idna==3.4
ifaddr==0.2.0
iotop==0.6
lazr.restfulclient==0.14.5
lazr.uri==1.0.6
libevdev==0.11
Markdown==3.4.4
markdown-it-py==3.0.0
mdurl==0.1.2
micloud==0.6
netifaces==0.11.0
ntpsec==1.2.2
oauthlib==3.2.2
pycairo==1.20.1
pycparser==2.21
pycrypto==2.6.1
pycryptodome==3.18.0
pycups==2.0.1
pycurl==7.45.2
Pygments==2.16.1
PyGObject==3.42.2
pyinotify==0.9.6
PyJWT==2.8.0
pyOpenSSL==23.2.0
pyparsing==3.1.1
pyserial==3.5
PySimpleSOAP==1.16.2
pysmbc==1.0.23
python-apt==2.6.0
python-dateutil==2.8.2
python-debian==0.1.49
python-debianbts==4.0.1
python-miio==0.5.12
pytz==2023.3.post1
pyudev==0.24.1
PyYAML==6.0.1
reportbug==12.0.0
requests==2.31.0
requests-oauthlib==1.3.1
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.5.2
six==1.16.0
sniffio==1.3.0
systemd-python==235
tqdm==4.66.1
tzlocal==5.0.1
urllib3==2.0.4
wadllib==1.3.6
websocket-client==1.6.2
yeelight==0.7.13
zeroconf==0.99.0
Est-ce que le problème a déjà été abordé? Si oui, mes excuses, je ne l’ai pas trouvé (et je file RTFM).
Si non, une idée d’où ça peut provenir?
D’avance merci !