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

Failed to parse the following line (2 fields detected) in historic mode #31

Open
EMqA44 opened this issue Feb 19, 2024 · 0 comments
Open

Comments

@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 une erreur récurrente.
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 (39098 occurrences)
Last logged: 22:15:01

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''

J'ai également des logs debug dont certaines lignes sont en ERROR, un peu après les lignes "SyncWorker". J'ai eu le même comportement sous 2.0.7 et sous la dernière beta. La remontée des index est ok sur 2 autres outils en parallèle sur cette même ligne TIC (domoticz + Téléinfo 1 compteur USB et Tasmota + WeMos Teleinfo. J'espère fournir les bonnes infos.

2024-02-19 22:21:41.128 DEBUG (SyncWorker_20) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved ADCO value from serial controller: '032161005388'
2024-02-19 22:21:41.129 DEBUG (SyncWorker_54) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved OPTARIF value from serial controller: 'BBR('
2024-02-19 22:21:41.129 DEBUG (SyncWorker_14) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved ISOUSC value from serial controller: '30'
2024-02-19 22:21:41.130 DEBUG (SyncWorker_62) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BASE value from serial controller: None
2024-02-19 22:21:41.130 DEBUG (SyncWorker_10) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved HCHC value from serial controller: None
2024-02-19 22:21:41.131 DEBUG (SyncWorker_57) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved HCHP value from serial controller: None
2024-02-19 22:21:41.131 DEBUG (SyncWorker_58) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHCJB value from serial controller: '004816430'
2024-02-19 22:21:41.132 DEBUG (SyncWorker_22) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHPJB value from serial controller: '000230326'
2024-02-19 22:21:41.132 DEBUG (SyncWorker_31) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHCJW value from serial controller: '000063719'
2024-02-19 22:21:41.133 DEBUG (SyncWorker_32) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHPJW value from serial controller: '000048113'
2024-02-19 22:21:41.133 DEBUG (SyncWorker_37) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHCJR value from serial controller: '000036362'
2024-02-19 22:21:41.134 DEBUG (SyncWorker_26) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved BBRHPJR value from serial controller: '000022745'
2024-02-19 22:21:41.134 DEBUG (SyncWorker_45) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved PTEC value from serial controller: 'HCJW'
2024-02-19 22:21:41.134 DEBUG (SyncWorker_8) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved DEMAIN value from serial controller: 'BLAN'
2024-02-19 22:21:41.135 DEBUG (SyncWorker_53) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved PAPP value from serial controller: '00270'
2024-02-19 22:21:41.135 DEBUG (SyncWorker_19) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved IINST value from serial controller: '001'
2024-02-19 22:21:41.135 DEBUG (SyncWorker_60) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved ADPS value from serial controller: None
2024-02-19 22:21:41.136 DEBUG (SyncWorker_25) [custom_components.linkytic.sensor] /dev/ttyACM1: retrieved IMAX value from serial controller: '090'
2024-02-19 22:21:41.210 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\x02\n'
2024-02-19 22:21:41.210 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 22:21:41.211 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'ADCO 032161005388 <\n'
2024-02-19 22:21:41.211 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 22:21:41.211 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: ADCO -> {'value': '032161005388', 'timestamp': None}
2024-02-19 22:21:41.211 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] /dev/ttyACM1: parsing ADS: 032161005388
2024-02-19 22:21:41.211 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 22:21:41.211 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 22:21:41.211 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 22:21:41.212 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'OPTARIF BBR( S\n'
2024-02-19 22:21:41.212 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 22:21:41.212 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: OPTARIF -> {'value': 'BBR(', 'timestamp': None}
2024-02-19 22:21:41.212 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 22:21:41.212 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 22:21:41.213 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'ISOUSC 30 9\n'
2024-02-19 22:21:41.213 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 22:21:41.213 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: ISOUSC -> {'value': '30', 'timestamp': None}
2024-02-19 22:21:41.213 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 22:21:41.213 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 22:21:41.213 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJB 004816430 7\n'
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHCJB -> {'value': '004816430', 'timestamp': None}
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 22:21:41.214 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 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHPJB 000230326 :\n'
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] read the following values: BBRHPJB -> {'value': '000230326', 'timestamp': None}
2024-02-19 22:21:41.214 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'\n'
2024-02-19 22:21:41.214 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 22:21:41.215 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line to parse: b'BBRHCJW 000063719 L\n'
2024-02-19 22:21:41.215 DEBUG (LinkyTIC for /dev/ttyACM1) [custom_components.linkytic.serial_reader] line checksum is valid

Première tentative sur github, désolé pour la gêne sur les autres issues.

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

1 participant