Totalement nouveau avec Jeedom, je viens d’installer le plugin teleinfo, mais le Demon ne se lance pas.
Je suis en train de passer de Domoticz à Jeedom, cela fonctionnait avec Domo.
Si quelqu’un peut m’aider ce serai top!
merci
Informations Jeedom
Core : 4.4.19 (master)
DNS Jeedom : non
Plugin : Téléinfo
Version : 2024-08-27 08:04:00 (stable)
Statut Démon : Stoppé - (2024-12-08 18:30:18)
Informations complémentaires
OS: raspbian 11 on RPI 3 B ; PHP: 7.4.33 ; Python: 3.9.2
teleinfo: version 4.8.7 ; cmds: 0
File "/var/www/html/plugins/teleinfo/ressources/venv/lib/python3.9/site-packages/serial/serialutil.py", line 244, in __init__
self.open()
File "/var/www/html/plugins/teleinfo/ressources/venv/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttys0: [Errno 2] No such file or directory: '/dev/ttys0'
[2024-12-08 20:15:05] INFO : MODEM------ Shutdown
[2024-12-08 20:15:05] INFO : Removing PID file /tmp/jeedom/teleinfo/teleinfo_conso.pid
[2024-12-08 20:15:06] DEBUG : LoopNetServer Thread stopped
[2024-12-08 20:15:06] DEBUG : Exit 0
Error:
'str' object has no attribute 'readline'
[2024-12-08 20:20:05] INFO : MODEM------Start teleinfod
[2024-12-08 20:20:05] INFO : MODEM------ Cycle Sommeil : 0.5
[2024-12-08 20:20:05] INFO : MODEM------ Socket port : 55062
[2024-12-08 20:20:05] INFO : MODEM------ Socket host : 127.0.0.1
[2024-12-08 20:20:05] INFO : MODEM------ Log level : info
[2024-12-08 20:20:05] INFO : MODEM------ Callback : http://127.0.0.1:80/plugins/teleinfo/core/php/jeeTeleinfo.php
[2024-12-08 20:20:05] INFO : MODEM------ Vitesse : 9600
[2024-12-08 20:20:05] INFO : MODEM------ Apikey : q7tNhCWGu7H5dajKZT8hWHLjNwxQH2iRhg4lRluBvZZMEGyLuxu8lqe9JflpHueR
[2024-12-08 20:20:05] INFO : MODEM------ Cycle : 0.3
[2024-12-08 20:20:05] INFO : MODEM------ Port : /dev/ttys0
[2024-12-08 20:20:05] INFO : MODEM------ Type : conso
[2024-12-08 20:20:05] INFO : MODEM------ Mode : standard
[2024-12-08 20:20:05] INFO : MODEM------ Pid File : /tmp/jeedom/teleinfo/teleinfo_conso.pid
[2024-12-08 20:20:05] INFO : MODEM------ Start listening...
[2024-12-08 20:20:05] INFO : MODEM------ Preparing Teleinfo...
[2024-12-08 20:20:05] INFO : MODEM------ RUN
[2024-12-08 20:20:05] INFO : MODEM------ OPEN CONNECTION
[2024-12-08 20:20:05] ERROR : MODEM------ Error opening Teleinfo modem '/dev/ttys0' : Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/venv/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttys0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/www/html/plugins/teleinfo/ressources/teleinfo.py", line 489, in open
globals.TELEINFO_SERIAL = serial.Serial(globals.port, globals.vitesse, bytesize=7, parity='E', stopbits=1)
File "/var/www/html/plugins/teleinfo/ressources/venv/lib/python3.9/site-packages/serial/serialutil.py", line 244, in __init__
self.open()
File "/var/www/html/plugins/teleinfo/ressources/venv/lib/python3.9/site-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttys0: [Errno 2] No such file or directory: '/dev/ttys0'
[2024-12-08 20:20:05] INFO : MODEM------ Shutdown
[2024-12-08 20:20:05] INFO : Removing PID file /tmp/jeedom/teleinfo/teleinfo_conso.pid
[2024-12-08 20:20:05] DEBUG : LoopNetServer Thread stopped
[2024-12-08 20:20:05] DEBUG : Exit 0
Error:
'str' object has no attribute 'readline'
J’utilise un raspberry PI 3.
Il y a DomoticZ dessus avec le port /dev/serial0 utilisé et celui-ci remonte bien les infos de TIC ( en mode historique)
Je suis passé en mode standard, donc vitesse 9600 sur le port .
Tout cela est bien parametré, le problème vient plus du Démon qui ne demarre pas.
Si c’est utilisé par domotiz, il faut le désactiver pour l’utiliser dans jeedom. Les deux ne peuvent pas utiliser le même appareil en même temps.
Si clé usb, le port en ttyS0 doit être faux.
Si vous donniez toutes les infos sur votre configuration, ce serait plus simple de vous aider, mais c’est pas grave, de mon côté mon jeedom fonctionne.
Je pense que c’est le service Daemons ou démon qui ne se lance pas…
Pour info, j’ai installé un debian 11 tout neuf, sur PI 4 cette fois. Rien d’autre d’installer.
es tu sûr de ton port? Quand tu vas dans réglages/système puis OS/DB puis administration du système et que tu tapes sudo ls -la /dev/ttyS* est ce que tu as bien qq chose en ttyS0? Et avec cette commande tu as quoi comme résultat: sudo ls -la /dev/serial/by-id ? Tu dis que sous DomoticZ c’est le port /dev/serial0 qui est utilisé mais tu paramètres /dev/ttyS0 dans jeedom c’est normal?
Merci pour votre réponse
Sur domo c’etait bien /dev/serial0
Mais ca marche aussi avec ttyS0 (enfin j’ai l’impression)
Quand je tape ta commande avec /dev/serial0 j’ai cela en retour
lrwxrwxrwx 1 root root 5 Dec 8 21:07 /dev/serial0 → ttyS0
Quand je tape la commande avec ttyS0 j’ai cela
crw-rw---- 1 root dialout 4, 64 Dec 8 21:07 /dev/ttyS0
Et cela uniquement sur le raspberry 3 (celui se lequel domo est aussi installé)
Sur le raspebbery 4 (tout neuf), le résultat est systématiquement
ls: cannot access ‹ /dev/serial0 ›: No such file or directory