Installation dépendance KLF200

A prioris déja présent sur ma box :

root@JeedomAtlas:~# sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:8.3.0-1).
gcc set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Egalement present sur ma bos

Reading package lists…
Building dependency tree…
Reading state information…
gcc is already the newest version (4:8.3.0-1).
gcc set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.

A priori présent pour moi également.

jeedom@JeedomAtlas:~$ sudo apt-get install gcc
[sudo] Mot de passe de jeedom :
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
gcc est déjà la version la plus récente (4:8.3.0-1).
gcc passé en « installé manuellement ».
0 mis à jour, 0 nouvellement installés, 0 à enlever et 132 non mis à jour.
jeedom@JeedomAtlas:~$

Bonjour si ça peut aider ci joint le défaut récurent qui est remonté

[2022-07-04 19:24:43]ERROR : KLF200 has been restarted after found not responding
Traceback (most recent call last):
File « /var/www/html/plugins/klf200/resources/klf200d.py », line 4, in
from aiohttp import web
ModuleNotFoundError: No module named ‹ aiohttp ›

Hello,

Si j’essaye d’installer a la mano aiohttp qui est la lib que tu utilises pour la com avec le klf200 si je dis pas de bétises, ca me retourne ca:

root@JeedomAtlas:~# sudo pip install aiohttp[speedups]
Collecting aiohttp[speedups]
  Downloading https://files.pythonhosted.org/packages/2e/e6/9175733f42cec4f2cd6834564517f2f6260e27dab5edb75afdaa66f101bb/aiohttp-2.3.1.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 446kB/s
  Installing build dependencies ... done
aiohttp requires Python '>=3.4.2' but the running Python is 2.7.16

Là tu es en python 2 par défaut, c’est Debian Buster (EOL cet été …)
Il faut mettre pip3 install pour voir, mais ca va surement installé une version compilée

Dans le répertoire resources du plugin, tu pourrais lancer ca :
AIOHTTP_NO_EXTENSIONS=1 MULTIDICT_NO_EXTENSIONS=1 YARL_NO_EXTENSIONS=1 venv/bin/pip3 install aiohttp==3.7.4.post0

1 « J'aime »

Voici le resultat :

root@JeedomAtlas:/var/www/html/plugins/klf200/resources# AIOHTTP_NO_EXTENSIONS=1 MULTIDICT_NO_EXTENSIONS=1 YARL_NO_EXTENSIONS=1 venv/bin/pip3 install aiohttp==3.7.4.post0
Collecting aiohttp==3.7.4.post0
  Downloading https://files.pythonhosted.org/packages/99/f5/90ede947a3ce2d6de1614799f5fea4e93c19b6520a59dc5d2f64123b032f/aiohttp-3.7.4.post0.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 222kB/s
  Installing build dependencies ... done
Requirement already satisfied: attrs>=17.3.0 in ./venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (21.4.0)
Requirement already satisfied: chardet<5.0,>=2.0 in ./venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.0.0)
Collecting multidict<7.0,>=4.5 (from aiohttp==3.7.4.post0)
  Downloading https://files.pythonhosted.org/packages/fa/a7/71c253cdb8a1528802bac7503bf82fe674367e4055b09c28846fdfa4ab90/multidict-6.0.2.tar.gz (50kB)
    100% |████████████████████████████████| 51kB 1.0MB/s
  Installing build dependencies ... done
Requirement already satisfied: async_timeout<4.0,>=3.0 in ./venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (3.0.1)
Collecting yarl<2.0,>=1.0 (from aiohttp==3.7.4.post0)
  Downloading https://files.pythonhosted.org/packages/f6/da/46d1b3d69a9a0835dabf9d59c7eb0f1600599edd421a4c5a15ab09f527e0/yarl-1.7.2.tar.gz (168kB)
    100% |████████████████████████████████| 174kB 641kB/s
  Installing build dependencies ... done
Requirement already satisfied: typing_extensions>=3.6.5 in ./venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.3.0)
Collecting idna>=2.0 (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0)
  Downloading https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (61kB)
    100% |████████████████████████████████| 61kB 1.1MB/s
Building wheels for collected packages: aiohttp, multidict, yarl
  Running setup.py bdist_wheel for aiohttp ... done
  Stored in directory: /root/.cache/pip/wheels/15/aa/5f/33df380f4940b1c1bda8d83967345fcb97d0749e2cfbb06794
  Running setup.py bdist_wheel for multidict ... done
  Stored in directory: /root/.cache/pip/wheels/e7/67/fd/4e3843a89ae0e233d79452f8f04e45814f350173a99f5addc9
  Running setup.py bdist_wheel for yarl ... done
  Stored in directory: /root/.cache/pip/wheels/4b/5b/dc/b5c2dbad09144a8af76e8faf3549084e8d99284388a9439eba
Successfully built aiohttp multidict yarl
Installing collected packages: multidict, idna, yarl, aiohttp
Successfully installed aiohttp-3.7.4.post0 idna-3.3 multidict-6.0.2 yarl-1.7.2
root@JeedomAtlas:/var/www/html/plugins/klf200/resources#

C’est donc ok pour les deps

Mes logs :


0000|********************************************************
0001|05/07/2022 11:04:32 Installation des dépendances
0002|********************************************************
0003|Hit:1 http://deb.debian.org/debian buster InRelease
0004|Hit:2 http://security.debian.org buster/updates InRelease
0005|Hit:3 http://deb.debian.org/debian buster-updates InRelease
0006|Hit:4 http://deb.debian.org/debian buster-backports InRelease
0007|Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
0008|Hit:6 http://armbian.systemonachip.net/apt buster InRelease
0009|Reading package lists...
0010|Installation des dépendances apt
0011|Reading package lists...
0012|Building dependency tree...
0013|Reading state information...
0014|python3-venv is already the newest version (3.7.3-1).
0015|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0016|Requirement already satisfied: pyvlx in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (0.2.20)
0017|Requirement already satisfied: PyYAML in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from pyvlx) (5.4.1)
0018|Requirement already satisfied: aiohttp==3.7.4.post0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (3.7.4.post0)
0019|Requirement already satisfied: multidict<7.0,>=4.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (6.0.2)
0020|Requirement already satisfied: attrs>=17.3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (21.4.0)
0021|Requirement already satisfied: typing-extensions>=3.6.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.3.0)
0022|Requirement already satisfied: chardet<5.0,>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.0.0)
0023|Requirement already satisfied: yarl<2.0,>=1.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (1.7.2)
0024|Requirement already satisfied: async-timeout<4.0,>=3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (3.0.1)
0025|Requirement already satisfied: idna>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0) (3.3)
0026|Collecting PyYAML==5.4.1
0027|Installing collected packages: PyYAML
0028|Found existing installation: PyYAML 5.4.1
0029|Uninstalling PyYAML-5.4.1:
0030|Successfully uninstalled PyYAML-5.4.1
0031|Successfully installed PyYAML-5.4.1
0032|Requirement already satisfied: bottle in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (0.12.21)
0033|********************************************************
0034|05/07/2022 11:05:09 Installation terminée
0035|********************************************************

Par contre de les logs klf200, j’ai toujours l’erreur:

0151|[2022-07-05 11:08:43]ERROR : KLF200 has been restarted after found not responding
0152|Traceback (most recent call last):
0153|File "/var/www/html/plugins/klf200/resources/klf200d.py", line 269, in 
0154|LOOP.run_until_complete(init_pyvlx_connection(LOOP))
0155|File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
0156|return future.result()
0157|File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
0158|await pyvlx.load_nodes()
0159|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 78, in load_nodes
0160|await self.nodes.load(node_id)
0161|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 69, in load
0162|await self._load_all_nodes()
0163|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 85, in _load_all_nodes
0164|await get_all_nodes_information.do_api_call()
0165|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/api_event.py", line 21, in do_api_call
0166|await self.send_frame()
0167|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/api_event.py", line 33, in send_frame
0168|await self.pyvlx.send_frame(self.request_frame())
0169|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 66, in send_frame
0170|await self.connect()
0171|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 56, in connect
0172|await house_status_monitor_enable(pyvlx=self)
0173|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/house_status_monitor.py", line 57, in house_status_monitor_enable
0174|raise PyVLXException("Unable enable house status monitor.")
0175|pyvlx.exception.PyVLXException:

Relance les deps, mais maintenant que aiohttp est ok il devrait faire les autres paquets uniquement

Bonjour et merci pour ton aide
Je suis novice sur Jeedom, comment dois-je faire pour lancer cette commande dans le répertoire
Merci

Attendons le retour de Marcroux, si ca fonctionne bien E2E j’intègrerais les modifs en beta pour test

J’avais deja relancé les deps , je viens de le refaire:


0000|********************************************************
0001|05/07/2022 13:38:05 Installation des dépendances
0002|********************************************************
0003|Hit:1 http://deb.debian.org/debian buster InRelease
0004|Hit:2 http://deb.debian.org/debian buster-updates InRelease
0005|Hit:3 http://deb.debian.org/debian buster-backports InRelease
0006|Hit:4 http://security.debian.org buster/updates InRelease
0007|Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
0008|Hit:6 https://armbian.site-meganet.com/apt buster InRelease
0009|Reading package lists...
0010|Installation des dépendances apt
0011|Reading package lists...
0012|Building dependency tree...
0013|Reading state information...
0014|python3-venv is already the newest version (3.7.3-1).
0015|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0016|Requirement already satisfied: pyvlx in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (0.2.20)
0017|Requirement already satisfied: PyYAML in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from pyvlx) (5.4.1)
0018|Requirement already satisfied: aiohttp==3.7.4.post0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (3.7.4.post0)
0019|Requirement already satisfied: multidict<7.0,>=4.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (6.0.2)
0020|Requirement already satisfied: typing-extensions>=3.6.5 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.3.0)
0021|Requirement already satisfied: attrs>=17.3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (21.4.0)
0022|Requirement already satisfied: chardet<5.0,>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (4.0.0)
0023|Requirement already satisfied: yarl<2.0,>=1.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (1.7.2)
0024|Requirement already satisfied: async-timeout<4.0,>=3.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from aiohttp==3.7.4.post0) (3.0.1)
0025|Requirement already satisfied: idna>=2.0 in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (from yarl<2.0,>=1.0->aiohttp==3.7.4.post0) (3.3)
0026|Collecting PyYAML==5.4.1
0027|Installing collected packages: PyYAML
0028|Found existing installation: PyYAML 5.4.1
0029|Uninstalling PyYAML-5.4.1:
0030|Successfully uninstalled PyYAML-5.4.1
0031|Successfully installed PyYAML-5.4.1
0032|Requirement already satisfied: bottle in /var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages (0.12.21)
0033|********************************************************
0034|05/07/2022 13:38:42 Installation terminée
0035|********************************************************

les deps sont ok mais le deamon n’arrête pas de reboot:

Avec cette erreur :

0475|[2022-07-05 13:44:43]ERROR : KLF200 has been restarted after found not responding
0476|Traceback (most recent call last):
0477|File "/var/www/html/plugins/klf200/resources/klf200d.py", line 269, in 
0478|LOOP.run_until_complete(init_pyvlx_connection(LOOP))
0479|File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
0480|return future.result()
0481|File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
0482|await pyvlx.load_nodes()
0483|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 78, in load_nodes
0484|await self.nodes.load(node_id)
0485|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 69, in load
0486|await self._load_all_nodes()
0487|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 85, in _load_all_nodes
0488|await get_all_nodes_information.do_api_call()
0489|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/api_event.py", line 21, in do_api_call
0490|await self.send_frame()
0491|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/api_event.py", line 33, in send_frame
0492|await self.pyvlx.send_frame(self.request_frame())
0493|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 66, in send_frame
0494|await self.connect()
0495|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 56, in connect
0496|await house_status_monitor_enable(pyvlx=self)
0497|File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/house_status_monitor.py", line 57, in house_status_monitor_enable
0498|raise PyVLXException("Unable enable house status monitor.")
0499|pyvlx.exception.PyVLXException:

en ssh tape :

/var/www/html/plugins/klf200/resources

Tu te trouveras dans le repertoire et ensuite tape la cmd cité plus haut :

AIOHTTP_NO_EXTENSIONS=1 MULTIDICT_NO_EXTENSIONS=1 YARL_NO_EXTENSIONS=1 venv/bin/pip3 install aiohttp==3.7.4.post0

c’est plus de la communication SSH que du Jeedom, la reponse de @Maxcrouz est imcompléte il me semble, il manque le « cd » avant. Donc connecté en SSH et en root pour simplification :

cd /var/www/html/plugins/klf200/resources

et après

AIOHTTP_NO_EXTENSIONS=1 MULTIDICT_NO_EXTENSIONS=1 YARL_NO_EXTENSIONS=1 venv/bin/pip3 install aiohttp==3.7.4.post0

Avec la manip les dépendances sont OK, la configuration est OK mais le statut reste en NOK.
Pas contre j’ai pas les mêmes erreurs que @Maxcrouz

> 
> application protocol failed to receive SSL data
> protocol: <asyncio.sslproto.SSLProtocol object at 0xffff7deea860>
> transport: <_SelectorSocketTransport fd=6 read=polling write=<idle, bufsize=0>>
> ValueError: 385 is not a valid NodeTypeWithSubtype
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/asyncio/sslproto.py", line 541, in data_received
>     self._app_protocol.data_received(chunk)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/connection.py", line 52, in data_received
>     frame = frame_from_raw(raw)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frame_creation.py", line 53, in frame_from_raw
>     frame.from_payload(payload)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frames/frame_get_all_nodes_information.py", line 145, in from_payload
>     self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
>   File "/usr/lib/python3.7/enum.py", line 310, in __call__
>     return cls.__new__(cls, value)
>   File "/usr/lib/python3.7/enum.py", line 564, in __new__
>     raise exc
>   File "/usr/lib/python3.7/enum.py", line 548, in __new__
>     result = cls._missing_(value)
>   File "/usr/lib/python3.7/enum.py", line 577, in _missing_
>     raise ValueError("%r is not a valid %s" % (value, cls.__name__))
> ValueError: 385 is not a valid NodeTypeWithSubtype
> [2022-07-05 16:36:43][ERROR] : KLF200 has been restarted after found not responding
> application protocol failed to receive SSL data
> protocol: <asyncio.sslproto.SSLProtocol object at 0xffffba92a898>
> transport: <_SelectorSocketTransport fd=8 read=polling write=<idle, bufsize=0>>
> ValueError: 385 is not a valid NodeTypeWithSubtype
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/asyncio/sslproto.py", line 541, in data_received
>     self._app_protocol.data_received(chunk)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/connection.py", line 52, in data_received
>     frame = frame_from_raw(raw)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frame_creation.py", line 53, in frame_from_raw
>     frame.from_payload(payload)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frames/frame_get_all_nodes_information.py", line 145, in from_payload
>     self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
>   File "/usr/lib/python3.7/enum.py", line 310, in __call__
>     return cls.__new__(cls, value)
>   File "/usr/lib/python3.7/enum.py", line 564, in __new__
>     raise exc
>   File "/usr/lib/python3.7/enum.py", line 548, in __new__
>     result = cls._missing_(value)
>   File "/usr/lib/python3.7/enum.py", line 577, in _missing_
>     raise ValueError("%r is not a valid %s" % (value, cls.__name__))
> ValueError: 385 is not a valid NodeTypeWithSubtype
> Traceback (most recent call last):
>   File "/var/www/html/plugins/klf200/resources/klf200d.py", line 269, in <module>
>     LOOP.run_until_complete(init_pyvlx_connection(LOOP))
>   File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
>     return future.result()
>   File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
>     await pyvlx.load_nodes()
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 78, in load_nodes
>     await self.nodes.load(node_id)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 69, in load
>     await self._load_all_nodes()
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 87, in _load_all_nodes
>     raise PyVLXException("Unable to retrieve node information")
> pyvlx.exception.PyVLXException: <PyVLXException description="Unable to retrieve node information" />
> [2022-07-05 16:37:08][ERROR] : KLF200 has been restarted after found not responding
> application protocol failed to receive SSL data
> protocol: <asyncio.sslproto.SSLProtocol object at 0xffffa99de7b8>
> transport: <_SelectorSocketTransport fd=6 read=polling write=<idle, bufsize=0>>
> ValueError: 385 is not a valid NodeTypeWithSubtype
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/asyncio/sslproto.py", line 541, in data_received
>     self._app_protocol.data_received(chunk)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/connection.py", line 52, in data_received
>     frame = frame_from_raw(raw)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frame_creation.py", line 53, in frame_from_raw
>     frame.from_payload(payload)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frames/frame_get_all_nodes_information.py", line 145, in from_payload
>     self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
>   File "/usr/lib/python3.7/enum.py", line 310, in __call__
>     return cls.__new__(cls, value)
>   File "/usr/lib/python3.7/enum.py", line 564, in __new__
>     raise exc
>   File "/usr/lib/python3.7/enum.py", line 548, in __new__
>     result = cls._missing_(value)
>   File "/usr/lib/python3.7/enum.py", line 577, in _missing_
>     raise ValueError("%r is not a valid %s" % (value, cls.__name__))
> ValueError: 385 is not a valid NodeTypeWithSubtype
> Traceback (most recent call last):
>   File "/var/www/html/plugins/klf200/resources/klf200d.py", line 269, in <module>
>     LOOP.run_until_complete(init_pyvlx_connection(LOOP))
>   File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
>     return future.result()
>   File "/var/www/html/plugins/klf200/resources/klf200d.py", line 22, in init_pyvlx_connection
>     await pyvlx.load_nodes()
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/pyvlx.py", line 78, in load_nodes
>     await self.nodes.load(node_id)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 69, in load
>     await self._load_all_nodes()
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/nodes.py", line 87, in _load_all_nodes
>     raise PyVLXException("Unable to retrieve node information")
> pyvlx.exception.PyVLXException: <PyVLXException description="Unable to retrieve node information" />
> [2022-07-05 16:37:44][ERROR] : KLF200 has been restarted after found not responding
> application protocol failed to receive SSL data
> protocol: <asyncio.sslproto.SSLProtocol object at 0xffff91b588d0>
> transport: <_SelectorSocketTransport fd=8 read=polling write=<idle, bufsize=0>>
> ValueError: 385 is not a valid NodeTypeWithSubtype
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/asyncio/sslproto.py", line 541, in data_received
>     self._app_protocol.data_received(chunk)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/connection.py", line 52, in data_received
>     frame = frame_from_raw(raw)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frame_creation.py", line 53, in frame_from_raw
>     frame.from_payload(payload)
>   File "/var/www/html/plugins/klf200/resources/venv/lib/python3.7/site-packages/pyvlx/api/frames/frame_get_all_nodes_information.py", line 145, in from_payload
>     self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
>   File "/usr/lib/python3.7/enum.py", line 310, in __call__
>     return cls.__new__(cls, value)
>   File "/usr/lib/python3.7/enum.py", line 564, in __new__
>     raise exc
>   File "/usr/lib/python3.7/enum.py", line 548, in __new__
>     result = cls._missing_(value)
>   File "/usr/lib/python3.7/enum.py", line 577, in _missing_
>     raise ValueError("%r is not a valid %s" % (value, cls.__name__))
> ValueError: 385 is not a valid NodeTypeWithSubtype
1 « J'aime »

My bad, j’ai oublié le change directory

Tu aurais le log complet depuis le démarrage ?

J’ai que ça, j’ai supprimer le reste pour plus de lisibilité … :roll_eyes:

klf200 (1).txt (31,2 Ko)

@lunarok tu as pu regarder mes logs ? le ping de KLF est bon mais de Deamon reboot toujours.
@Maxcrouz tu as avancé de ton coté ?

Hello, pour le moment je suis passé par un broker mqtt pour me dépatouiller, je n’ai pas réussi à gérer les lamelles des bso mais je peux au moins faire monter/descente/stop et envoyer une position.