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

Associate with Tywatt1000 #50

Closed
4 tasks done
Telectroboy opened this issue Feb 9, 2024 · 35 comments
Closed
4 tasks done

Associate with Tywatt1000 #50

Telectroboy opened this issue Feb 9, 2024 · 35 comments

Comments

@Telectroboy
Copy link

System Health details

Home Assistant OS
Core
2024.2.0
Supervisor
2024.01.1
Operating System
11.5
Interface utilisateur
20240207.0

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Bonjour,

Impossible de faire remonter les valeurs du TYWatt 1000

Avez vous une idée?

Merci

:)

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

Logger: custom_components.deltadore_tydom
Source: custom_components/deltadore_tydom/tydom/tydom_client.py:486
Integration: Delta Dore TYDOM (documentation, issues)
First occurred: 13:56:34 (8 occurrences)
Last logged: 13:56:34

poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false

Reproduction steps

  1. Install this Add ON
  2. Add Tywatt 1000 to your Tydom account

Debug logs

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

Logger: custom_components.deltadore_tydom
Source: custom_components/deltadore_tydom/tydom/tydom_client.py:486
Integration: Delta Dore TYDOM (documentation, issues)
First occurred: 13:56:34 (8 occurrences)
Last logged: 13:56:34

poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false

Diagnostics dump

No response

@CyrilP
Copy link
Owner

CyrilP commented Feb 9, 2024

Bonjour,
Je crois savoir d'où ça vient, il semblerait que le TYWatt 1000 ne remonte pas périodiquement ses valeurs contrairement au tywatt 5400 et qu'il faut aller les chercher.
Pour en être sûr, pouver-vous mettre l'intégration en debug, relancer HomeAssistant et m'envoyer les logs sans la première partie qui concernent l'authentification svp ?

@Telectroboy
Copy link
Author

Salut,

Tout d'abord merci beaucoup pour ton aide! Je n'ai pas pu m'occuper de cela ce week-end, désolé...

Voila une copie du log :
2024-02-12 08:04:11.538 INFO (MainThread) [custom_components.deltadore_tydom] Listen for Tydom messages
2024-02-12 08:04:11.539 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-02-12 08:04:11.540 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-02-12 08:04:11.540 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info)
2024-02-12 08:04:11.546 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode)
2024-02-12 08:04:11.547 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file)
2024-02-12 08:04:11.549 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all)
2024-02-12 08:04:11.550 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file)
2024-02-12 08:04:11.552 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta)
2024-02-12 08:04:11.553 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta)
2024-02-12 08:04:11.556 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data)
2024-02-12 08:04:11.557 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file)
2024-02-12 08:04:11.569 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-02-12 08:04:11.570 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-02-12 08:04:11.570 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info)
2024-02-12 08:04:11.571 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode)
2024-02-12 08:04:11.572 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file)
2024-02-12 08:04:11.573 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all)
2024-02-12 08:04:11.574 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file)
2024-02-12 08:04:11.574 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta)
2024-02-12 08:04:11.575 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta)
2024-02-12 08:04:11.576 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data)
2024-02-12 08:04:11.577 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file)
2024-02-12 08:04:12.570 DEBUG (MainThread) [custom_components.deltadore_tydom] Listen to tydom events
2024-02-12 08:04:12.570 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.571 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXXX\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "X",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 15,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 46XXXXX,\r\n14\r\n"latitude": 49XXXXX\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-12T08:04:11+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n'
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info)
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001AXXXXX', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 15, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': 461XXXXX, 'latitude': 49XXXXXX}, 'clock': {'clock': '2024-02-12T08:04:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]}
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'>
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'}
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'>
2024-02-12 08:04:12.573 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': 46XXXX, 'latitude': 49XXXXX}
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'>
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-02-12T08:04:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'>
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}}
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'>
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'>
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'>
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]
2024-02-12 08:04:12.574 DEBUG (MainThread) [custom_components.deltadore_tydom] Create Tydom gateway Tydom-XXXXX
2024-02-12 08:04:12.576 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001AXXXXX\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.577 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXXX\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}'
2024-02-12 08:04:12.578 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups)
2024-02-12 08:04:12.578 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-02-12 08:04:12.578 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXXXX\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.578 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXXXX\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}'
2024-02-12 08:04:12.579 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config)
2024-02-12 08:04:12.579 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []}
2024-02-12 08:04:12.579 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1
2024-02-12 08:04:12.579 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated
2024-02-12 08:04:12.580 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : []
2024-02-12 08:04:12.580 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.580 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata)
2024-02-12 08:04:12.580 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}]
2024-02-12 08:04:12.581 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXX\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.582 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata)
2024-02-12 08:04:12.582 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}]
2024-02-12 08:04:12.582 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-12 08:04:12.582 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:04:12.582 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-12 08:04:12.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-12 08:04:12.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-12 08:04:12.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-12 08:04:12.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-12 08:04:12.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated
2024-02-12 08:04:12.583 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXX
\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.584 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data)
2024-02-12 08:04:12.584 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}]
2024-02-12 08:04:12.584 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-X\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n\r\n<title>Error 404</title>\r\n\r\n

Error 404

\r\n

The requested page could not be found

\r\n\r\n\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.585 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios)
2024-02-12 08:04:12.585 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-02-12 08:04:12.585 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A2XXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.585 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "X",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 15,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": XXXXX,\r\n14\r\n"latitude": 49XXXXX\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-12T08:04:11+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n'
2024-02-12 08:04:12.588 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info)
2024-02-12 08:04:12.588 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001A250XXXX', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 15, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': 4617791, 'latitude':X}, 'clock': {'clock': '2024-02-12T08:04:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]}
2024-02-12 08:04:12.588 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': 4617791, 'latitude': XXX}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-02-12T08:04:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'>
2024-02-12 08:04:12.589 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]
2024-02-12 08:04:12.590 DEBUG (MainThread) [custom_components.deltadore_tydom] update device Tydom-0XXXX : <custom_components.deltadore_tydom.tydom.tydom_devices.Tydom object at 0xffff52713f80>
2024-02-12 08:04:12.590 DEBUG (MainThread) [custom_components.deltadore_tydom] Update device Tydom-0XXXXX
2024-02-12 08:04:12.590 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.deltadore_tydom.ha_entities.HATydom'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper, please report it to the custom integration author
2024-02-12 08:04:12.590 ERROR (MainThread) [custom_components.deltadore_tydom] update failed
Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_devices.py", line 68, in update_device
self._ha_device.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 985, in async_write_ha_state
raise NoEntitySpecifiedError(
homeassistant.exceptions.NoEntitySpecifiedError: No entity id specified for entity Tydom-0XXXX
2024-02-12 08:04:12.652 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.653 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXX\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}'
2024-02-12 08:04:12.653 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups)
2024-02-12 08:04:12.653 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-02-12 08:04:12.654 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXX\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:04:12.654 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXX\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}'
2024-02-12 08:04:12.655 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config)
2024-02-12 08:04:12.655 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []}
2024-02-12 08:04:12.655 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1
2024-02-12 08:04:12.655 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated
2024-02-12 08:04:12.655 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : []
2024-02-12 08:04:12.655 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.656 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata)
2024-02-12 08:04:12.656 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}]
2024-02-12 08:04:12.656 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.657 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata)
2024-02-12 08:04:12.657 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}]
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-12 08:04:12.658 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated
2024-02-12 08:04:12.659 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.659 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data)
2024-02-12 08:04:12.659 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}]
2024-02-12 08:04:12.659 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n\r\n<title>Error 404</title>\r\n\r\n

Error 404

\r\n

The requested page could not be found

\r\n\r\n\r\n\r\n0\r\n\r\n'
2024-02-12 08:04:12.660 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios)
2024-02-12 08:04:12.660 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success

2024-02-12 08:04:41.571 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-02-12 08:04:41.572 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-02-12 08:04:41.616 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'

2024-02-12 08:05:11.573 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-02-12 08:05:11.574 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-02-12 08:05:11.618 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'

2024-02-12 08:09:11.578 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info)
2024-02-12 08:09:11.580 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode)
2024-02-12 08:09:11.581 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file)
2024-02-12 08:09:11.583 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all)
2024-02-12 08:09:11.584 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:09:11.584 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-02-12 08:09:11.585 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file)
2024-02-12 08:09:11.587 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta)
2024-02-12 08:09:11.587 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta)
2024-02-12 08:09:11.588 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data)
2024-02-12 08:09:11.589 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-12 08:09:11.589 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC)
2024-02-12 08:09:11.590 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:09:11.591 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-02-12 08:09:11.591 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-12 08:09:11.591 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false)
2024-02-12 08:09:11.592 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-12 08:09:11.592 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false)
2024-02-12 08:09:11.592 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-12 08:09:11.593 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false)
2024-02-12 08:09:11.593 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-12 08:09:11.594 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false)
2024-02-12 08:09:11.594 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-12 08:09:11.594 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false)
2024-02-12 08:09:11.595 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-12 08:09:11.596 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC)
2024-02-12 08:09:11.596 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:09:11.597 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-02-12 08:09:11.598 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-12 08:09:11.598 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false)
2024-02-12 08:09:11.599 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-12 08:09:11.600 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false)
2024-02-12 08:09:11.601 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-12 08:09:11.601 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false)
2024-02-12 08:09:11.601 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-12 08:09:11.602 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false)
2024-02-12 08:09:11.602 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-12 08:09:11.602 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false)
2024-02-12 08:09:11.603 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file)
2024-02-12 08:09:11.604 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-02-12 08:09:11.605 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-02-12 08:09:11.766 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250XXXXX\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A250XXXXXXXXX",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 15,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 4617791,\r\n14\r\n"latitude": XXX\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-12T08:09:11+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n'
2024-02-12 08:09:11.768 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info)
2024-02-12 08:09:11.768 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': 'XXXX', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 15, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': 4617791, 'latitude': XXX}, 'clock': {'clock': '2024-02-12T08:09:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]}
2024-02-12 08:09:11.768 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'>
2024-02-12 08:09:11.768 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'}
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'>
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': 4617791, 'latitude': XXX}
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'>
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-02-12T08:09:11+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'>
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}}
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'>
2024-02-12 08:09:11.769 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'>
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'>
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] update device Tydom-X: <custom_components.deltadore_tydom.tydom.tydom_devices.Tydom object at 0xffff52713f80>
2024-02-12 08:09:11.770 DEBUG (MainThread) [custom_components.deltadore_tydom] Update device Tydom-X
2024-02-12 08:09:11.772 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-XXXX\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.893 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}'
2024-02-12 08:09:11.894 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups)
2024-02-12 08:09:11.894 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-02-12 08:09:11.903 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.904 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.914 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}'
2024-02-12 08:09:11.915 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config)
2024-02-12 08:09:11.915 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []}
2024-02-12 08:09:11.915 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1
2024-02-12 08:09:11.915 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated
2024-02-12 08:09:11.915 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : []
2024-02-12 08:09:11.916 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:09:11.916 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata)
2024-02-12 08:09:11.916 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}]
2024-02-12 08:09:11.923 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-XX\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:09:11.924 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata)
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}]
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-12 08:09:11.925 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated
2024-02-12 08:09:11.934 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n'
2024-02-12 08:09:11.935 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data)
2024-02-12 08:09:11.935 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}]
2024-02-12 08:09:11.935 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.935 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.936 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.945 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.945 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.946 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.947 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.947 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.948 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.956 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.957 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:11.957 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:12.460 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:13.055 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /devices/1707425521/endpoints/1707425521/cdata\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-02-12 08:09:13.056 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-X\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n\r\n<title>Error 404</title>\r\n\r\n

Error 404

\r\n

The requested page could not be found

\r\n\r\n\r\n\r\n0\r\n\r\n'
2024-02-12 08:09:13.057 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios)
2024-02-12 08:09:13.057 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-02-12 08:09:13.057 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-X\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'

J'ai tenté de retirer l'adresse MAC je ne vois rien d'autre à supprimer non?

@CyrilP
Copy link
Owner

CyrilP commented Feb 18, 2024

C'est curieux, j'ai l'impression que les données remontées sont vides. les infos remontent bien dans l'application delta dore ?

@Telectroboy
Copy link
Author

Salut, en effet, il semble que les infos ne remontaient pas.
J'ai tout réinitialisé !
22024-02-19 11:34:06.356 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration deltadore_tydom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-19 11:36:26.086 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-02-19 11:36:26.087 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-02-19 11:36:26.133 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:36:46.174 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02POST /info HTTP/1.1\r\nServer: Tydom-001A25XXXXXX\r\ncontent-type: application/json\r\nTransfer-Encoding: chunked\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A25XXXXXX",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 31,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": XXXXXX,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-19T11:36:40+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n' 2024-02-19 11:36:46.175 DEBUG (MainThread) [custom_components.deltadore_tydom] POST /info detected ! 2024-02-19 11:36:46.175 WARNING (MainThread) [custom_components.deltadore_tydom] Unknown message type received {"productName": "TYDOM1", "mac": "001A25XXXXXX", "config": "prod", "bddEmpty": false, "bddStatus": 0, "apiMode": true, "mainVersionSW": "03.15.31", "mainVersionHW": "00.00.01", "mainId": "6700103", "mainReference": "21800010", "keyVersionSW": "01.04.33", "keyVersionHW": "00.00.01", "keyVersionStack": "04.00.50", "keyReference": "21800011", "oryxVersion": "2.0.4-00.01", "bootReference": "P21800012", "bootVersion": "01.00.03", "TYDOM.dat": 0, "config.json": 0, "mom.json": 0, "gateway.dat": 0, "bdd.json": 1, "collect.json": 31, "groups.json": 1, "mom_api.json": 0, "scenario.json": 0, "site.json": 1, "bdd_mig.json": 0, "info_mig.json": 0, "info_col.json": 0, "absence.json": 0, "anticip.json": 0, "trigger.json": 0, "bioclim.json": 0, "data_config.json": 0, "urlMediation": "mediation.tydom.com", "pltRegistered": true, "updateAvailable": false, "passwordEmpty": false, "maintenance": {"id": "ffffffffffffffffffffffffffffffff"}, "geoloc": {"longitude": XXXXXX, "latitude": 49577429}, "clock": {"clock": "2024-02-19T11:36:40+01:00", "source": "ntp", "timezone": 60, "summerOffset": "ON"}, "moments": {"suspend": {"to": 0}}, "local_claim": {"status": "CLOSE", "lastAccess": "2014-01-01T00:00:00Z"}, "weather": {"outTempSrc": {"devId": null, "epId": null}, "weatherSrc": {"devId": null, "epId": null}}, "protocols": [{"protocol": "X3D", "available": true, "installed": true, "ready": true, "status": "running", "installStatus": "idle"}, {"protocol": "ZIGBEE", "available": true, "installed": false}, {"protocol": "X3DV", "available": false}, {"protocol": "PltService", "available": false}, {"protocol": "HTTP", "available": false}]} 2024-02-19 11:36:46.175 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:36:56.088 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-02-19 11:36:56.089 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-02-19 11:36:56.149 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:12.818 DEBUG (MainThread) [custom_components.deltadore_tydom] Initializing TydomClient Class 2024-02-19 11:37:12.818 INFO (MainThread) [custom_components.deltadore_tydom] Configure remote mode (mediation.tydom.com) 2024-02-19 11:37:12.912 DEBUG (MainThread) [custom_components.deltadore_tydom] response status : 401 headers : <CIMultiDictProxy('X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Set-Cookie': 'JSESSIONID=0D55233238FAC0A09065E067779B0E18;path=/;HttpOnly', 'WWW-Authenticate': 'Digest realm="ServiceMedia", qop="auth", nonce="MTcwODMzOTMzMjkwNTo3N2I0NDQ3ZjQ4NDY0M2Y4OGM0YTJlOWJkNWQxZDQzZQ=="', 'Content-Length': '0', 'Date': 'Mon, 19 Feb 2024 10:37:12 GMT')> content : 2024-02-19 11:37:12.912 INFO (MainThread) [custom_components.deltadore_tydom] nonce : MTcwODMzOTMzMjkwNTo3N2I0NDQ3ZjQ4NDY0M2Y4OGM0YTJlOWJkNWQxZDQzZQ== 2024-02-19 11:37:12.938 INFO (MainThread) [custom_components.deltadore_tydom] Listen for Tydom messages 2024-02-19 11:37:12.938 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-02-19 11:37:12.939 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-02-19 11:37:12.939 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info) 2024-02-19 11:37:12.940 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode) 2024-02-19 11:37:12.941 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file) 2024-02-19 11:37:12.941 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all) 2024-02-19 11:37:12.942 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file) 2024-02-19 11:37:12.942 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta) 2024-02-19 11:37:12.943 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta) 2024-02-19 11:37:12.944 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data) 2024-02-19 11:37:12.944 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file) 2024-02-19 11:37:12.945 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-02-19 11:37:12.945 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-02-19 11:37:12.945 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info) 2024-02-19 11:37:12.946 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode) 2024-02-19 11:37:12.946 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file) 2024-02-19 11:37:12.947 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all) 2024-02-19 11:37:12.947 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file) 2024-02-19 11:37:12.947 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta) 2024-02-19 11:37:12.948 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta) 2024-02-19 11:37:12.948 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data) 2024-02-19 11:37:12.949 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file) 2024-02-19 11:37:13.946 DEBUG (MainThread) [custom_components.deltadore_tydom] Listen to tydom events 2024-02-19 11:37:13.947 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.947 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A25XXXXXX",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 31,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": XXXXXX,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-19T11:37:07+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n' 2024-02-19 11:37:13.948 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info) 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001A25XXXXXX', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 31, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': XXXXXX, 'latitude': 49577429}, 'clock': {'clock': '2024-02-19T11:37:07+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]} 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'> 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'} 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'> 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': XXXXXX, 'latitude': 49577429} 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'> 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-02-19T11:37:07+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'} 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'> 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}} 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'> 2024-02-19 11:37:13.949 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'} 2024-02-19 11:37:13.950 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'> 2024-02-19 11:37:13.950 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}} 2024-02-19 11:37:13.950 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'> 2024-02-19 11:37:13.950 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}] 2024-02-19 11:37:13.950 DEBUG (MainThread) [custom_components.deltadore_tydom] Create Tydom gateway Tydom-XXXXXX 2024-02-19 11:37:13.951 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.951 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}' 2024-02-19 11:37:13.952 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups) 2024-02-19 11:37:13.953 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:37:13.953 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.953 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}' 2024-02-19 11:37:13.954 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config) 2024-02-19 11:37:13.954 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []} 2024-02-19 11:37:13.954 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1 2024-02-19 11:37:13.954 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated 2024-02-19 11:37:13.954 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : [] 2024-02-19 11:37:13.955 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.955 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata) 2024-02-19 11:37:13.955 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}] 2024-02-19 11:37:13.955 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.956 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata) 2024-02-19 11:37:13.956 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}] 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-02-19 11:37:13.957 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated 2024-02-19 11:37:13.957 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.958 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data) 2024-02-19 11:37:13.958 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}] 2024-02-19 11:37:13.958 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n<html>\r\n<head><title>Error 404</title></head>\r\n<body>\r\n<h2>Error 404</h2>\r\n<p>The requested page could not be found</p>\r\n</body>\r\n</html>\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.959 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios) 2024-02-19 11:37:13.959 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:37:13.959 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.960 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A25XXXXXX",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 31,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": XXXXXX,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-19T11:37:08+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n' 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info) 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001A25XXXXXX', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 31, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': XXXXXX, 'latitude': 49577429}, 'clock': {'clock': '2024-02-19T11:37:08+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]} 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'> 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'} 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'> 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': XXXXXX, 'latitude': 49577429} 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'> 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-02-19T11:37:08+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'} 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'> 2024-02-19 11:37:13.961 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}} 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'> 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'} 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'> 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}} 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'> 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}] 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] update device Tydom-XXXXXX : <custom_components.deltadore_tydom.tydom.tydom_devices.Tydom object at 0xffff6eb5b530> 2024-02-19 11:37:13.962 DEBUG (MainThread) [custom_components.deltadore_tydom] Update device Tydom-XXXXXX 2024-02-19 11:37:13.962 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.deltadore_tydom.ha_entities.HATydom'>) does not have a platform, this may be caused by adding it manually instead of with an EntityComponent helper, please report it to the custom integration author 2024-02-19 11:37:13.962 ERROR (MainThread) [custom_components.deltadore_tydom] update failed Traceback (most recent call last): File "/config/custom_components/deltadore_tydom/tydom/tydom_devices.py", line 68, in update_device self._ha_device.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 985, in async_write_ha_state raise NoEntitySpecifiedError( homeassistant.exceptions.NoEntitySpecifiedError: No entity id specified for entity Tydom-XXXXXX 2024-02-19 11:37:13.967 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.968 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}' 2024-02-19 11:37:13.968 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups) 2024-02-19 11:37:13.968 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:37:13.968 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-02-19 11:37:13.969 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}' 2024-02-19 11:37:13.969 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config) 2024-02-19 11:37:13.970 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []} 2024-02-19 11:37:13.970 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1 2024-02-19 11:37:13.970 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated 2024-02-19 11:37:13.970 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : [] 2024-02-19 11:37:13.970 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.971 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata) 2024-02-19 11:37:13.971 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}] 2024-02-19 11:37:13.971 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.971 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata) 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}] 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-02-19 11:37:13.972 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated 2024-02-19 11:37:13.973 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.973 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data) 2024-02-19 11:37:13.973 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}] 2024-02-19 11:37:13.974 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n<html>\r\n<head><title>Error 404</title></head>\r\n<body>\r\n<h2>Error 404</h2>\r\n<p>The requested page could not be found</p>\r\n</body>\r\n</html>\r\n\r\n0\r\n\r\n' 2024-02-19 11:37:13.974 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios) 2024-02-19 11:37:13.974 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:37:41.882 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02POST /info HTTP/1.1\r\nServer: Tydom-001A25XXXXXX\r\ncontent-type: application/json\r\nTransfer-Encoding: chunked\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A25XXXXXX",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 32,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": XXXXXX,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-02-19T11:37:36+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n' 2024-02-19 11:37:41.883 DEBUG (MainThread) [custom_components.deltadore_tydom] POST /info detected ! 2024-02-19 11:37:41.883 WARNING (MainThread) [custom_components.deltadore_tydom] Unknown message type received {"productName": "TYDOM1", "mac": "001A25XXXXXX", "config": "prod", "bddEmpty": false, "bddStatus": 0, "apiMode": true, "mainVersionSW": "03.15.31", "mainVersionHW": "00.00.01", "mainId": "6700103", "mainReference": "21800010", "keyVersionSW": "01.04.33", "keyVersionHW": "00.00.01", "keyVersionStack": "04.00.50", "keyReference": "21800011", "oryxVersion": "2.0.4-00.01", "bootReference": "P21800012", "bootVersion": "01.00.03", "TYDOM.dat": 0, "config.json": 0, "mom.json": 0, "gateway.dat": 0, "bdd.json": 1, "collect.json": 32, "groups.json": 1, "mom_api.json": 0, "scenario.json": 0, "site.json": 1, "bdd_mig.json": 0, "info_mig.json": 0, "info_col.json": 0, "absence.json": 0, "anticip.json": 0, "trigger.json": 0, "bioclim.json": 0, "data_config.json": 0, "urlMediation": "mediation.tydom.com", "pltRegistered": true, "updateAvailable": false, "passwordEmpty": false, "maintenance": {"id": "ffffffffffffffffffffffffffffffff"}, "geoloc": {"longitude": XXXXXX, "latitude": 49577429}, "clock": {"clock": "2024-02-19T11:37:36+01:00", "source": "ntp", "timezone": 60, "summerOffset": "ON"}, "moments": {"suspend": {"to": 0}}, "local_claim": {"status": "CLOSE", "lastAccess": "2014-01-01T00:00:00Z"}, "weather": {"outTempSrc": {"devId": null, "epId": null}, "weatherSrc": {"devId": null, "epId": null}}, "protocols": [{"protocol": "X3D", "available": true, "installed": true, "ready": true, "status": "running", "installStatus": "idle"}, {"protocol": "ZIGBEE", "available": true, "installed": false}, {"protocol": "X3DV", "available": false}, {"protocol": "PltService", "available": false}, {"protocol": "HTTP", "available": false}]} 2024-02-19 11:37:41.883 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-02-19 11:37:42.946 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-02-19 11:37:42.946 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-02-19 11:37:43.006 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A25XXXXXX\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'

@Telectroboy
Copy link
Author

Salut! Cette nuit j'ai eu 20Mo de log!

2024-02-19 22:27:17.850 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-19 22:27:17.850 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-19 22:27:17.851 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-19 22:27:17.852 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-19 22:27:17.853 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-19 22:27:17.854 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-19 22:27:27.947 ERROR (MainThread) [custom_components.deltadore_tydom] Unable to handle message
Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 198, in async_connect
response = await session.request(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 605, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 966, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 622, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 288, in consume_messages
await self.listen_tydom(await self.async_connect())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 246, in async_connect
raise TydomClientApiClientCommunicationError(
custom_components.deltadore_tydom.tydom.tydom_client.TydomClientApiClientCommunicationError: Error fetching information
2024-02-19 22:27:38.009 ERROR (MainThread) [custom_components.deltadore_tydom] Unable to handle message
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1119, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1101, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1004, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 637, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 677, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('185.43.60.129', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 198, in async_connect
response = await session.request(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 578, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1235, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1000, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host mediation.tydom.com:443 ssl:<ssl.SSLContext object at 0xffff6ec672d0> [Connect call failed ('185.43.60.129', 443)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 288, in consume_messages
await self.listen_tydom(await self.async_connect())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 246, in async_connect
raise TydomClientApiClientCommunicationError(
custom_components.deltadore_tydom.tydom.tydom_client.TydomClientApiClientCommunicationError: Error fetching information
2024-02-19 22:27:48.078 ERROR (MainThread) [custom_components.deltadore_tydom] Unable to handle message
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1119, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1101, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1004, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 637, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 677, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('185.43.60.129', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 198, in async_connect
response = await session.request(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 578, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1235, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1000, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host mediation.tydom.com:443 ssl:<ssl.SSLContext object at 0xffff6ec657d0> [Connect call failed ('185.43.60.129', 443)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 288, in consume_messages
await self.listen_tydom(await self.async_connect())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 246, in async_connect
raise TydomClientApiClientCommunicationError(
custom_components.deltadore_tydom.tydom.tydom_client.TydomClientApiClientCommunicationError: Error fetching information
2024-02-19 22:27:58.147 ERROR (MainThread) [custom_components.deltadore_tydom] Unable to handle message
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1119, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1101, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1004, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 637, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 677, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('185.43.60.129', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 198, in async_connect
response = await session.request(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 578, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1235, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1000, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host mediation.tydom.com:443 ssl:<ssl.SSLContext object at 0xffff69da9e50> [Connect call failed ('185.43.60.129', 443)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 288, in consume_messages
await self.listen_tydom(await self.async_connect())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/deltadore_tydom/tydom/tydom_client.py", line 246, in async_connect
raise TydomClientApiClientCommunicationError(
custom_components.deltadore_tydom.tydom.tydom_client.TydomClientApiClientCommunicationError: Error fetching information
2024-02-19 22:28:08.279 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-19 22:28:08.282 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-02-19 22:28:08.283 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-02-19 22:28:08.284 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-02-19 22:28:08.285 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-02-19 22:28:08.285 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-02-19 22:28:08.286 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-02-19 22:28:08.287 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-02-19 22:28:08.288 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC

@CyrilP
Copy link
Owner

CyrilP commented Feb 20, 2024

Il faut enlever le mode debug une fois les traces récupérées.
Quand on passe par le serveur de mediation, on se fait déconnecter régulièrement et le composant essaye de se reconnecter.
Je vois toujours des données vides qui remontent, c'est OK dans l'application ?

@Telectroboy
Copy link
Author

Bonsoir,
J'ai beau chercher dans tous les sens mais je ne vois pas de solution. Oui tout est OK dans l'application.
J'ai sans doute loupé un truc quelque part mais je ne sais pas analyser ou...

2024-03-10 23:17:15.946 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-10 23:17:15.948 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-10 23:17:15.949 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-10 23:17:15.951 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-10 23:17:15.952 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-10 23:17:15.953 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-10 23:17:15.953 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-10 23:17:15.954 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-10 23:17:15.954 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-10 23:17:15.955 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-10 23:17:15.955 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-10 23:17:15.956 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-10 23:17:15.956 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-10 23:17:15.956 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-10 23:17:15.957 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-10 23:17:34.322 DEBUG (MainThread) [custom_components.deltadore_tydom] Initializing TydomClient Class 2024-03-10 23:17:34.322 INFO (MainThread) [custom_components.deltadore_tydom] Configure remote mode (mediation.tydom.com) 2024-03-10 23:17:34.423 DEBUG (MainThread) [custom_components.deltadore_tydom] response status : 401 headers : <CIMultiDictProxy('X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Set-Cookie': 'JSESSIONID=00106424B989715EAEB77E4DFACC1FEB;path=/;HttpOnly', 'WWW-Authenticate': 'Digest realm="ServiceMedia", qop="auth", nonce="MTcxMDEwOTM1NDQxNjo3OGM2YjYwMTdmM2NmNDQxMjVjNDI4ZTZmNWVhNGYzMA=="', 'Content-Length': '0', 'Date': 'Sun, 10 Mar 2024 22:17:34 GMT')> content : 2024-03-10 23:17:34.423 INFO (MainThread) [custom_components.deltadore_tydom] nonce : MTcxMDEwOTM1NDQxNjo3OGM2YjYwMTdmM2NmNDQxMjVjNDI4ZTZmNWVhNGYzMA== 2024-03-10 23:17:34.451 INFO (MainThread) [custom_components.deltadore_tydom] Listen for Tydom messages 2024-03-10 23:17:34.451 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-03-10 23:17:34.452 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-03-10 23:17:34.452 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info) 2024-03-10 23:17:34.452 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode) 2024-03-10 23:17:34.453 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file) 2024-03-10 23:17:34.453 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all) 2024-03-10 23:17:34.454 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file) 2024-03-10 23:17:34.454 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta) 2024-03-10 23:17:34.455 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta) 2024-03-10 23:17:34.456 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data) 2024-03-10 23:17:34.456 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file) 2024-03-10 23:17:34.461 DEBUG (MainThread) [custom_components.deltadore_tydom] Listen to tydom events 2024-03-10 23:17:34.461 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-03-10 23:17:34.462 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-03-10 23:17:34.462 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info) 2024-03-10 23:17:34.462 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode) 2024-03-10 23:17:34.463 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file) 2024-03-10 23:17:34.463 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all) 2024-03-10 23:17:34.464 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file) 2024-03-10 23:17:34.465 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta) 2024-03-10 23:17:34.466 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta) 2024-03-10 23:17:34.466 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data) 2024-03-10 23:17:34.467 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file) 2024-03-10 23:17:34.505 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-03-10 23:17:34.638 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A250556DB",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 47,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 4617791,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-03-10T23:17:34+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n' 2024-03-10 23:17:34.639 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info) 2024-03-10 23:17:34.639 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001A250556DB', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 47, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': 4617791, 'latitude': 49577429}, 'clock': {'clock': '2024-03-10T23:17:34+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]} 2024-03-10 23:17:34.639 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': 4617791, 'latitude': 49577429} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-03-10T23:17:34+01:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'> 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}} 2024-03-10 23:17:34.640 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'> 2024-03-10 23:17:34.641 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}] 2024-03-10 23:17:34.641 DEBUG (MainThread) [custom_components.deltadore_tydom] Create Tydom gateway Tydom-0556DB 2024-03-10 23:17:34.658 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-03-10 23:17:34.772 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}' 2024-03-10 23:17:34.772 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups) 2024-03-10 23:17:34.772 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-03-10 23:17:34.783 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-03-10 23:17:34.783 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}' 2024-03-10 23:17:34.784 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config) 2024-03-10 23:17:34.784 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []} 2024-03-10 23:17:34.784 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1 2024-03-10 23:17:34.784 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated 2024-03-10 23:17:34.785 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : [] 2024-03-10 23:17:34.785 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n' 2024-03-10 23:17:34.785 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata) 2024-03-10 23:17:34.785 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}] 2024-03-10 23:17:34.902 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-10 23:17:34.903 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata) 2024-03-10 23:17:34.903 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}] 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-10 23:17:34.904 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated 2024-03-10 23:17:34.914 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n' 2024-03-10 23:17:34.915 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data) 2024-03-10 23:17:34.915 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}] 2024-03-10 23:17:34.915 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n<html>\r\n<head><title>Error 404</title></head>\r\n<body>\r\n<h2>Error 404</h2>\r\n<p>The requested page could not be found</p>\r\n</body>\r\n</html>\r\n\r\n0\r\n\r\n' 2024-03-10 23:17:34.915 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios) 2024-03-10 23:17:34.915 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success 2024-03-10 23:17:34.916 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n' 2024-03-10 23:17:35.181 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A250556DB",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 47,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 4617791,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-03-10T23:17:34+01:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n'

@CyrilP
Copy link
Owner

CyrilP commented Mar 18, 2024

Je viens de faire une version beta v0.6-dev5
pouvez-vous tester et voir si le problème est corrigé ?
NB: le rafraichissement de la valeur devrait se faire toutes les 5 minutes pour le moment

@Telectroboy
Copy link
Author

Salut,
MERCI BEAUCOUP pour tes recherches :)

J'obtiens une multitude de valeur comme celles ci :
2024-03-19 11:59:18.960 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nAC\r\n[{"name":"energyInstant","status":"OK","parameters":{"unit":"ELEC_A"},"values":{"date":"2024-03-19","measure":100,"min":100,"max":3900,"minScale":0,"maxScale":4500}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:18.960 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:18.961 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:18.961 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyInstant', 'status': 'OK', 'parameters': {'unit': 'ELEC_A'}, 'values': {'date': '2024-03-19', 'measure': 100, 'min': 100, 'max': 3900, 'minScale': 0, 'maxScale': 4500}}]}]}] 2024-03-19 11:59:19.180 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nAA\r\n[{"name":"energyIndex","status":"OK","parameters":{"dest":"ELEC_TOTAL"},"values":{"date":"2024-03-19","counter":1115429,"subCounter":null,"dateRAZ":"2255-15-255"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:19.180 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:19.180 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:19.180 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_TOTAL'}, 'values': {'date': '2024-03-19', 'counter': 1115429, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}] 2024-03-19 11:59:19.400 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nAB\r\n[{"name":"energyIndex","status":"OK","parameters":{"dest":"ELEC_HEATING"},"values":{"date":"2024-03-19","counter":752654,"subCounter":null,"dateRAZ":"2255-15-255"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:19.400 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:19.400 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:19.400 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_HEATING'}, 'values': {'date': '2024-03-19', 'counter': 752654, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}] 2024-03-19 11:59:19.610 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nA9\r\n[{"name":"energyIndex","status":"OK","parameters":{"dest":"ELEC_COOLING"},"values":{"date":"2024-03-19","counter":null,"subCounter":null,"dateRAZ":"2255-15-255"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:19.610 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:19.610 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:19.610 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_COOLING'}, 'values': {'date': '2024-03-19', 'counter': None, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}] 2024-03-19 11:59:19.820 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nA9\r\n[{"name":"energyIndex","status":"OK","parameters":{"dest":"ELEC_OUTLET"},"values":{"date":"2024-03-19","counter":91578,"subCounter":null,"dateRAZ":"2255-15-255"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:19.820 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:19.821 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:19.821 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_OUTLET'}, 'values': {'date': '2024-03-19', 'counter': 91578, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}] 2024-03-19 11:59:20.041 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\nA9\r\n[{"name":"energyIndex","status":"OK","parameters":{"dest":"ELEC_OTHER"},"values":{"date":"2024-03-19","counter":271197,"subCounter":null,"dateRAZ":"2255-15-255"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:20.041 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:20.042 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:20.042 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_OTHER'}, 'values': {'date': '2024-03-19', 'counter': 271197, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}] 2024-03-19 11:59:20.240 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02PUT /devices/cdata HTTP/1.1\r\nServer: Tydom-001A250556DB\r\ncontent-type: application/json\r\nTransac-Id: 0\r\nTransfer-Encoding: chunked\r\n\r\n42\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cdata":\r\n8A\r\n[{"name":"energyDistrib","status":"OK","parameters":{"src":"ELEC","period":"YEAR","periodOffset":0},"values":{"date":"2024-03-19"}}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-19 11:59:20.240 DEBUG (MainThread) [custom_components.deltadore_tydom] PUT /devices/cdata detected ! 2024-03-19 11:59:20.240 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cdata) 2024-03-19 11:59:20.240 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyDistrib', 'status': 'OK', 'parameters': {'src': 'ELEC', 'period': 'YEAR', 'periodOffset': 0}, 'values': {'date': '2024-03-19'}}]}]}]
Puis des erreurs :
2024-03-19 12:04:13.734 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-19 12:04:13.734 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC) 2024-03-19 12:04:13.736 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-19 12:04:13.736 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false) 2024-03-19 12:04:13.736 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-19 12:04:13.736 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false) 2024-03-19 12:04:13.737 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-19 12:04:13.737 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false) 2024-03-19 12:04:13.740 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-19 12:04:13.741 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false) 2024-03-19 12:04:13.743 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-19 12:04:13.743 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false) 2024-03-19 12:04:13.745 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-19 12:04:13.745 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false) 2024-03-19 12:04:13.747 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-19 12:04:13.747 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC) 2024-03-19 12:04:13.749 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false

et cela NON STOP.
Je ne vois nul part dans HAssistant les valeurs ELEC_OTHER cooling ...

@CyrilP
Copy link
Owner

CyrilP commented Mar 21, 2024

déjà c'est un bonne nouvelle, on voit des valeurs.
Je pense qu'il faut faire le parsing de ces réponses maintenant. je m'en occupe dès que j'ai un peu de temps

@Telectroboy
Copy link
Author

Oui, oui on récupère les valeurs ! Je ne sais pas du tout comment faire le "parsing".
Si j'ai des bases, je peux aider. N'importe quel info pour commencer ou mettre en forme.
Aucun problème de timing de toute façon. C'est du loisir avant tout :)

@CyrilP
Copy link
Owner

CyrilP commented Mar 21, 2024

avec la nouvelle v0.6-dev6 ça devrait être mieux. il y a surement quelques ajustements, mais les valeurs devraient apparaitre et être disponibles pour le dashboard énergie

@Telectroboy
Copy link
Author

Hello!!!

Voila ce que cela me donne quand j'active le debug et que je recharge l'intégration !
2024-03-22 08:27:03.660 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1 2024-03-22 08:27:03.660 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated 2024-03-22 08:27:03.660 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : [] 2024-03-22 08:27:03.661 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n' 2024-03-22 08:27:03.661 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata) 2024-03-22 08:27:03.661 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}] 2024-03-22 08:27:03.770 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n' 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata) 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}] 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-22 08:27:03.771 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-22 08:27:03.772 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-22 08:27:03.772 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated 2024-03-22 08:27:03.772 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n' 2024-03-22 08:27:03.772 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data) 2024-03-22 08:27:03.773 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}] 2024-03-22 08:27:03.784 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n<html>\r\n<head><title>Error 404</title></head>\r\n<body>\r\n<h2>Error 404</h2>\r\n<p>The requested page could not be found</p>\r\n</body>\r\n</html>\r\n\r\n0\r\n\r\n' 2024-03-22 08:27:03.785 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_scenarios) 2024-03-22 08:27:03.785 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success

J'ai bien reçu des valeurs pendant la nuit !
image
Oh et une à l'instant entre les 2 screenshot!!
image

@CyrilP
Copy link
Owner

CyrilP commented Mar 22, 2024

Bizarre qu'il y ait à la fois des données sur le capteur et qu'il affiche indisponible.
Ceci dit, je vois dans les traces "Add poll device..." il doit multiplier les requêtes avec le temps, c'est pas bon et si ça se trouve ça fait tout planter. il faudra que je corrige ça et que je trouve un moyen de ne pas faire de requêtes pour les tywatt qui n'ont pas besoin de polling comme le 5400.
En tout cas il y a du mieux :)

l'ajout dans le dashboard énergie fonctionne ?

@Telectroboy
Copy link
Author

En effet,
Ce n'est pas encore parfait mais les valeurs remontent !!!
Maintenant toutes les 5 minutes j'ai ça :
2024-03-22 09:57:03.596 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-22 09:57:03.597 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-22 09:57:03.598 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-22 09:57:03.599 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-22 09:57:03.600 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-22 09:57:03.601 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-22 09:57:03.603 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-22 09:57:33.607 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping) 2024-03-22 09:57:33.608 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping 2024-03-22 10:02:03.606 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC 2024-03-22 10:02:03.607 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false 2024-03-22 10:02:03.607 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false 2024-03-22 10:02:03.608 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false 2024-03-22 10:02:03.608 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false 2024-03-22 10:02:03.611 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false 2024-03-22 10:02:03.612 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false 2024-03-22 10:02:03.613 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC

Et les valeurs ne se mettent pas à jour à tous les coups.
Il me semble qu'il est nécessaire que je me connecte à l'appli pour que les valeurs se mettent à jour !
image

Je vais laisser passer plusieurs heures sans toucher à l'appli téléphone pour confirmer cela.

@CyrilP
Copy link
Owner

CyrilP commented Mar 22, 2024

je viens de regarder, les logs d'erreurs c'est juste une trace que j'avais mise au niveau "error" pour ne pas à passer en debug à chaque fois. Ce n'est pas une erreur

@Telectroboy
Copy link
Author

OK
Je ne vois rien de particulier depuis ce matin dans les logs.
Par contre l'update ne se fait pas régulièrement.
image

Sur l'app on a 2kWh de plus à 13h

@Telectroboy
Copy link
Author

Voila ce qu'il se passe exactement.
image
A chaque redémarrage/rechargement on arrive à récupérer 3 valeurs toutes les 5 minutes.
Mais après plus rien !

@Telectroboy
Copy link
Author

Salut alors hier matin le TyDom était planté. Impossible de se connecter à l'app.
Je l'ai rebooté et puis plein de datas ! J'étais content ...
image

Mais depuis hier soir plus rien, j'ai rebooté HA et rechargé l'intégration rien.
L'app se connecte bien au TyDom mais impossible de remonter les datas du TyWatt !
Je retente de tout réinitialiser ce soir.

Bonne journée :)

@CyrilP
Copy link
Owner

CyrilP commented Mar 27, 2024

c'est bizarre ce comportement. Pour le coup, je ne sais pas trop quoi faire

@Telectroboy
Copy link
Author

Salut,
Est-il possible de faire des remontées d'info toutes les 30 minutes seulement?
Pour voir si c'est pas un excès de connexions qui stop le tydom?

Et surtout supprimer cette ligne 2024-03-22 10:02:03.608 ERROR (MainThread) [custom_components.deltadore_tydom] poll device data /devices/1707425521/endpoints/1707425521/cdata? ?

Pour le moment j'ai désactivé l'intégration

@CyrilP
Copy link
Owner

CyrilP commented Mar 27, 2024

les modifs sont dans la v0.6-dev7

@Telectroboy
Copy link
Author

Salut,
Merci BEAUCOUP !!!
J'ai installé la dev7 hier en fin de journée et redémarré le Tydom électriquement depuis j'ai toutes les valeurs. Toutes les 30 secondes mais peu importe ça fonctionne !
Je me demande si il est possible d'ajouter un "réglage" pour pouvoir éditer cette valeur sans avoir à taper dans le code en dur?
J'ai vu que c'est dans hub.py

@CyrilP
Copy link
Owner

CyrilP commented Mar 28, 2024

cool !
je vais essayer de faire la modif rapidement mais ce ne sera probablement pas avant la semaine prochaine

@Telectroboy
Copy link
Author

Salut,

De mon côté ce n'est pas très efficace. Il manque souvent des datas
image
les trous sont des rechargement ou redémarrage de HA dans le but de rétablir le lien. Des fois ça ne marche pas.
C'est aléatoire, j'ai l'impression que ça vient du serveur mediation.tydom.com plutot.

@CyrilP
Copy link
Owner

CyrilP commented Apr 10, 2024

je viens de faire une v0.6-dev8 avec le paramétrage du délai entre 2 rafraichissements.
ce ne serait pas plus efficace en se connectant directement à la gateway tydom plutôt que de passer via le serveur de mediation ?

@Telectroboy
Copy link
Author

Malheureusement pour le moment les 2 appareils ne sont pas au même endroit...
Ca devrait changer dans les mois à venir.

Je suis entrain de redémarrer HA

@Telectroboy
Copy link
Author

Je viens de le passer à 40 minutes. On verra bien sur les jours qui viennent!

Merci encore

@Telectroboy
Copy link
Author

Telectroboy commented Apr 15, 2024

Salut,

Voila ce qu'il se passe :

2024-04-14 19:04:45.824 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_cdata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cdata': [{'name': 'energyIndex', 'status': 'OK', 'parameters': {'dest': 'ELEC_OTHER'}, 'values': {'date': '2024-04-14', 'counter': 363376, 'subCounter': None, 'dateRAZ': '2255-15-255'}}]}]}]
2024-04-14 19:04:45.824 DEBUG (MainThread) [custom_components.deltadore_tydom] Device update (id=1707425521, endpoint=1707425521, name=Tywatt, type=conso)
2024-04-14 19:04:45.824 DEBUG (MainThread) [custom_components.deltadore_tydom] update device 1707425521_1707425521 : <custom_components.deltadore_tydom.tydom.tydom_devices.TydomEnergy object at 0xffffa65f4ec0>
2024-04-14 19:04:45.824 DEBUG (MainThread) [custom_components.deltadore_tydom] Update device 1707425521_1707425521
2024-04-14 19:04:52.792 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:04:52.793 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:04:52.838 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-04-14 19:05:22.795 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:05:22.796 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:05:22.854 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-04-14 19:05:52.797 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:05:52.798 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:06:22.799 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:06:22.799 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:06:52.801 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:06:52.802 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:07:22.803 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:07:22.804 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:07:52.806 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:07:52.807 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:08:22.808 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:08:22.808 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:08:52.810 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:08:52.811 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:09:22.812 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:09:22.813 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:09:43.837 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC)
2024-04-14 19:09:43.838 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-04-14 19:09:43.839 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false)
2024-04-14 19:09:43.839 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false)
2024-04-14 19:09:43.840 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false)
2024-04-14 19:09:43.842 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false)
2024-04-14 19:09:43.843 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false)
2024-04-14 19:09:52.814 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:09:52.815 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:10:22.816 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:10:22.818 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:10:52.819 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:10:52.820 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:11:22.821 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:11:22.822 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:11:52.823 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:11:52.824 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:12:22.825 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:12:22.827 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:12:52.828 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:12:52.829 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:13:22.830 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:13:22.831 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:13:52.833 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:13:52.834 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:14:22.835 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:14:22.837 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-14 19:14:42.865 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info)
2024-04-14 19:14:42.866 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (PUT /configs/gateway/api_mode)
2024-04-14 19:14:42.866 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file)
2024-04-14 19:14:42.867 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all)
2024-04-14 19:14:42.869 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file)
2024-04-14 19:14:42.870 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta)
2024-04-14 19:14:42.870 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta)
2024-04-14 19:14:42.870 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data)
2024-04-14 19:14:42.873 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file)
2024-04-14 19:14:43.845 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC)
2024-04-14 19:14:43.846 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-04-14 19:14:43.847 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false)
2024-04-14 19:14:43.848 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false)
2024-04-14 19:14:43.849 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false)
2024-04-14 19:14:43.850 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false)
2024-04-14 19:14:43.851 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false)
2024-04-14 19:14:52.838 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-14 19:14:52.839 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping

Pendant une durée aléatoire...
Puis :

`2024-04-15 00:58:54.467 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 00:58:54.470 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 00:59:24.471 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 00:59:24.475 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 00:59:44.381 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC)
2024-04-15 00:59:44.383 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false)
2024-04-15 00:59:44.383 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false)
2024-04-15 00:59:44.383 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false)
2024-04-15 00:59:44.383 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false)
2024-04-15 00:59:44.384 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false)
2024-04-15 00:59:44.384 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false)
2024-04-15 00:59:54.477 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 00:59:54.478 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 01:00:24.479 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 01:00:24.480 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 01:00:52.369 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 257 - message : None
2024-04-15 01:00:52.369 DEBUG (MainThread) [custom_components.deltadore_tydom] Close message type received
2024-04-15 01:00:54.482 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 01:00:54.599 DEBUG (MainThread) [custom_components.deltadore_tydom] response status : 401
headers : <CIMultiDictProxy('X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Set-Cookie': 'JSESSIONID=FD953BA354117746B7C24927C7AF3F58;path=/;HttpOnly', 'WWW-Authenticate': 'Digest realm="ServiceMedia", qop="auth", nonce="MTcxMzEzNTk1NDU5MzozYmY0ZTNlYjM4ODdlNjNhODcyYTk3MzhmYzA3MzY2Yg=="', 'Content-Length': '0', 'Date': 'Sun, 14 Apr 2024 23:00:54 GMT')>
content : 
2024-04-15 01:00:54.625 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 01:01:02.459 DEBUG (MainThread) [custom_components.deltadore_tydom] response status : 401
headers : <CIMultiDictProxy('X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Set-Cookie': 'JSESSIONID=E705254B4D7F30548D1C13FDBCDD5E14;path=/;HttpOnly', 'WWW-Authenticate': 'Digest realm="ServiceMedia", qop="auth", nonce="MTcxMzEzNTk2MjQ1NDo2ZjgwYmJiMWQxOWQ5NDc5YWNlZmVmYTc3ZDc4Y2JkMQ=="', 'Content-Length': '0', 'Date': 'Sun, 14 Apr 2024 23:01:02 GMT')>
content : 
2024-04-15 01:01:02.487 INFO (MainThread) [custom_components.deltadore_tydom] Listen for Tydom messages
2024-04-15 01:01:02.487 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /ping)
2024-04-15 01:01:02.488 DEBUG (MainThread) [custom_components.deltadore_tydom] Ping
2024-04-15 01:01:02.488 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /info)
2024-04-15 01:01:02.490 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /groups/file)
2024-04-15 01:01:02.490 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (POST /refresh/all)
2024-04-15 01:01:02.491 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /configs/file)
2024-04-15 01:01:02.492 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/meta)
2024-04-15 01:01:02.492 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/cmeta)
2024-04-15 01:01:02.493 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /devices/data)
2024-04-15 01:01:02.494 DEBUG (MainThread) [custom_components.deltadore_tydom] Sending message to tydom (GET /scenarios/file)
2024-04-15 01:01:02.545 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-04-15 01:01:02.676 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /info\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n1\r\n{\r\n18\r\n"productName": "TYDOM1",\r\n16\r\n"mac": "001A250556DB",\r\n11\r\n"config": "prod",\r\n12\r\n"bddEmpty": false,\r\nF\r\n"bddStatus": 0,\r\n10\r\n"apiMode": true,\r\n1C\r\n"mainVersionSW": "03.15.31",\r\n1C\r\n"mainVersionHW": "00.00.01",\r\n14\r\n"mainId": "6700103",\r\n1C\r\n"mainReference": "21800010",\r\n1B\r\n"keyVersionSW": "01.04.33",\r\n1B\r\n"keyVersionHW": "00.00.01",\r\n1E\r\n"keyVersionStack": "04.00.50",\r\n1B\r\n"keyReference": "21800011",\r\n1D\r\n"oryxVersion": "2.0.4-00.01",\r\n38\r\n"bootReference": "P21800012", "bootVersion": "01.00.03",\r\nF\r\n"TYDOM.dat": 0,\r\n11\r\n"config.json": 0,\r\nE\r\n"mom.json": 0,\r\n11\r\n"gateway.dat": 0,\r\nE\r\n"bdd.json": 1,\r\n13\r\n"collect.json": 92,\r\n11\r\n"groups.json": 1,\r\n12\r\n"mom_api.json": 0,\r\n13\r\n"scenario.json": 0,\r\nF\r\n"site.json": 1,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 0,\r\n12\r\n"absence.json": 0,\r\n12\r\n"anticip.json": 0,\r\n12\r\n"trigger.json": 0,\r\n12\r\n"bioclim.json": 0,\r\n16\r\n"data_config.json": 0,\r\n26\r\n"urlMediation": "mediation.tydom.com",\r\n15\r\n"pltRegistered":true,\r\n19\r\n"updateAvailable": false,\r\n17\r\n"passwordEmpty": false,\r\nF\r\n"maintenance":{\r\n28\r\n"id": "ffffffffffffffffffffffffffffffff"\r\n2\r\n},\r\nB\r\n"geoloc": {\r\n15\r\n"longitude": 4617791,\r\n14\r\n"latitude": 49577429\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-04-15T01:00:58+02:00",\r\n10\r\n"source": "ntp",\r\nF\r\n"timezone": 60,\r\n14\r\n"summerOffset": "ON"\r\n2\r\n},\r\nC\r\n"moments": {\r\nC\r\n"suspend": {\r\n7\r\n"to": 0\r\n3\r\n}},\r\nF\r\n"local_claim":{\r\n12\r\n"status": "CLOSE",\r\n24\r\n"lastAccess": "2014-01-01T00:00:00Z"\r\n2\r\n},\r\nC\r\n"weather": {\r\n28\r\n"outTempSrc":{"devId":null,"epId":null},\r\n27\r\n"weatherSrc":{"devId":null,"epId":null}\r\n2\r\n},\r\nE\r\n"protocols": [\r\n71\r\n{"protocol":"X3D", "available":true, "installed":true, "ready":true, "status":"running", "installStatus":"idle"},\r\n3B\r\n{"protocol":"ZIGBEE", "available":true, "installed":false},\r\n27\r\n{"protocol":"X3DV", "available":false},\r\n2D\r\n{"protocol":"PltService", "available":false},\r\n26\r\n{"protocol":"HTTP", "available":false}\r\n1\r\n]\r\n1\r\n}\r\n0\r\n\r\n'
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_info)
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_msg_info : {'productName': 'TYDOM1', 'mac': '001A250556DB', 'config': 'prod', 'bddEmpty': False, 'bddStatus': 0, 'apiMode': True, 'mainVersionSW': '03.15.31', 'mainVersionHW': '00.00.01', 'mainId': '6700103', 'mainReference': '21800010', 'keyVersionSW': '01.04.33', 'keyVersionHW': '00.00.01', 'keyVersionStack': '04.00.50', 'keyReference': '21800011', 'oryxVersion': '2.0.4-00.01', 'bootReference': 'P21800012', 'bootVersion': '01.00.03', 'TYDOM.dat': 0, 'config.json': 0, 'mom.json': 0, 'gateway.dat': 0, 'bdd.json': 1, 'collect.json': 92, 'groups.json': 1, 'mom_api.json': 0, 'scenario.json': 0, 'site.json': 1, 'bdd_mig.json': 0, 'info_mig.json': 0, 'info_col.json': 0, 'absence.json': 0, 'anticip.json': 0, 'trigger.json': 0, 'bioclim.json': 0, 'data_config.json': 0, 'urlMediation': 'mediation.tydom.com', 'pltRegistered': True, 'updateAvailable': False, 'passwordEmpty': False, 'maintenance': {'id': 'ffffffffffffffffffffffffffffffff'}, 'geoloc': {'longitude': 4617791, 'latitude': 49577429}, 'clock': {'clock': '2024-04-15T01:00:58+02:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}, 'moments': {'suspend': {'to': 0}}, 'local_claim': {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}, 'weather': {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}, 'protocols': [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]}
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] type of maintenance : <class 'dict'>
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] maintenance => {'id': 'ffffffffffffffffffffffffffffffff'}
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] type of geoloc : <class 'dict'>
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] geoloc => {'longitude': 4617791, 'latitude': 49577429}
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] type of clock : <class 'dict'>
2024-04-15 01:01:02.678 DEBUG (MainThread) [custom_components.deltadore_tydom] clock => {'clock': '2024-04-15T01:00:58+02:00', 'source': 'ntp', 'timezone': 60, 'summerOffset': 'ON'}
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] type of moments : <class 'dict'>
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] moments => {'suspend': {'to': 0}}
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] type of local_claim : <class 'dict'>
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] local_claim => {'status': 'CLOSE', 'lastAccess': '2014-01-01T00:00:00Z'}
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] type of weather : <class 'dict'>
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] weather => {'outTempSrc': {'devId': None, 'epId': None}, 'weatherSrc': {'devId': None, 'epId': None}}
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] type of protocols : <class 'list'>
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] protocols => [{'protocol': 'X3D', 'available': True, 'installed': True, 'ready': True, 'status': 'running', 'installStatus': 'idle'}, {'protocol': 'ZIGBEE', 'available': True, 'installed': False}, {'protocol': 'X3DV', 'available': False}, {'protocol': 'PltService', 'available': False}, {'protocol': 'HTTP', 'available': False}]
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] update device Tydom-0556DB : <custom_components.deltadore_tydom.tydom.tydom_devices.Tydom object at 0xffff94d2a780>
2024-04-15 01:01:02.679 DEBUG (MainThread) [custom_components.deltadore_tydom] Update device Tydom-0556DB
2024-04-15 01:01:02.813 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 177\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":874944811},{"devices":[],"areas":[],"id":1814592997},{"devices":[],"areas":[],"id":25010163},{"devices":[],"areas":[],"id":1032728668}]}'
2024-04-15 01:01:02.814 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_groups)
2024-04-15 01:01:02.814 DEBUG (MainThread) [custom_components.deltadore_tydom] Incoming data parsed with success
2024-04-15 01:01:02.814 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n'
2024-04-15 01:01:02.815 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 827\r\nTransac-Id: 0\r\nFile-Version: 1\r\n\r\n{"moments":[],"scenarios":[],"groups":[{"name":"TOTAL","group_all":true,"is_group_user":false,"usage":"light","id":874944811},{"is_group_user":false,"name":"TOTAL","group_all":true,"usage":"shutter","id":1814592997},{"usage":"awning","id":25010163,"is_group_user":false,"name":"TOTAL","group_all":true},{"usage":"plug","name":"TOTAL","is_group_user":false,"group_all":true,"id":1032728668}],"old_tycam":false,"version":"1.0.1","zigbee_networks":[],"os":"ios","version_application":"4.12.0 (928)","id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","date":1707425532,"endpoints":[{"id_device":1707425521,"anticipation_start":false,"first_usage":"conso","id_endpoint":1707425521,"name":"Consommation 1","picto":"","widget_behavior":{"tutorial_id":"Tywatt_serie1000"},"last_usage":"conso"}],"areas":[]}'
2024-04-15 01:01:02.815 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_config)
2024-04-15 01:01:02.816 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_config_data : {'moments': [], 'scenarios': [], 'groups': [{'name': 'TOTAL', 'group_all': True, 'is_group_user': False, 'usage': 'light', 'id': 874944811}, {'is_group_user': False, 'name': 'TOTAL', 'group_all': True, 'usage': 'shutter', 'id': 1814592997}, {'usage': 'awning', 'id': 25010163, 'is_group_user': False, 'name': 'TOTAL', 'group_all': True}, {'usage': 'plug', 'name': 'TOTAL', 'is_group_user': False, 'group_all': True, 'id': 1032728668}], 'old_tycam': False, 'version': '1.0.1', 'zigbee_networks': [], 'os': 'ios', 'version_application': '4.12.0 (928)', 'id_catalog': 'F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF', 'date': 1707425532, 'endpoints': [{'id_device': 1707425521, 'anticipation_start': False, 'first_usage': 'conso', 'id_endpoint': 1707425521, 'name': 'Consommation 1', 'picto': '', 'widget_behavior': {'tutorial_id': 'Tywatt_serie1000'}, 'last_usage': 'conso'}], 'areas': []}
2024-04-15 01:01:02.816 DEBUG (MainThread) [custom_components.deltadore_tydom] config_data device parsed : 1707425521_1707425521 - Consommation 1
2024-04-15 01:01:02.816 DEBUG (MainThread) [custom_components.deltadore_tydom] Configuration updated
2024-04-15 01:01:02.816 DEBUG (MainThread) [custom_components.deltadore_tydom] devices : []
2024-04-15 01:01:02.825 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n4D\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n'
2024-04-15 01:01:02.825 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_metadata)
2024-04-15 01:01:02.825 DEBUG (MainThread) [custom_components.deltadore_tydom] metadata : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'metadata': []}]}]
2024-04-15 01:01:02.935 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n16E\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"cmetadata":[{"name":"energyHisto","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEARS","YEAR"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]}]}\r\nEA\r\n,{"name":"energyDistrib","permission":"r","parameters":[{"name":"period","type":"string","enum_values":["YEAR","MONTH"]},{"name":"periodOffset","type":"numeric","min":0,"max":31},{"name":"src","type":"string","enum_values":["ELEC"]}]}\r\n94\r\n,{"name":"energyInstant","permission":"r","parameters":[{"name":"unit","type":"string","enum_values":["ELEC_A"]},{"name":"reset","type":"boolean"}]}\r\nD6\r\n,{"name":"energyIndex","permission":"r","parameters":[{"name":"dest","type":"string","enum_values":["ELEC_TOTAL","ELEC_HEATING","ELEC_COOLING","ELEC_OUTLET","ELEC_OTHER"]},{"name":"reset","type":"boolean"}]}]}]}]\r\n\r\n0\r\n\r\n'
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_cmetadata)
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_cmeta_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'cmetadata': [{'name': 'energyHisto', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEARS', 'YEAR']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}]}, {'name': 'energyDistrib', 'permission': 'r', 'parameters': [{'name': 'period', 'type': 'string', 'enum_values': ['YEAR', 'MONTH']}, {'name': 'periodOffset', 'type': 'numeric', 'min': 0, 'max': 31}, {'name': 'src', 'type': 'string', 'enum_values': ['ELEC']}]}, {'name': 'energyInstant', 'permission': 'r', 'parameters': [{'name': 'unit', 'type': 'string', 'enum_values': ['ELEC_A']}, {'name': 'reset', 'type': 'boolean'}]}, {'name': 'energyIndex', 'permission': 'r', 'parameters': [{'name': 'dest', 'type': 'string', 'enum_values': ['ELEC_TOTAL', 'ELEC_HEATING', 'ELEC_COOLING', 'ELEC_OUTLET', 'ELEC_OTHER']}, {'name': 'reset', 'type': 'boolean'}]}]}]}]
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyDistrib&period=YEAR&periodOffset=0&src=ELEC
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyInstant&unit=ELEC_A&reset=false
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_TOTAL&reset=false
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_HEATING&reset=false
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_COOLING&reset=false
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OUTLET&reset=false
2024-04-15 01:01:02.936 DEBUG (MainThread) [custom_components.deltadore_tydom] Add poll device : /devices/1707425521/endpoints/1707425521/cdata?name=energyIndex&dest=ELEC_OTHER&reset=false
2024-04-15 01:01:02.937 DEBUG (MainThread) [custom_components.deltadore_tydom] Metadata configuration updated
2024-04-15 01:01:02.947 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 200 OK\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n49\r\n[{"id":1707425521,"endpoints":[{"id":1707425521,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n'
2024-04-15 01:01:02.947 DEBUG (MainThread) [custom_components.deltadore_tydom] Message received detected as (msg_data)
2024-04-15 01:01:02.947 DEBUG (MainThread) [custom_components.deltadore_tydom] parse_devices_data : [{'id': 1707425521, 'endpoints': [{'id': 1707425521, 'error': 0, 'data': []}]}]
2024-04-15 01:01:02.948 INFO (MainThread) [custom_components.deltadore_tydom] Incomming message - type : 2 - message : b'\x02HTTP/1.1 404 Not Found\r\nServer: Tydom-001A250556DB\r\nUri-Origin: /scenarios/file\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n9C\r\n<!doctype html>\r\n<html>\r\n<head><title>Error 404</title></head>\r\n<body>\r\n<h2>Error 404</h2>\r\n<p>The requested page could not be found</p>\r\n</body>\r\n</html>\r\n\r\n0\r\n\r\n'`

@CyrilP
Copy link
Owner

CyrilP commented Apr 15, 2024

il semblerait que la connexion ne fonctionne plus mais que ce n'est pas détecté correctement et donc il ne se reconnecte pas.
on se retrouve dans le cas de l'issue #69
je vais essayer de trouver une solution pour mieux le détecter et sinon, forcer une reconnexion régulièrement

@CyrilP
Copy link
Owner

CyrilP commented Apr 15, 2024

voici une tentative pour essayer de résoudre ce problème : nouvelle pré-release v0.6-dev9

@Telectroboy
Copy link
Author

Salut!
Merci encore !

Je l'ai installé dans la nuit vers 23h30, pour le moment RAS. Je te tiens au courant.
Bonne journée et encore chapeau pour ton travail!!!

@Telectroboy
Copy link
Author

Salut,
Bon raté... Ca ne marche pas !
Je viens juste de recharger l'intégration avant la capture d'écran
image

@CyrilP
Copy link
Owner

CyrilP commented Apr 17, 2024

Rhaa, je ne sais plus quoi faire à part mettre une reconnexion régulière, peut-être uniquement dans le cas où on passe par la mediation

@CyrilP
Copy link
Owner

CyrilP commented Apr 19, 2024

Je ferme cette issue, le problème de reconnexion sera traité dans l'issue #69

@CyrilP CyrilP closed this as completed Apr 19, 2024
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

2 participants