Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in historic mode: 'b' #26

Open
wkup opened this issue Jan 13, 2024 · 12 comments
Open

Error in historic mode: 'b' #26

wkup opened this issue Jan 13, 2024 · 12 comments

Comments

@wkup
Copy link

wkup commented Jan 13, 2024

Bonjour,

Régulièrement, j'ai des erreurs sur mon Linky TIC dans home assistant.
Il tombe et plus aucune donnée n'est enregistrée.

Les logs que j'ai pu observer sont les suivants :
2024-01-13 15:58:44.307 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b'' 2024-01-13 15:58:44.477 WARNING (SyncWorker_5) [custom_components.linkytic.sensor] /dev/ttyUSB0: ADS device type is unknown: 75

Je suis dans la dernière version (home assistant, linky tic, ...).

Je reboot donc mon rapsberry pi pour retrouver le fonctionnement normal

@hekmon
Copy link
Owner

hekmon commented Jan 13, 2024

Bonjour @wkup ,

La ligne est b'' indique qu'une ligne vide a été lue sur le lien série (ce qui n'est normalement pas attendu). Cela pourrait être lié au lien série en lui même : êtes vous certainement de la qualité de toute la chaine : lien du Linky au module USB, le module TIC/USB en lui même et le câble USB jusqu'à l'ordinateur en lui même ? Voir #9 et #11.

Si après cela plus rien n'est lu, je pencherai pour le module TIC en lui même qui semble crasher. Un reboot de votre raspberry reinitialise le module TIC je pense d'où la correction.

Une fois le problème rencontré, que lisez vous en utilisant les commandes indiquées dans le readme sur le lien série ? (utilisez les après avoir arrêter Home Assistant pour qu'il libère le lien série).

@wkup
Copy link
Author

wkup commented Jan 14, 2024

Merci beaucoup pour la réactivité et la clarté des réponses.

Pour l'ensemble de la chaîne, je suis sûr de la qualité : lien Linky-USB, module TIC me semble bon aussi, et le câble USB aussi.

Un peu plus de logs depuis que j'ai mis en DEBUG :

2024-01-14 11:01:51.602 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for IINST: executing
2024-01-14 11:01:51.602 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new IINST data and user has activated real time: scheduling ha update
2024-01-14 11:01:51.607 DEBUG (SyncWorker_0) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved IINST value from serial controller: '000'
2024-01-14 11:01:51.629 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:51.629 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:51.730 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IMAX 090 H\n'
2024-01-14 11:01:51.731 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:51.731 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IMAX -> {'value': '090', 'timestamp': None}
2024-01-14 11:01:51.758 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:51.759 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:51.879 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PAPP 00160 (\n'
2024-01-14 11:01:51.879 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:51.879 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PAPP -> {'value': '00160', 'timestamp': None}
2024-01-14 11:01:51.879 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for PAPP: executing
2024-01-14 11:01:51.880 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new PAPP data and user has activated real time: scheduling ha update
2024-01-14 11:01:51.882 DEBUG (SyncWorker_10) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved PAPP value from serial controller: '00160'
2024-01-14 11:01:51.906 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:51.906 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:51.998 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'HHPHC A ,\n'
2024-01-14 11:01:51.999 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:51.999 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: HHPHC -> {'value': 'A', 'timestamp': None}
2024-01-14 11:01:52.026 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:52.026 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:52.192 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'MOTDETAT 000000 B\n'
2024-01-14 11:01:52.193 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:52.193 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: MOTDETAT -> {'value': '000000', 'timestamp': None}
2024-01-14 11:01:52.238 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\x02\n'
2024-01-14 11:01:52.238 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:52.422 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ADCO ************* Z\n'
2024-01-14 11:01:52.422 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:52.422 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ADCO -> {'value': '*************', 'timestamp': None}
2024-01-14 11:01:52.449 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:52.450 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:52.587 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'OPTARIF BBR( S\n'
2024-01-14 11:01:52.588 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:52.588 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: OPTARIF -> {'value': 'BBR(', 'timestamp': None}
2024-01-14 11:01:52.615 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:52.615 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:52.726 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ISOUSC 30 9\n'
2024-01-14 11:01:52.726 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:52.727 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ISOUSC -> {'value': '30', 'timestamp': None}
2024-01-14 11:01:52.754 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:52.755 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:52.939 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJB 008572588 H\n'
2024-01-14 11:01:52.939 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:52.940 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJB -> {'value': '008572588', 'timestamp': None}
2024-01-14 11:01:52.967 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:52.967 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:53.152 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJB 010653188 J\n'
2024-01-14 11:01:53.152 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:53.153 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJB -> {'value': '010653188', 'timestamp': None}
2024-01-14 11:01:53.179 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:53.179 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:53.364 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJW 000024039 D\n'
2024-01-14 11:01:53.365 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:53.365 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJW -> {'value': '000024039', 'timestamp': None}
2024-01-14 11:01:53.392 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:53.392 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:53.577 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJW 000018664 X\n'
2024-01-14 11:01:53.577 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:53.577 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJW -> {'value': '000018664', 'timestamp': None}
2024-01-14 11:01:53.604 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:53.604 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:53.789 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJR 000024898 L\n'
2024-01-14 11:01:53.789 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:53.790 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJR -> {'value': '000024898', 'timestamp': None}
2024-01-14 11:01:53.818 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:53.818 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.003 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJR 000012849 R\n'
2024-01-14 11:01:54.003 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.004 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJR -> {'value': '000012849', 'timestamp': None}
2024-01-14 11:01:54.029 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.030 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.140 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PTEC HPJB P\n'
2024-01-14 11:01:54.141 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.141 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PTEC -> {'value': 'HPJB', 'timestamp': None}
2024-01-14 11:01:54.168 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.168 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.297 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'DEMAIN ---- "\n'
2024-01-14 11:01:54.297 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.298 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: DEMAIN -> {'value': '----', 'timestamp': None}
2024-01-14 11:01:54.326 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.326 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.437 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IINST 000 W\n'
2024-01-14 11:01:54.437 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.438 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IINST -> {'value': '000', 'timestamp': None}
2024-01-14 11:01:54.438 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for IINST: executing
2024-01-14 11:01:54.438 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new IINST data and user has activated real time: scheduling ha update
2024-01-14 11:01:54.442 DEBUG (SyncWorker_4) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved IINST value from serial controller: '000'
2024-01-14 11:01:54.464 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.464 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.566 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IMAX 090 H\n'
2024-01-14 11:01:54.567 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.567 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IMAX -> {'value': '090', 'timestamp': None}
2024-01-14 11:01:54.593 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.593 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.649 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved ADCO value from serial controller: '****************'
2024-01-14 11:01:54.650 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: parsing ADS: **************
2024-01-14 11:01:54.650 WARNING (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: ADS device type is unknown: 75
2024-01-14 11:01:54.650 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: parsed ADS: {'constructeur': 'SAGEM / SAGEMCOM (81)', 'année de construction': '2018', "type de l'appareil": 'Inconnu (75)', "matricule de l'appareil": '876880'}
2024-01-14 11:01:54.652 DEBUG (SyncWorker_2) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved OPTARIF value from serial controller: 'BBR('
2024-01-14 11:01:54.655 DEBUG (SyncWorker_6) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved ISOUSC value from serial controller: '30'
2024-01-14 11:01:54.662 DEBUG (SyncWorker_11) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BASE value from serial controller: None
2024-01-14 11:01:54.666 DEBUG (SyncWorker_8) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved HCHC value from serial controller: None
2024-01-14 11:01:54.669 DEBUG (SyncWorker_1) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved HCHP value from serial controller: None
2024-01-14 11:01:54.671 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved EJPHN value from serial controller: None
2024-01-14 11:01:54.674 DEBUG (SyncWorker_0) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved EJPHPM value from serial controller: None
2024-01-14 11:01:54.676 DEBUG (SyncWorker_10) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHCJB value from serial controller: '008572588'
2024-01-14 11:01:54.678 DEBUG (SyncWorker_11) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHPJB value from serial controller: '010653188'
2024-01-14 11:01:54.682 DEBUG (SyncWorker_4) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHCJW value from serial controller: '000024039'
2024-01-14 11:01:54.683 DEBUG (SyncWorker_9) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHPJW value from serial controller: '000018664'
2024-01-14 11:01:54.684 DEBUG (SyncWorker_2) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHCJR value from serial controller: '000024898'
2024-01-14 11:01:54.687 DEBUG (SyncWorker_5) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved BBRHPJR value from serial controller: '000012849'
2024-01-14 11:01:54.689 DEBUG (SyncWorker_6) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved PEJP value from serial controller: None
2024-01-14 11:01:54.690 DEBUG (SyncWorker_3) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved PTEC value from serial controller: 'HPJB'
2024-01-14 11:01:54.692 DEBUG (SyncWorker_4) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved DEMAIN value from serial controller: '----'
2024-01-14 11:01:54.693 DEBUG (SyncWorker_1) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved ADPS value from serial controller: None
2024-01-14 11:01:54.695 DEBUG (SyncWorker_9) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved IMAX value from serial controller: '090'
2024-01-14 11:01:54.713 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PAPP 00160 (\n'
2024-01-14 11:01:54.713 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.713 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PAPP -> {'value': '00160', 'timestamp': None}
2024-01-14 11:01:54.713 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for PAPP: executing
2024-01-14 11:01:54.713 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new PAPP data and user has activated real time: scheduling ha update
2024-01-14 11:01:54.716 DEBUG (SyncWorker_2) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved PAPP value from serial controller: '00160'
2024-01-14 11:01:54.741 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.741 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:54.833 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'HHPHC A ,\n'
2024-01-14 11:01:54.834 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:54.834 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: HHPHC -> {'value': 'A', 'timestamp': None}
2024-01-14 11:01:54.861 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:54.861 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.027 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'MOTDETAT 000000 B\n'
2024-01-14 11:01:55.027 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.028 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: MOTDETAT -> {'value': '000000', 'timestamp': None}
2024-01-14 11:01:55.072 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\x02\n'
2024-01-14 11:01:55.073 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.257 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ADCO ************** Z\n'
2024-01-14 11:01:55.257 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.257 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ADCO -> {'value': '***************', 'timestamp': None}
2024-01-14 11:01:55.284 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:55.284 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.422 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'OPTARIF BBR( S\n'
2024-01-14 11:01:55.423 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.423 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: OPTARIF -> {'value': 'BBR(', 'timestamp': None}
2024-01-14 11:01:55.450 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:55.450 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.561 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ISOUSC 30 9\n'
2024-01-14 11:01:55.561 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.561 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ISOUSC -> {'value': '30', 'timestamp': None}
2024-01-14 11:01:55.589 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:55.590 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.774 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJB 008572588 H\n'
2024-01-14 11:01:55.774 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.774 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJB -> {'value': '008572588', 'timestamp': None}
2024-01-14 11:01:55.802 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:55.802 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:55.986 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJB 010653188 J\n'
2024-01-14 11:01:55.987 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:55.987 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJB -> {'value': '010653188', 'timestamp': None}
2024-01-14 11:01:56.014 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:56.014 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:56.199 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJW 000024039 D\n'
2024-01-14 11:01:56.199 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:56.199 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJW -> {'value': '000024039', 'timestamp': None}
2024-01-14 11:01:56.227 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:56.227 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:56.411 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJW 000018664 X\n'
2024-01-14 11:01:56.412 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:56.412 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJW -> {'value': '000018664', 'timestamp': None}
2024-01-14 11:01:56.439 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:56.439 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:56.625 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJR 000024898 L\n'
2024-01-14 11:01:56.625 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:56.626 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJR -> {'value': '000024898', 'timestamp': None}
2024-01-14 11:01:56.651 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:56.652 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:56.836 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJR 000012849 R\n'
2024-01-14 11:01:56.837 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:56.837 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJR -> {'value': '000012849', 'timestamp': None}
2024-01-14 11:01:56.863 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:56.863 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:56.974 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PTEC HPJB P\n'
2024-01-14 11:01:56.975 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:56.975 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PTEC -> {'value': 'HPJB', 'timestamp': None}
2024-01-14 11:01:57.002 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.003 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.132 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'DEMAIN ---- "\n'
2024-01-14 11:01:57.132 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.132 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: DEMAIN -> {'value': '----', 'timestamp': None}
2024-01-14 11:01:57.161 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.161 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.272 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IINST 000 W\n'
2024-01-14 11:01:57.272 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.272 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IINST -> {'value': '000', 'timestamp': None}
2024-01-14 11:01:57.272 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for IINST: executing
2024-01-14 11:01:57.273 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new IINST data and user has activated real time: scheduling ha update
2024-01-14 11:01:57.278 DEBUG (SyncWorker_11) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved IINST value from serial controller: '000'
2024-01-14 11:01:57.299 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.299 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.401 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IMAX 090 H\n'
2024-01-14 11:01:57.401 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.402 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IMAX -> {'value': '090', 'timestamp': None}
2024-01-14 11:01:57.428 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.429 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.548 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PAPP 00160 (\n'
2024-01-14 11:01:57.549 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.549 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PAPP -> {'value': '00160', 'timestamp': None}
2024-01-14 11:01:57.549 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for PAPP: executing
2024-01-14 11:01:57.550 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new PAPP data and user has activated real time: scheduling ha update
2024-01-14 11:01:57.556 DEBUG (SyncWorker_4) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved PAPP value from serial controller: '00160'
2024-01-14 11:01:57.576 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.576 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.668 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'HHPHC A ,\n'
2024-01-14 11:01:57.669 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.669 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: HHPHC -> {'value': 'A', 'timestamp': None}
2024-01-14 11:01:57.696 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:57.696 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:57.862 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'MOTDETAT 000000 B\n'
2024-01-14 11:01:57.862 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:57.863 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: MOTDETAT -> {'value': '000000', 'timestamp': None}
2024-01-14 11:01:57.907 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\x02\n'
2024-01-14 11:01:57.908 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:58.092 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ADCO ************** Z\n'
2024-01-14 11:01:58.092 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:58.093 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ADCO -> {'value': '**************', 'timestamp': None}
2024-01-14 11:01:58.119 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:58.119 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:58.258 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'OPTARIF BBR( S\n'
2024-01-14 11:01:58.258 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:58.259 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: OPTARIF -> {'value': 'BBR(', 'timestamp': None}
2024-01-14 11:01:58.285 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:58.285 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:58.396 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'ISOUSC 30 9\n'
2024-01-14 11:01:58.396 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:58.396 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: ISOUSC -> {'value': '30', 'timestamp': None}
2024-01-14 11:01:58.424 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:58.424 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:58.609 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJB 008572588 H\n'
2024-01-14 11:01:58.609 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:58.609 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJB -> {'value': '008572588', 'timestamp': None}
2024-01-14 11:01:58.637 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:58.637 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:58.821 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJB 010653188 J\n'
2024-01-14 11:01:58.821 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:58.822 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJB -> {'value': '010653188', 'timestamp': None}
2024-01-14 11:01:58.849 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:58.850 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.033 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJW 000024039 D\n'
2024-01-14 11:01:59.034 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.034 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJW -> {'value': '000024039', 'timestamp': None}
2024-01-14 11:01:59.062 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.062 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.246 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJW 000018664 X\n'
2024-01-14 11:01:59.247 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.247 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJW -> {'value': '000018664', 'timestamp': None}
2024-01-14 11:01:59.274 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.274 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.459 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJR 000024898 L\n'
2024-01-14 11:01:59.459 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.460 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHCJR -> {'value': '000024898', 'timestamp': None}
2024-01-14 11:01:59.486 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.487 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.672 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJR 000012849 R\n'
2024-01-14 11:01:59.673 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.673 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: BBRHPJR -> {'value': '000012849', 'timestamp': None}
2024-01-14 11:01:59.698 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.699 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.809 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'PTEC HPJB P\n'
2024-01-14 11:01:59.810 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.810 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: PTEC -> {'value': 'HPJB', 'timestamp': None}
2024-01-14 11:01:59.837 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.838 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:01:59.967 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'DEMAIN ---- "\n'
2024-01-14 11:01:59.967 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:01:59.967 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: DEMAIN -> {'value': '----', 'timestamp': None}
2024-01-14 11:01:59.996 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:01:59.996 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-01-14 11:02:00.106 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'IINST 000 W\n'
2024-01-14 11:02:00.107 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line checksum is valid
2024-01-14 11:02:00.107 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] read the following values: IINST -> {'value': '000', 'timestamp': None}
2024-01-14 11:02:00.107 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] We have a notification callback for IINST: executing
2024-01-14 11:02:00.107 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.sensor] received a push notification for new IINST data and user has activated real time: scheduling ha update
2024-01-14 11:02:00.110 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: retrieved IINST value from serial controller: '000'
2024-01-14 11:02:00.134 DEBUG (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-01-14 11:02:00.134 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''

@hekmon
Copy link
Owner

hekmon commented Feb 2, 2024

Bonjour,

Désolé pour le délai cette issue m'était complètement sortie de la tête. Effectivement d'après les logs de DEBUG le lien a l'air tout à fait correct et chaque ligne normale arrive à se faire parser correctement. Ici le problème semble venir du fait qu'une ligne vide est envoyée entre chaque ligne normale : ce n'est pas un comportement que j'ai eu l'occasion de voir jusqu'à maintenant.

Un élément me met la puce à l'oreille :

2024-01-14 11:01:54.650 DEBUG (SyncWorker_7) [custom_components.linkytic.sensor] /dev/ttyUSB0: parsed ADS: {'constructeur': 'SAGEM / SAGEMCOM (81)', 'année de construction': '2018', "type de l'appareil": 'Inconnu (75)', "matricule de l'appareil": '876880'}

Quel compteur avez-vous ? J'ai l'impression qu'il s'agit d'un pre Linky avec TIC, ce qui pourrait expliquer le comportement inhabituel. Avez-vous un manuel de ce dernier qui pourrait nous indiquer le type de l'appareil (75). Je pourrais ensuite l'ajouter à la liste (comme pour #21) et rajouter une rustine de lecture spécifiquement pour cet appareil.

@hekmon
Copy link
Owner

hekmon commented Feb 2, 2024

Correction faite, le 75 est bien un Linky, la détection a normalement été corrigée dans la PR #19 . Quelle version du module avez-vous ?

@Vlyan26
Copy link

Vlyan26 commented Feb 11, 2024

Bonjour,
je profite de cette issue car depuis quelques mises à jour, j'ai aussi des logs avec une erreur similaire.
Dans mon cas ça ne semble pas poser de problème, mais peut-être car je n'utilise pas les variables concernées ?
Je ne sais pas si ça peut vous aider mais dans le doute je vous met mes logs ci-dessous.

Ma config

Home Assistant
- Core 2024.2.1
- Supervisor 2024.01.1
- Operating System 11.5
- Interface utilisateur 20240207.1

Linky TIC - Support Linky dans Home Assistant
- v2.0.7 (live)

Linky
- Compteur monophasé 60 A généralisation Linky G3 - arrivée puissance haute par SAGEM / SAGEMCOM
- Mode Historique
- Edf Tempo

Logs

2024-02-09 15:43:09.466 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b'PAP'
2024-02-09 15:43:09.472 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to validate the checksum of line 'b'P 01900 +'': P -> 01900 (None) | s1 362 0b101101010 | truncated 42 0b101010 * | computed 74 0b1001010 J | expected 43 0b101011 +
2024-02-10 12:31:07.323 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b'IINS'
2024-02-10 12:31:08.325 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-02-10 12:31:09.326 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-02-10 12:31:10.326 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-02-10 12:31:11.328 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-02-10 12:31:11.488 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to validate the checksum of line 'b'T 016 ^'': T -> 016 (None) | s1 267 0b100001011 | truncated 11 0b1011 � | computed 43 0b101011 + | expected 94 0b1011110 ^
2024-02-10 14:58:02.529 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b'BB'
2024-02-10 14:58:02.561 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to validate the checksum of line 'b'RHPJW 000455490 Z'': RHPJW -> 000455490 (None) | s1 886 0b1101110110 | truncated 54 0b110110 6 | computed 86 0b1010110 V | expected 90 0b1011010 Z
2024-02-11 12:06:04.670 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b'OPTAR'
2024-02-11 12:06:08.718 ERROR (LinkyTIC for /dev/ttyUSB0) [custom_components.linkytic.serial_reader] Failed to validate the checksum of line 'b'IF BBR( S'': IF -> BBR( (None) | s1 429 0b110101101 | truncated 45 0b101101 - | computed 77 0b1001101 M | expected 83 0b1010011 S

@wkup
Copy link
Author

wkup commented Feb 15, 2024

Bonjour,

J'ai la version 2.0.7

@hekmon
Copy link
Owner

hekmon commented Feb 16, 2024

Bonjour @Vlyan26 ,

Votre cas est différent, il s'agit d'erreur de lecture sur le lien série et non un problème de code. Je vous redirige vers les issues #9 et #11 comme indiqué dans ma première réponse à ce thread.

Gardons cette issue focalisée sur l'issue de @wkup qui est singulière : aucune erreur de lecteur sur les lignes à proprement parler mais la présence de lignes vides entre les lignes valides. C'est la première fois que je vois cela.

Concernant l'ADS 75 non reconnu c'est effectivement un bug qui a été corrigé depuis mais dont le fix est uniquement présent sur la v3 beta pour le moment.

Le vrai problème restant étant ces lignes vides. Le compteur aurait été un prelinky j'y aurai pu y voir une raison suffisante mais le fait que vous ayez un linky "normal" m'interpelle quelque peu.

La correction sera certainement de rajouter un saut lors de la lecture d'une ligne vide mais avant cela j'aurai aimé comprendre pourquoi est-ce que vous en avez.

Pourriez-vous ouvrir le lien série hors Home Assistant, comme indiqué dans le README et me recopier ici la sortie ?

@EMqA44
Copy link

EMqA44 commented Feb 19, 2024

Bonjour. J'ai mis en service récemment mon Micro Teleinfo V3.0 avec votre intégration et je rencontre un probleme qui semble s'apparenter à celui-ci.
Je suis avec un Linky, contrat Tempo, mode historique. cela semble toucher spécifiquement l'index HP blanc (bien visible aujourd'hui) avec le message suivant.

Cette erreur provient d'une intégration personnalisée

Logger: custom_components.linkytic.serial_reader
Source: custom_components/linkytic/serial_reader.py:295
Integration: Linky TIC (documentation, issues)
First occurred: 20:48:35 (3943 occurrences)
Last logged: 20:59:23

Failed to parse the following line (2 fields detected) in historic mode: b'946 ]'
Failed to parse the following line (2 fields detected) in historic mode: b'BBRHPJW 00004'
Failed to parse the following line (2 fields detected) in historic mode: b'7946 ]'
Failed to parse the following line (2 fields detected) in historic mode: b'BBRHPJW 000047'
Failed to parse the following line (1 fields detected) in historic mode: b''

l'index HP blanc se fige, parfois reprend et se fige à nouveau. Pas de souci sur un jour bleu comme hier. Même comporte ment en v2.0.7 ou avec la dernière beta. Sur un domoticz qui tourne toujours sur le même lien avec un module cartelectronique, la remontée d'info se fait comme attendu .
IMG_0079
IMG_0078

en complément, ces éléments du journal

2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: PAPP -> {'value': '00260', 'timestamp': None}
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] We have a notification callback for PAPP: executing
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.sensor] received a push notification for new PAPP data but user has not activated real time: skipping
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'HHPHC A ,\r\n'
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:33.610 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: HHPHC -> {'value': 'A', 'timestamp': None}
2024-02-19 20:43:34.783 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'MOTDETAT 000000 B\r\x03\x02'
2024-02-19 20:43:34.783 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.783 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: MOTDETAT -> {'value': '000000', 'timestamp': None}
2024-02-19 20:43:34.853 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 20:43:34.853 ERROR (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] Failed to parse the following line (1 fields detected) in historic mode: b''
2024-02-19 20:43:34.854 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'ADCO 032161005388 <\r\n'
2024-02-19 20:43:34.854 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.854 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: ADCO -> {'value': '032161005388', 'timestamp': None}
2024-02-19 20:43:34.854 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] /dev/ttyACM1: parsing ADS: 032161005388
2024-02-19 20:43:34.854 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] /dev/ttyACM1: parsed ADS: {'year': '21', 'registration_number': '005388', 'constructor_code': '03', 'constructor': 'SCHLUMBERGER / ACTARIS / ITRON', 'device_type_code': '61', 'device_type': 'Compteur monophasé 60 A généralisation Linky G3 - arrivée puissance haute'}
2024-02-19 20:43:34.855 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'OPTARIF BBR( S\r\n'
2024-02-19 20:43:34.855 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.855 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: OPTARIF -> {'value': 'BBR(', 'timestamp': None}
2024-02-19 20:43:34.856 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'ISOUSC 30 9\r\n'
2024-02-19 20:43:34.856 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.856 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: ISOUSC -> {'value': '30', 'timestamp': None}
2024-02-19 20:43:34.857 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJB 004816430 7\r\n'
2024-02-19 20:43:34.857 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.857 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHCJB -> {'value': '004816430', 'timestamp': None}
2024-02-19 20:43:34.858 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJB 000230326 :\r\n'
2024-02-19 20:43:34.858 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.858 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHPJB -> {'value': '000230326', 'timestamp': None}
2024-02-19 20:43:34.858 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJW 000063673 K\r\n'
2024-02-19 20:43:34.859 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:34.859 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHCJW -> {'value': '000063673', 'timestamp': None}
2024-02-19 20:43:35.860 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJW 000047'
2024-02-19 20:43:35.860 ERROR (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] Failed to parse the following line (2 fields detected) in historic mode: b'BBRHPJW 000047'
2024-02-19 20:43:35.927 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'919 ]\r\n'
2024-02-19 20:43:35.927 ERROR (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] Failed to parse the following line (2 fields detected) in historic mode: b'919 ]'
2024-02-19 20:43:35.928 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJR 000036362 A\r\n'
2024-02-19 20:43:35.928 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.928 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHCJR -> {'value': '000036362', 'timestamp': None}
2024-02-19 20:43:35.929 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJR 000022745 N\r\n'
2024-02-19 20:43:35.929 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.929 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHPJR -> {'value': '000022745', 'timestamp': None}
2024-02-19 20:43:35.930 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'PTEC HPJW %\r\n'
2024-02-19 20:43:35.930 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.930 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: PTEC -> {'value': 'HPJW', 'timestamp': None}
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'DEMAIN BLAN K\r\n'
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: DEMAIN -> {'value': 'BLAN', 'timestamp': None}
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'IINST 001 X\r\n'
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: IINST -> {'value': '001', 'timestamp': None}
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] We have a notification callback for IINST: executing
2024-02-19 20:43:35.931 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.sensor] received a push notification for new IINST data but user has not activated real time: skipping
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'IMAX 090 H\r\n'
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: IMAX -> {'value': '090', 'timestamp': None}
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'PAPP 00270 *\r\n'
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: PAPP -> {'value': '00270', 'timestamp': None}
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] We have a notification callback for PAPP: executing
2024-02-19 20:43:35.932 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.sensor] received a push notification for new PAPP data but user has not activated real time: skipping
2024-02-19 20:43:35.933 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'HHPHC A ,\r\n'
2024-02-19 20:43:35.933 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 20:43:35.933 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: HHPHC -> {'value': 'A', 'timestamp': None}

@hekmon
Copy link
Owner

hekmon commented Feb 19, 2024

Bonjour @EMqA44,

Pouvez-vous ouvrir une autre issue s'il vous plait ? Souvent les utilisateurs ont l'impression que ce sont des erreurs semblables quand ce n'est pas le cas : cela complique beaucoup la gestion de l'erreur d'origine de l'issue. Rien ne vous empêche dans la description de votre issue de faire référence à la première (et si c'est effectivement le cas et seulement une fois confirmé, la votre sera fermé et la discussion passera dans celle d'origine qui contiendra déjà un lien vers la votre grace à la référence initiale dans la description) mais il est important de garder 1 issue == 1 remontée ou la gestion des issues à plusieurs sujets devient impossible.

Je peux vous dire à première vue que votre problème n'a rien de semblable à celui de @wkup. Le problème d'origin de cette issue est la lecture continue de ligne vides. De votre côté, certaines de vos lignes séries ne sont pas correctes (pour une raison inconnue) et cela ne semble toucher que l'index (pour une raison tout aussi inconnue). Cela nécessitera discussion et tests, dans sa propre issue. Aussi, les logs debugs que vous avez posté ne portent que sur un passage où il n'y a aucune erreur : ils ne sont pas utiles pour comprendre votre problème. Essayez d'inclure (dans l'issue que vous allez ouvrir !) des logs debug qui contiennent au milieu les erreurs (ce sont les lignes de debug avant et après qui vont permettre d'ajouter du contexte à et du détails à l'erreur.

Merci.

@hekmon
Copy link
Owner

hekmon commented Feb 19, 2024

@Vlyan26

Je viens de m'apercevoir quelque chose avec vos logs : le carrier return \r est absent de vos lignes. Normalement le protocole TIC d'Enedis défini une trame ainsi:

\x02\n[line info]\r\n[line info]\r\x03

La lecture d'une information est donc la suivante: \n[line info]\r

Seulement, la fonction readline du module serial en python ne s'arretant qu'à \n, l'intégration considère qu'une fin de ligne est \r\n et une fin de trame donc \r\x03\x02\n.

Les lignes de debug devraient afficher la ligne complète, c'est à dire finissant par \r\n ou par \r\x03\x02\n (les logs de @Vlyan26 le montrent bien).

Donc je m'étonne de l'absence de \r chez vous. Je me demande si votre module série/USB ne les remplace pas par \n créant ainsi des lignes vides lors du parsing.

Quel module utilisez-vous ?

@Vlyan26
Copy link

Vlyan26 commented Feb 21, 2024

@hekmon
Mon module est un "LIXEE - Compteur TIC sur Rail DIN", dans une vm (vmware), sur un pc sous windows 10.
Par contre je viens de passer en mode standard (avec la beta3), je vais voir comment ça évolue, je vous tiens au courent (peut-être plus sur l'issue lié au mode standard ?).

@wkup
Copy link
Author

wkup commented Mar 24, 2024

Bonjour @Vlyan26 ,

Votre cas est différent, il s'agit d'erreur de lecture sur le lien série et non un problème de code. Je vous redirige vers les issues #9 et #11 comme indiqué dans ma première réponse à ce thread.

Gardons cette issue focalisée sur l'issue de @wkup qui est singulière : aucune erreur de lecteur sur les lignes à proprement parler mais la présence de lignes vides entre les lignes valides. C'est la première fois que je vois cela.

Concernant l'ADS 75 non reconnu c'est effectivement un bug qui a été corrigé depuis mais dont le fix est uniquement présent sur la v3 beta pour le moment.

Le vrai problème restant étant ces lignes vides. Le compteur aurait été un prelinky j'y aurai pu y voir une raison suffisante mais le fait que vous ayez un linky "normal" m'interpelle quelque peu.

La correction sera certainement de rajouter un saut lors de la lecture d'une ligne vide mais avant cela j'aurai aimé comprendre pourquoi est-ce que vous en avez.

Pourriez-vous ouvrir le lien série hors Home Assistant, comme indiqué dans le README et me recopier ici la sortie ?

Voici le contenu de la sortie :

ADCO ******** Z

OPTARIF BBR( S

ISOUSC 30 9

BBRHCJB 008784713 C

BBRHPJB 010838741 J

BBRHCJW 000120826 E

BBRHPJW 000087607 [

BBRHCJR 000082411 =

BBRHPJR 000043683 R

PTEC HPJB P

DEMAIN ---- "

IINST 001 X

IMAX 090 H

PAPP 00300 $

HHPHC A ,

MOTDETAT 000000 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants