Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers] Plugin Téléinfo

Pour échanger sur les plugins classés en catégorie "Energie"
mols3
Timide
Messages : 59
Inscription : 14 janv. 2017, 17:58

Re: [Plugin Tiers] Plugin Téléinfo

Message par mols3 » 08 déc. 2017, 17:01

merci pour le lien, j'ai réussi à créer un début de vue sympa. par contre,les données de cette vue seront elles également archivées cette nuit? pour l'instant j'ai des données toutes les 5 min, et j'aimerais que ça reste comme ça??

Avatar de l’utilisateur
Me_
Actif
Messages : 766
Inscription : 22 juin 2015, 22:28
Localisation : Guyane

Re: [Plugin Tiers] Plugin Téléinfo

Message par Me_ » 08 déc. 2017, 17:36

Oui elles seront archivées. Ça ne fait qu’utiliser les données stockées dans l’historique.
Présentation
Mon matériel: ici

Avatar de l’utilisateur
Me_
Actif
Messages : 766
Inscription : 22 juin 2015, 22:28
Localisation : Guyane

Re: [Plugin Tiers] Plugin Téléinfo

Message par Me_ » 08 déc. 2017, 17:42

Sur la commande que tu historises, il faut que tu ailles sur la configuration de la commande (roues crantées), onglet Configuration et tu choisis "Aucun" pour "Mode de lissage".
Présentation
Mon matériel: ici

bouboun59
Timide
Messages : 4
Inscription : 09 déc. 2017, 10:18

Re: [Plugin Tiers] Plugin Téléinfo

Message par bouboun59 » 09 déc. 2017, 11:11

Bonjour,

Je viens d'installer le module MODEM GCE USB, avec mon JEEDOM, j'ai des EROR FRAME et au niveau debug voici les infos :
On dirait que la teleinfo est activée mais que le modem n'arrive pas à les lire correctement.

2017-12-09 08:21:37,586 INFO Try to close Teleinfo modem
2017-12-09 08:21:37,588 INFO Teleinfo modem successfully closed
2017-12-09 09:51:22,715 INFO Try to open Teleinfo modem /dev/ttyUSB0 with speed 1200
2017-12-09 09:51:22,720 INFO Teleinfo modem successfully opened
2017-12-09 09:51:24,728 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:25,431 ERROR * New frame after corrupted
2017-12-09 09:51:25,583 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:26,239 ERROR * New frame after corrupted
2017-12-09 09:51:27,626 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:27,627 ERROR * New frame after corrupted
2017-12-09 09:51:29,764 ERROR ** FRAME CORRUPTED !


et si je fais des test en console dirextement je vois passer des infos mais pas très comprehensible

root@CENTRALDOMO:/home/pi# cat /dev/ttyUSB0 > test.txt
^C
root@CENTRALDOMO:/home/pi# more test.txt
+{z.jjN[S'7['[jlu.55
-3[J
K"KjSQq8tsu7PQc#rrjE 002 Y-
JADC"OjMOTDETQj$400100 GHHTHC A ,IMAX 041 D
[^j&B5js[s6796 4j\M<L(nu.55::3NhRk!E%g
XCHPP563939342$=
PUEC!HP.. P
IIN[T p0YT/s#yS(vhLZ6hQc!)STR<4P4kc!jOUE
00"cMB
NOPTARIF jC.. <ADCO"04y501067629`H
KSOUWC 47 ?
H8)<$L[W&7_'[l^Lj3J
KZ"KjWEUC HR.> c!9={e--More--(32%)
K5
IMAXP4lh+L

j-
C=L(jguG 000100!C
['S6&W3k#5OPTARIF$H8IAD9jS7uUSC!45 ?
HGHC 0753896 4
LCHPP16;91;74z 9g!*uqxtSTI ^&Tg}EAY
ISPvhLmlp#c!+RTZ4(hkc!u.GUGE
[
$8)84L[M86296 t+?jW7uW=5NADCo$04950107629 $c!]h:9)8I
lKd( 163N6N&_4'L EW7
rSP~P41P"y.P$c%srjEA]s
HHPhG A$,
.. <MOTDETaT$405LP:lxJADCO 0t9501067Nx$LhE%gC
ISOUScP45 ?
HCXC 0753866=6 4
HCHP`163919&[4'EW7L
UK ^L(.^n]:&'nhUL(.*
"1 D
LHp$C A ,
MOT"ETAT`028100 K-A
S[S3O:#k[5+3J+{jS5jj\I)^LjVuN55ADCO$049505y6c!e%Wg
K"#[kSDEW7
Grk'njEE2 Z
iM`\ 441@E
HHQ$C A .-
MOTDMjAT 04508 C
[*ADC
067669(H
ORTARIFPhK.."<
IS.55#+



Avez vous une idée ?

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers] Plugin Téléinfo

Message par benj29 » 09 déc. 2017, 11:23

Bonjour,

Depuis une réinstallation de Jeedom et restauration, problème sur le plugin qui me met un beau 500 Internal Error.

j'ai bien les données depuis la pose de mon Linky (octobre).

Image

Quand je regarde les logs, le démon semble bien faire son boulot.

Code : Tout sélectionner

2017-12-09 11:20:39,681 INFO Try to close Teleinfo modem
2017-12-09 11:20:39,715 INFO Teleinfo modem successfully closed
2017-12-09 11:20:46,789 INFO Try to open Teleinfo modem /dev/ttyACM0 with speed 9600
2017-12-09 11:20:46,790 INFO Teleinfo modem successfully opened
2017-12-09 11:20:46,847 ERROR ** FRAME CORRUPTED !
2017-12-09 11:20:47,041 ERROR * New frame after corrupted
La frame corrupted est liée je pense à l'arrêt, redémarrage du démon (pour passage en mode debug).

Code : Tout sélectionner

[2017-12-09 11:20:39][INFO] : [deamon_stop] Arret du service
Terminating...
[2017-12-09 11:20:46][INFO] : Vérification de l'état du service : NOK
[2017-12-09 11:20:46][INFO] : Mode local
[2017-12-09 11:20:46][INFO] : --------- Informations sur le master --------
[2017-12-09 11:20:46][INFO] : Adresse             :http://192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Host / Port         :192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Path complémentaire :
[2017-12-09 11:20:46][INFO] : Mise en forme pour le service : http://192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Debug : 0
[2017-12-09 11:20:46][INFO] : Force : 1
[2017-12-09 11:20:46][INFO] : Port modem : /dev/ttyACM0
[2017-12-09 11:20:46][INFO] : ---------------------------------------------
[2017-12-09 11:20:46][INFO] : Fonctionnement en mode 1 compteur
[2017-12-09 11:20:46][INFO] : Exécution du service : nice -n 19 /usr/bin/python /var/www/html/plugins/teleinfo/ressources/teleinfo.py -d 0 -p /dev/ttyACM0 -v 9600 -c 8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY -f 1 -r /var/www/html/plugins/teleinfo/core/class
[2017-12-09 11:20:48][INFO] : Service OK
[2017-12-09 11:20:48][INFO] : ---------------------------------------------
[2017-12-09 11:20:49][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / IINST=008 / OPTARIF=HC / ADCO=031764814620 / HCHC=000617171 / ISOUSC=45 / IMAX=060 / PTEC=HP / PAPP=01730 / HHPHC=A / HCHP=000960619 /
[2017-12-09 11:20:51][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960620 / ADCO=031764814620 /
[2017-12-09 11:20:54][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960622 / ADCO=031764814620 /
[2017-12-09 11:20:57][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960623 / ADCO=031764814620 /
[2017-12-09 11:21:00][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960624 / ADCO=031764814620 /
[2017-12-09 11:21:03][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960626 / ADCO=031764814620 /
[2017-12-09 11:21:06][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01740 / HCHP=000960627 / ADCO=031764814620 /
[2017-12-09 11:21:09][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960629 / ADCO=031764814620 /
[2017-12-09 11:21:11][DEBUG] : Pas de calcul
[2017-12-09 11:21:12][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960630 / ADCO=031764814620 /
[2017-12-09 11:21:14][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960631 / ADCO=031764814620 /
[2017-12-09 11:21:17][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960632 / ADCO=031764814620 /
[2017-12-09 11:21:20][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960634 / ADCO=031764814620 /
[2017-12-09 11:21:23][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960635 / ADCO=031764814620 /
[2017-12-09 11:21:26][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960636 / ADCO=031764814620 /
[2017-12-09 11:21:29][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960638 / ADCO=031764814620 /
[2017-12-09 11:21:32][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960639 / ADCO=031764814620 /
[2017-12-09 11:21:35][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960641 / ADCO=031764814620 /
[2017-12-09 11:21:38][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960642 / ADCO=031764814620 /
[2017-12-09 11:21:41][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960643 / ADCO=031764814620 /
[2017-12-09 11:21:43][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960644 / ADCO=031764814620 /
[2017-12-09 11:21:46][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960646 / ADCO=031764814620 /
[2017-12-09 11:21:49][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960647 / ADCO=031764814620 /
[2017-12-09 11:21:52][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960649 / ADCO=031764814620 /
[2017-12-09 11:21:55][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960650 / ADCO=031764814620 /
[2017-12-09 11:21:58][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960651 / ADCO=031764814620 /
[2017-12-09 11:22:01][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960653 / ADCO=031764814620 /
[2017-12-09 11:22:04][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960654 / ADCO=031764814620 /
[2017-12-09 11:22:06][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960655 / ADCO=031764814620 /
[2017-12-09 11:22:09][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960656 / ADCO=031764814620 /
[2017-12-09 11:22:12][DEBUG] : Pas de calcul
[2017-12-09 11:22:12][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960658 / ADCO=031764814620 /
[2017-12-09 11:22:15][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960659 / ADCO=031764814620 /
[2017-12-09 11:22:18][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960661 / ADCO=031764814620 /
[2017-12-09 11:22:21][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960662 / ADCO=031764814620 /
[2017-12-09 11:22:24][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960663 / ADCO=031764814620 /
[2017-12-09 11:22:27][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960665 / ADCO=031764814620 /
[2017-12-09 11:22:30][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960666 / ADCO=031764814620 /
[2017-12-09 11:22:33][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960667 / ADCO=031764814620 /
[2017-12-09 11:22:35][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960669 / ADCO=031764814620 /
Et les dépendances OK.

Code : Tout sélectionner

Lancement de l'installation des dépendances Téléinfo
Reading package lists...
Building dependency tree...
Reading state information...
python-ftdi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python-serial is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Everything is successfully installed!
Côté santé tout est dans la trame.

J'ai cru comprendre qu'il y avait un souci sur le HP/HC (cf post info conso).

Côté infoconso que j'utilise et energy, aussi tout semble OK.

Une idée ?

EDIT : je viens d'appliquer l'ajout du case dans le switch vu plus haut.

Avatar de l’utilisateur
noBru77
Timide
Messages : 359
Inscription : 11 oct. 2016, 00:41

Re: [Plugin Tiers] Plugin Téléinfo

Message par noBru77 » 10 déc. 2017, 20:41

benj29 a écrit :Bonjour,

Depuis une réinstallation de Jeedom et restauration, problème sur le plugin qui me met un beau 500 Internal Error.

j'ai bien les données depuis la pose de mon Linky (octobre).

Image

Quand je regarde les logs, le démon semble bien faire son boulot.

Code : Tout sélectionner

2017-12-09 11:20:39,681 INFO Try to close Teleinfo modem
2017-12-09 11:20:39,715 INFO Teleinfo modem successfully closed
2017-12-09 11:20:46,789 INFO Try to open Teleinfo modem /dev/ttyACM0 with speed 9600
2017-12-09 11:20:46,790 INFO Teleinfo modem successfully opened
2017-12-09 11:20:46,847 ERROR ** FRAME CORRUPTED !
2017-12-09 11:20:47,041 ERROR * New frame after corrupted
La frame corrupted est liée je pense à l'arrêt, redémarrage du démon (pour passage en mode debug).

Code : Tout sélectionner

[2017-12-09 11:20:39][INFO] : [deamon_stop] Arret du service
Terminating...
[2017-12-09 11:20:46][INFO] : Vérification de l'état du service : NOK
[2017-12-09 11:20:46][INFO] : Mode local
[2017-12-09 11:20:46][INFO] : --------- Informations sur le master --------
[2017-12-09 11:20:46][INFO] : Adresse             :http://192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Host / Port         :192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Path complémentaire :
[2017-12-09 11:20:46][INFO] : Mise en forme pour le service : http://192.168.2.23:80
[2017-12-09 11:20:46][INFO] : Debug : 0
[2017-12-09 11:20:46][INFO] : Force : 1
[2017-12-09 11:20:46][INFO] : Port modem : /dev/ttyACM0
[2017-12-09 11:20:46][INFO] : ---------------------------------------------
[2017-12-09 11:20:46][INFO] : Fonctionnement en mode 1 compteur
[2017-12-09 11:20:46][INFO] : Exécution du service : nice -n 19 /usr/bin/python /var/www/html/plugins/teleinfo/ressources/teleinfo.py -d 0 -p /dev/ttyACM0 -v 9600 -c 8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY -f 1 -r /var/www/html/plugins/teleinfo/core/class
[2017-12-09 11:20:48][INFO] : Service OK
[2017-12-09 11:20:48][INFO] : ---------------------------------------------
[2017-12-09 11:20:49][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / IINST=008 / OPTARIF=HC / ADCO=031764814620 / HCHC=000617171 / ISOUSC=45 / IMAX=060 / PTEC=HP / PAPP=01730 / HHPHC=A / HCHP=000960619 /
[2017-12-09 11:20:51][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960620 / ADCO=031764814620 /
[2017-12-09 11:20:54][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960622 / ADCO=031764814620 /
[2017-12-09 11:20:57][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960623 / ADCO=031764814620 /
[2017-12-09 11:21:00][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960624 / ADCO=031764814620 /
[2017-12-09 11:21:03][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960626 / ADCO=031764814620 /
[2017-12-09 11:21:06][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01740 / HCHP=000960627 / ADCO=031764814620 /
[2017-12-09 11:21:09][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960629 / ADCO=031764814620 /
[2017-12-09 11:21:11][DEBUG] : Pas de calcul
[2017-12-09 11:21:12][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960630 / ADCO=031764814620 /
[2017-12-09 11:21:14][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960631 / ADCO=031764814620 /
[2017-12-09 11:21:17][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960632 / ADCO=031764814620 /
[2017-12-09 11:21:20][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960634 / ADCO=031764814620 /
[2017-12-09 11:21:23][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960635 / ADCO=031764814620 /
[2017-12-09 11:21:26][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960636 / ADCO=031764814620 /
[2017-12-09 11:21:29][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960638 / ADCO=031764814620 /
[2017-12-09 11:21:32][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960639 / ADCO=031764814620 /
[2017-12-09 11:21:35][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960641 / ADCO=031764814620 /
[2017-12-09 11:21:38][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960642 / ADCO=031764814620 /
[2017-12-09 11:21:41][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960643 / ADCO=031764814620 /
[2017-12-09 11:21:43][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960644 / ADCO=031764814620 /
[2017-12-09 11:21:46][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960646 / ADCO=031764814620 /
[2017-12-09 11:21:49][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960647 / ADCO=031764814620 /
[2017-12-09 11:21:52][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960649 / ADCO=031764814620 /
[2017-12-09 11:21:55][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960650 / ADCO=031764814620 /
[2017-12-09 11:21:58][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960651 / ADCO=031764814620 /
[2017-12-09 11:22:01][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960653 / ADCO=031764814620 /
[2017-12-09 11:22:04][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960654 / ADCO=031764814620 /
[2017-12-09 11:22:06][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960655 / ADCO=031764814620 /
[2017-12-09 11:22:09][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960656 / ADCO=031764814620 /
[2017-12-09 11:22:12][DEBUG] : Pas de calcul
[2017-12-09 11:22:12][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960658 / ADCO=031764814620 /
[2017-12-09 11:22:15][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960659 / ADCO=031764814620 /
[2017-12-09 11:22:18][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960661 / ADCO=031764814620 /
[2017-12-09 11:22:21][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960662 / ADCO=031764814620 /
[2017-12-09 11:22:24][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960663 / ADCO=031764814620 /
[2017-12-09 11:22:27][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960665 / ADCO=031764814620 /
[2017-12-09 11:22:30][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01720 / HCHP=000960666 / ADCO=031764814620 /
[2017-12-09 11:22:33][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / PAPP=01730 / HCHP=000960667 / ADCO=031764814620 /
[2017-12-09 11:22:35][DEBUG] : Reception de : api=8HUJLYQPIfZXMuebiIKOXpjyReSFcP0Ak50ARaEdXNCdrUdY / HCHP=000960669 / ADCO=031764814620 /
Et les dépendances OK.

Code : Tout sélectionner

Lancement de l'installation des dépendances Téléinfo
Reading package lists...
Building dependency tree...
Reading state information...
python-ftdi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python-serial is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Everything is successfully installed!
Côté santé tout est dans la trame.

J'ai cru comprendre qu'il y avait un souci sur le HP/HC (cf post info conso).

Côté infoconso que j'utilise et energy, aussi tout semble OK.

Une idée ?

EDIT : je viens d'appliquer l'ajout du case dans le switch vu plus haut.
Hello,

C’est normal que JEEDOM se connecte sur le port /dev/ttyACM0 ? Parce que chez moi, ce port est dédié à la clé Gen5 Z-Wave et la télé info est sur un port du genre /dev/tty/USB01

Jette un œil sur ta config dans le Plugin.

A+

Bruno.


Envoyé de mon iPhone en utilisant Tapatalk

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers] Plugin Téléinfo

Message par benj29 » 10 déc. 2017, 20:54

Non. Les logs Linux m'indiquent bien que c'est acm. C'est un ftdi le chip interne.
L'usb est par exemple mon rfxcom.

Sauf erreur de ma part. Et les infos du teleinfo remontent bien.

Envoyé de mon Moto G (5S) Plus en utilisant Tapatalk


Avatar de l’utilisateur
noBru77
Timide
Messages : 359
Inscription : 11 oct. 2016, 00:41

Re: [Plugin Tiers] Plugin Téléinfo

Message par noBru77 » 10 déc. 2017, 21:04

benj29 a écrit :
10 déc. 2017, 20:54
Non. Les logs Linux m'indiquent bien que c'est acm. C'est un ftdi le chip interne.
L'usb est par exemple mon rfxcom.

Sauf erreur de ma part. Et les infos du teleinfo remontent bien.

Envoyé de mon Moto G (5S) Plus en utilisant Tapatalk
Mince, j’y ai cru.
Bonne recherche.

eldoctor62
Actif
Messages : 1089
Inscription : 12 nov. 2014, 15:44

Re: [Plugin Tiers] Plugin Téléinfo

Message par eldoctor62 » 10 déc. 2017, 21:47

@ticed35
Hello, quelles nouvelles de la reprise du plug ??
Odroid C2
Razberry / RFXCOM / Teleinfo / MyFox HC2 / ESP8266
--
Just Have Fun

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers] Plugin Téléinfo

Message par benj29 » 11 déc. 2017, 19:07

Malgré la modification proposée (switch/case), toujours 500 : Internal Server Error...

Suis-je le seul ?

nykiizz
Timide
Messages : 11
Inscription : 19 déc. 2015, 11:53

Re: [Plugin Tiers] Plugin Téléinfo

Message par nykiizz » 12 déc. 2017, 21:35

Bonsoir,
Personne a une petite idée pour mes problèmes de stats qui disparaissent dans le panel : viewtopic.php?f=149&t=614&start=3200#p554769 ?
Merci

bouboun59
Timide
Messages : 4
Inscription : 09 déc. 2017, 10:18

Re: [Plugin Tiers] Plugin Téléinfo

Message par bouboun59 » 14 déc. 2017, 16:15

bouboun59 a écrit :
09 déc. 2017, 11:11
Bonjour,

Je viens d'installer le module MODEM GCE USB, avec mon JEEDOM, j'ai des EROR FRAME et au niveau debug voici les infos :
On dirait que la teleinfo est activée mais que le modem n'arrive pas à les lire correctement.

2017-12-09 08:21:37,586 INFO Try to close Teleinfo modem
2017-12-09 08:21:37,588 INFO Teleinfo modem successfully closed
2017-12-09 09:51:22,715 INFO Try to open Teleinfo modem /dev/ttyUSB0 with speed 1200
2017-12-09 09:51:22,720 INFO Teleinfo modem successfully opened
2017-12-09 09:51:24,728 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:25,431 ERROR * New frame after corrupted
2017-12-09 09:51:25,583 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:26,239 ERROR * New frame after corrupted
2017-12-09 09:51:27,626 ERROR ** FRAME CORRUPTED !
2017-12-09 09:51:27,627 ERROR * New frame after corrupted
2017-12-09 09:51:29,764 ERROR ** FRAME CORRUPTED !


et si je fais des test en console dirextement je vois passer des infos mais pas très comprehensible

root@CENTRALDOMO:/home/pi# cat /dev/ttyUSB0 > test.txt
^C
root@CENTRALDOMO:/home/pi# more test.txt
+{z.jjN[S'7['[jlu.55
-3[J
K"KjSQq8tsu7PQc#rrjE 002 Y-
JADC"OjMOTDETQj$400100 GHHTHC A ,IMAX 041 D
[^j&B5js[s6796 4j\M<L(nu.55::3NhRk!E%g
XCHPP563939342$=
PUEC!HP.. P
IIN[T p0YT/s#yS(vhLZ6hQc!)STR<4P4kc!jOUE
00"cMB
NOPTARIF jC.. <ADCO"04y501067629`H
KSOUWC 47 ?
H8)<$L[W&7_'[l^Lj3J
KZ"KjWEUC HR.> c!9={e--More--(32%)
K5
IMAXP4lh+L

j-
C=L(jguG 000100!C
['S6&W3k#5OPTARIF$H8IAD9jS7uUSC!45 ?
HGHC 0753896 4
LCHPP16;91;74z 9g!*uqxtSTI ^&Tg}EAY
ISPvhLmlp#c!+RTZ4(hkc!u.GUGE
[
$8)84L[M86296 t+?jW7uW=5NADCo$04950107629 $c!]h:9)8I
lKd( 163N6N&_4'L EW7
rSP~P41P"y.P$c%srjEA]s
HHPhG A$,
.. <MOTDETaT$405LP:lxJADCO 0t9501067Nx$LhE%gC
ISOUScP45 ?
HCXC 0753866=6 4
HCHP`163919&[4'EW7L
UK ^L(.^n]:&'nhUL(.*
"1 D
LHp$C A ,
MOT"ETAT`028100 K-A
S[S3O:#k[5+3J+{jS5jj\I)^LjVuN55ADCO$049505y6c!e%Wg
K"#[kSDEW7
Grk'njEE2 Z
iM`\ 441@E
HHQ$C A .-
MOTDMjAT 04508 C
[*ADC
067669(H
ORTARIFPhK.."<
IS.55#+



Avez vous une idée ?
Bon finalement c'est le module gce qui merde sous jeedom +raspi.

j'ai pris un teleinfo de https://www.cartelectronic.fr/blog/?p=956
Reçu en Windows j ai du mettre le template linux.

C'est ok, mais je recois pas le PTEC tjrs valeur 0 pourrant en debug ca passe bien ?

Le plugin teleinfo jeedom est buggué ?

cordialement

Avatar de l’utilisateur
sheep300
Actif
Messages : 1202
Inscription : 27 mai 2015, 23:27
Localisation : la rochelle

Re: [Plugin Tiers] Plugin Téléinfo

Message par sheep300 » 14 déc. 2017, 16:40

personnellement concernant le PTEC chez moi c'est complètement aléatoire du coup j'ai arrêté ses bêtises et j'étais obligé de passer sur un agenda qui me change la valeur à la main c'est pas précis mais au moins il y a le distinguo heure pleine heure creuse
Je pense qu'il doit y avoir un bug effectivement dans le plugin quelque part

Envoyé de mon Moto G (4) en utilisant Tapatalk

Damien

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers] Plugin Téléinfo

Message par benj29 » 14 déc. 2017, 16:56

Tu peux me détailler ton approche stp ?
J'utilise déjà un PTEC virtuel pour info conso (cf post dédié).

Mais je n'ai pas compris là comment tu fais surtout pour remplacer ton PTEC de téléinfo, car c'est une commande, qu'on ne peut pas changer pour le plugin sauf erreur de ma part.

Totophe
Timide
Messages : 73
Inscription : 02 févr. 2017, 20:19
Localisation : Sartrouville

Re: [Plugin Tiers] Plugin Téléinfo

Message par Totophe » 14 déc. 2017, 20:57

Il y a un certain temps j'avais aussi le PTEC a 0

a cette époque j'avais crée un variable que je mettais a jour au heure de bascule via un scénario.
et puis un jour le PTEC remontait bien.
enfin bien .... c'est vite dit, des fois il se mettait a jour qu'une heure plus tard ( j'avais mis une alerte pour m'avertir du non bascule ).

La je viens de me créer un scénario qui compare les index et mets a jour suivant l'évolution.
Je vais le laisser en test pour voir

Avatar de l’utilisateur
domoggvad
Actif
Messages : 1880
Inscription : 29 avr. 2015, 16:02
Localisation : Seine-Saint-Denis (Villepinte)

Re: [Plugin Tiers] Plugin Téléinfo

Message par domoggvad » 15 déc. 2017, 17:31

luciole a écrit :Personnellement, j'ai récupéré la bonne information du PTEC en modifiant le fichier /var/www/html/plugins/teleinfo/core/class/teleinfo.class.php.

La modification consiste à ajouter un case dans le switch pour gérer ce champ. De là, je l'ai supprimé et laisser le plugin ajouter le champ automatiquement.

Code : Tout sélectionner

                       switch ($_oKey) {
                                                        case "PAPP":
                                                                $cmd->setDisplay('generic_type','GENERIC_INFO');
                                                                $cmd->setDisplay('icon','<i class=\"fa fa-tachometer\"><\/i>');
                                                                $cmd->setSubType('string');
                                                                break;
                                                        case "OPTARIF":
                                                        case "HHPHC":
                                                        case "PPOT":
                                                        case "PEJP":
                                                        case "PTEC":
                                                                $cmd->setSubType('string');
                                                                $cmd->setDisplay('generic_type','GENERIC_INFO');
                                                                break;
                                                        case "DEMAIN":
                                                                $cmd->setSubType('string');
                                                                $cmd->setDisplay('generic_type','GENERIC_INFO');
                                                                break;
                                                        default:
                                                                $cmd->setSubType('numeric');
                                                                $cmd->setDisplay('generic_type','GENERIC_INFO');
                                                        break;  
                                                }
                                                
Bonsoir luciole
Aurais tu une copie de ton fichier teleinfo.class.php?
Merci

Envoyé de mon HUAWEI VNS-L31 en utilisant Tapatalk

3 Odroid C2 (Prod - secours - test) Z83 tests: rfxcom + Z-wave- Clims DAIKIN - espeasy - thekey - Xiaomi - Telinfo - broadlink... widget V3 :viewtopic.php?f=29&t=44183&p=717810#p717810

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers] Plugin Téléinfo

Message par benj29 » 16 déc. 2017, 00:43

J'ai fait le changement en question, voilà plusieurs jours.

De mon côté, toujours sur la page du plugin :
500 : Internal Server Error

Et un log totalement illisible (je trouve).

Code : Tout sélectionner

Exception in thread Thread-3404:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Terminating...
Exception in thread Thread-23168:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-54354:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-67870:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-67868:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-70356:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-77954:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-88926:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 293, in run
frameCsv = self.read()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 175, in read
resp = self._ser.readline()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 278, in run
self.open()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 142, in open
raise TeleinfoException(error)
NameError: global name 'error' is not defined
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 278, in run
self.open()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 142, in open
raise TeleinfoException(error)
NameError: global name 'error' is not defined
[2017-12-08 14:35:20][ERROR] : Impossible de lancer le démon téléinfo, vérifiez l'ip
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 278, in run
self.open()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 142, in open
raise TeleinfoException(error)
NameError: global name 'error' is not defined
[2017-12-08 14:40:21][ERROR] : Impossible de lancer le démon téléinfo, vérifiez l'ip
Terminating...
PHP Fatal error:  Class 'teleinfo' not found in /var/www/html/plugins/teleinfo/core/php/jeeTeleinfo.php on line 56
Terminating...
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 293, in run
frameCsv = self.read()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 202, in read
resp = self._ser.readline()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 278, in run
self.open()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 142, in open
raise TeleinfoException(error)
NameError: global name 'error' is not defined
[2017-12-08 16:05:41][ERROR] : Impossible de lancer le démon téléinfo, vérifiez l'ip
Exception in thread Thread-3502:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Terminating...
Exception in thread Thread-6632:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Terminating...
Exception in thread Thread-25716:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-32120:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-33366:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-33368:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-43482:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-70372:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-73294:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-75766:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-94062:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-99632:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 293, in run
frameCsv = self.read()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 175, in read
resp = self._ser.readline()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 428, in <module>
teleinfo.run()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 278, in run
self.open()
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 142, in open
raise TeleinfoException(error)
NameError: global name 'error' is not defined
[2017-12-14 15:10:22][ERROR] : Impossible de lancer le démon téléinfo, vérifiez l'ip
Exception in thread Thread-27750:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Exception in thread Thread-38430:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 266, in timer_callback
if self.process.poll() is None:
AttributeError: 'NoneType' object has no attribute 'poll'
Avec des erreurs...

Et les dépendances sont à jour.

Code : Tout sélectionner

Lancement de l'installation des dépendances Téléinfo
Reading package lists...
Building dependency tree...
Reading state information...
python-ftdi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
python-serial is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Everything is successfully installed!

Avatar de l’utilisateur
jsam
Timide
Messages : 33
Inscription : 04 nov. 2017, 15:58

Re: [Plugin Tiers] Plugin Téléinfo

Message par jsam » 16 déc. 2017, 22:38

Bonsoir,

Quelqu'un a réussi à faire l'installation des dépendances de ce plugin récemment avec Jeedom version 3.1.7 ?

Moi j'ai 2 erreurs "E: Unable to locate package python-ftdi" et "sed: can't read /etc/inittab: No such file or directory"

pour la première erreur je fais sudo apt-get install python-ftdi1

Des erreurs également dans le code.

ensuite un pb d'indentation dans "/var/www/html/plugins/teleinfo/ressources/teleinfo_2_cpt.py" en ligne 433
ensuite un pb d'import ftdi que je remplace par import ftdi1 as ftdi en ligne 42

et après encore d'autres problèmes.

Bref le plugin semble a l'abandon :(
Rasp pi 3 + Jeedom 3.1.7 + google home + Freebox
XIAOMI : 2 gateway Xiaomi + 15 capteurs + 1 prise connectée + 1 air purifier + 2 détecteurs fumée
Z WAVE : sirène ZM1601 + 1 Fibaro FGS212
DIVERS : onduleur APC ES700 + 2 modules sonoff POW chauffage

Avatar de l’utilisateur
jsam
Timide
Messages : 33
Inscription : 04 nov. 2017, 15:58

Re: [Plugin Tiers] Plugin Téléinfo

Message par jsam » 19 déc. 2017, 09:08

jsam a écrit :
16 déc. 2017, 22:38
Bonsoir,

Quelqu'un a réussi à faire l'installation des dépendances de ce plugin récemment avec Jeedom version 3.1.7 ?

Moi j'ai 2 erreurs "E: Unable to locate package python-ftdi" et "sed: can't read /etc/inittab: No such file or directory"

pour la première erreur je fais sudo apt-get install python-ftdi1

Des erreurs également dans le code.

ensuite un pb d'indentation dans "/var/www/html/plugins/teleinfo/ressources/teleinfo_2_cpt.py" en ligne 433
ensuite un pb d'import ftdi que je remplace par import ftdi1 as ftdi en ligne 42

et après encore d'autres problèmes.

Bref le plugin semble a l'abandon :(
Bon j'ai passé une dizaine d'heures hier (cramé un jour de RTT) et j'ai remis en état de marche la version 2 compteurs sous Stretch et jeedom 3.1.7

C'est du quick and dirty mais cela semble fonctionner.

Le problème #1 vient du fait que la version 2 compteurs utilisait la lib Ftdi qui semble obsolète et remplacée par la lib Ftdi1 et l'API a un peu changé entre les 2 versions de la lib.

Je posterai sur cette fil les modifications que j'ai faites.
Rasp pi 3 + Jeedom 3.1.7 + google home + Freebox
XIAOMI : 2 gateway Xiaomi + 15 capteurs + 1 prise connectée + 1 air purifier + 2 détecteurs fumée
Z WAVE : sirène ZM1601 + 1 Fibaro FGS212
DIVERS : onduleur APC ES700 + 2 modules sonoff POW chauffage


Répondre

Revenir vers « [Catégorie] Energie »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 21 invités