Bonsoir à tous,
je vais casser un peu la polémique. Et tout d’abord commencer mon propos par féliciter tous les développeurs qui réalisent ce type de plugin. Vu le prix que ca coute et le bénéfice que ca peut apporter, les merci et la bienveillance envers vous sont de rigueur.
Ceci étant dit, je ne suis certainement pas le seul à avoir cette ligne:
Fatal error : module 'serial' has no attribute 'VERSION'
Et a priori, personne n’a identifié de solution. Ni meme les 2 autres topics " Unrecognizable packet" ou Error: unrecognizable packet - index out of range
J’ai réinstallé maintes fois récemment les dépendances. J’ai réinstallé tout mon jeedom pour passer d’un stretch à un buster. Et j’ai toujours ce soucis sur le démon qui démarre mais s’arrête au bout de quelques secondes. Afin d’aider la communauté, je reposte ici mon contexte :
Concernant l’OS :
RETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Concernant le hardware : Rpi PI3B
Concernant Jeedom : v4.0.61
Concernant ma gateway USB RFX : RFXtrx433E batch 4215
Coté dépendances, tout semble OK :
********************************************************
* Installation des dépendances *
********************************************************
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://phoscon.de/apt/deconz buster InRelease
Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
Reading package lists...
Skipping serial as it is not installed.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python3-serial' is not installed, so not removed
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
python3-pip is already the newest version (18.1-5+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
********************************************************
* Installation terminée *
********************************************************```
Coté Démon, c’est moins le cas. Je retrouve le meme type de problème que d’autres :
[2020-11-29 14:45:43][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd
[2020-11-29 14:50:09][ERROR] : Attention je pense qu’il y a un soucis avec le démon que j’ai relancé plus de 3 fois consécutivement
[2020-11-29 14:50:11][INFO] : Lancement démon rfxcomd : /usr/bin/python3 /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 12,13,18,20,21,22,23 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey K17Cq0b9NERSO2rvOVLSWafrTAK86L6R --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2020-11-29 13:50:13][INFO] : Start rfxcomd
[2020-11-29 13:50:13][INFO] : Log level : debug
[2020-11-29 13:50:13][INFO] : Socket port : 55000
[2020-11-29 13:50:13][INFO] : Socket host : 127.0.0.1
[2020-11-29 13:50:13][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2020-11-29 13:50:13][INFO] : Device : /dev/ttyUSB0
[2020-11-29 13:50:13][INFO] : Apikey : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2020-11-29 13:50:13][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2020-11-29 13:50:13][INFO] : Cycle : 0.3
[2020-11-29 13:50:13][INFO] : Serial rate : 38400
[2020-11-29 13:50:13][INFO] : Serial timeout : 9
[2020-11-29 13:50:13][INFO] : Protocol : 12,13,18,20,21,22,23
[2020-11-29 13:50:13][INFO] : Find device : /dev/ttyUSB0
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x01 : Interface Response Message
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x10 : Lighting1 (X10, ARC, ELRO, Waveman, EMW200, IMPULS,RisingSun, Philips, Energenie, GDR2, HQ, Oase)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x11 : Lighting2 (AC, HomeEasy EU, ANSLUT, Kambrook)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x13 : Lighting4 (PT2262)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x14 : Lighting5 ( LightwaveRF, Siemens, EMW100, BBSB, MDREMOTE,RSL2, OTIO, Livolo, RGB, Aoke relay, Eurodomest, RGB432W, Legrand,Avantek, IT, Kangtai)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x15 : Lighting6 (Blyss (AE), Cuveo)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x16 : Chime (Byron SX, Byron MP001, SelectPlus, Envivo, Alfawise)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x17 : Fan (Siemens SF01, Itho, LucciAir, SEAV,Westinghouse,Casafan,FT1211R,Novy)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x19 : Blinds1 (RollerTrol,Hasta,A-OK,Raex, Media Mount, DC)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x1C : Edisio
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x1D : Honeywell ActivLink
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x1E : FunkBus
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x1F : Hunter Fan
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x20 : Security1 (X10, KD101, Visonic, Meiantech, SA30, SA33, RM174RF)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x21 : Security2 (KeeLoq)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x28 : Camera1 (Ninja/Robocam)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x30 : Remote control and IR (ATI, Medion, PC Remote)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x40 : Thermostat1 (Digimax)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x42 : Thermostat3 (Mertik-Maxitrol G6R-H4 type)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x4E : BBQ Temperature sensors (BBQ1)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x4F : Temperature and rain sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x50 : Temperature sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x51 : Humidity sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x52 : Temperature and humidity sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x53 : Barometric sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x54 : Temperature, humidity and barometric sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x55 : Rain sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x56 : Wind sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x57 : UV sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x58 : Date/time sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x59 : Current sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x5A : Current sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x5B : Current + ENERGY sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x5C : Power sensors
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x5D : Weighting scale
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x60 : CARTELECTRONIC
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x70 : RFXsensor
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x71 : RFXMeter
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x72 : FS20 (FS20, FHT 8V, FHT80)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x76 : Weather stations (WEATHER1-WEATHER2)
[2020-11-29 13:50:13][DEBUG] : Load decoder packet type 0x77 : SOLAR1
[2020-11-29 13:50:13][DEBUG] : Writing PID 17275 to /tmp/jeedom/rfxcom/deamon.pid
[2020-11-29 13:50:13][DEBUG] : Init request module v2.21.0
[2020-11-29 13:50:13][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-11-29 14:50:13][DEBUG] : null
[2020-11-29 13:50:13][DEBUG] : http://127.0.0.1:80 « GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1 » 200 0
[2020-11-29 13:50:13][ERROR] : Fatal error : module ‹ serial › has no attribute ‹ VERSION ›
[2020-11-29 13:50:13][DEBUG] : Traceback (most recent call last):
File « /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py », line 394, in
shared.JEEDOM_SERIAL = jeedom_serial(device=_device,rate=_serial_rate,timeout=_serial_timeout)
File « /var/www/html/plugins/rfxcom/resources/rfxcomd/jeedom/jeedom.py », line 231, in init
logging.debug(‹ Init serial module v%s › % (str(serial.VERSION),))
AttributeError: module ‹ serial › has no attribute ‹ VERSION ›
[2020-11-29 13:50:13][DEBUG] : Shutdown
[2020-11-29 13:50:13][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2020-11-29 13:50:13][DEBUG] : Exit 0
La nuit porte conseil, demain permettra surement de trouver une autre piste… Faites tourner messieurs dames…