Skip to content

Commit

Permalink
add replay logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpy7374 committed Mar 18, 2024
1 parent 6de3285 commit 4e4701e
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/ha.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --network host --name ha --rm -v $HOME/hass-deltadore-tydom-component/tools/traces.txt:/config/traces.txt -v $HOME/hass-deltadore-tydom-component/custom_components/:/config/custom_components/ -p 8123:8123 homeassistant/home-assistant
9 changes: 9 additions & 0 deletions tools/traces-lights-calybox.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /ping\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\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": "001A25040941",\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\nF\r\n"bdd.json": 10,\r\n12\r\n"collect.json": 5,\r\n11\r\n"groups.json": 5,\r\n12\r\n"mom_api.json": 1,\r\n13\r\n"scenario.json": 1,\r\n10\r\n"site.json": 18,\r\n12\r\n"bdd_mig.json": 0,\r\n13\r\n"info_mig.json": 0,\r\n13\r\n"info_col.json": 1,\r\n12\r\n"absence.json": 2,\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": 2333333,\r\n14\r\n"latitude": 48866666\r\n2\r\n},\r\nA\r\n"clock": {\r\n25\r\n"clock": "2024-03-12T18:51: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
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /configs/gateway/api_mode\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /groups/file\r\nContent-Type: application/json\r\nContent-Length: 228\r\nTransac-Id: 0\r\nFile-Version: 5\r\n\r\n{"groups":[{"devices":[],"areas":[],"id":2136872358},{"devices":[],"areas":[],"id":2057335716},{"devices":[{"endpoints":[{"id":1580488064}],"id":1580488064}],"areas":[],"id":845205326},{"devices":[],"areas":[],"id":1810797748}]}
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /refresh/all\r\nContent-Type: application/json\r\nContent-Length: 0\r\nTransac-Id: 0\r\n\r\n
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /configs/file\r\nContent-Type: application/json\r\nContent-Length: 1051\r\nTransac-Id: 0\r\nFile-Version: 18\r\n\r\n{"date":1670381935,"version_application":"04.06.11-5-dd","endpoints":[{"id_endpoint":1580488064,"first_usage":"light","skill":"TYDOM_X3D","id_device":1580488064,"name":"Bed Lamp","anticipation_start":false,"space_id":"","picto":"picto_lamp","last_usage":"light"},{"id_endpoint":1669313284,"first_usage":"hvac","skill":"TYDOM_X3D","id_device":1669313284,"name":"Calybox","anticipation_start":false,"space_id":"","picto":"picto_thermometer","last_usage":"electric"}],"old_tycam":false,"os":"android","groups":[{"group_all":true,"usage":"awning","name":"TOTAL","id":2136872358,"picto":"picto_awning_awning"},{"group_all":true,"usage":"shutter","name":"TOTAL","id":2057335716,"picto":"picto_shutter"},{"group_all":true,"usage":"light","name":"TOTAL","id":845205326,"picto":"picto_lamp"},{"group_all":true,"usage":"plug","name":"TOTAL","id":1810797748,"picto":"picto_smartplug"}],"areas":[],"scenarios":[],"version":"1.0.2","new_tycam":false,"moments":[],"id_catalog":"F2BD90F93B888DA02C54980F11AE4796DFCC98F447CD3FE326F5A3A964C939BF","zigbee_networks":[]}
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /devices/meta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\nD1\r\n[{"id":1580488064,"endpoints":[{"id":1580488064,"error":0,"metadata":[{"name":"levelCmd","type":"string","permission":"w","validity":"INFINITE","enum_values":["ON","OFF","STOP","FAVORIT1","FAVORIT2","TOGGLE"]}\r\n68\r\n,{"name":"thermicDefect","type":"boolean","permission":"r","validity":"ES_SUPERVISION","unit":"boolean"}\r\n78\r\n,{"name":"level","type":"numeric","permission":"rw","validity":"ES_SUPERVISION","min":0,"max":100,"step":100,"unit":"%"}\r\n6F\r\n,{"name":"recFav","type":"string","permission":"w","validity":"INFINITE","enum_values":["FAVORIT1","FAVORIT2"]}\r\n63\r\n,{"name":"onFavPos","type":"boolean","permission":"r","validity":"ES_SUPERVISION","unit":"boolean"}\r\n67\r\n,{"name":"localisation","type":"string","permission":"w","validity":"INFINITE","enum_values":["START"]}\r\n63\r\n,{"name":"modeAsso","type":"string","permission":"w","validity":"INFINITE","enum_values":["START"]}\r\nD8\r\n]}]},{"id":1669313284,"endpoints":[{"id":1669313284,"error":0,"metadata":[{"name":"thermicLevel","type":"string","permission":"rw","validity":"DATA_POLLING","enum_values":["ECO","COMFORT","STOP","ANTI_FROST","AUTO"]}\r\n6F\r\n,{"name":"comfortMode","type":"string","permission":"w","validity":"INFINITE","enum_values":["STOP","HEATING"]}\r\n71\r\n,{"name":"authorization","type":"string","permission":"r","validity":"INFINITE","enum_values":["STOP","HEATING"]}\r\n29\r\n]},{"id":1708883927,"error":0,"metadata":\r\n2A\r\n[]},{"id":1708883928,"error":0,"metadata":\r\n32\r\n[]},{"id":1708883929,"error":0,"metadata":[]}]}]\r\n\r\n0\r\n\r\n
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /devices/cmeta\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n46\r\n[{"id":1580488064,"endpoints":[{"id":1580488064,"error":0,"cmetadata":\r\n4B\r\n[]}]},{"id":1669313284,"endpoints":[{"id":1669313284,"error":0,"cmetadata":\r\n2B\r\n[]},{"id":1708883927,"error":0,"cmetadata":\r\n2B\r\n[]},{"id":1708883928,"error":0,"cmetadata":\r\n33\r\n[]},{"id":1708883929,"error":0,"cmetadata":[]}]}]\r\n\r\n0\r\n\r\n
HTTP/1.1 200 OK\r\nServer: Tydom-001A25040941\r\nUri-Origin: /devices/data\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nTransac-Id: 0\r\n\r\n41\r\n[{"id":1580488064,"endpoints":[{"id":1580488064,"error":0,"data":\r\n3D\r\n[{"name":"thermicDefect","validity":"upToDate","value":false}\r\n31\r\n,{"name":"level","validity":"upToDate","value":0}\r\n37\r\n,{"name":"onFavPos","validity":"upToDate","value":true}\r\n82\r\n]}]},{"id":1669313284,"endpoints":[{"id":1669313284,"error":0,"data":[{"name":"thermicLevel","validity":"upToDate","value":"AUTO"}\r\n41\r\n,{"name":"authorization","validity":"upToDate","value":"HEATING"}\r\n25\r\n]},{"id":1708883927,"error":0,"data":\r\n26\r\n[]},{"id":1708883928,"error":0,"data":\r\n2E\r\n[]},{"id":1708883929,"error":0,"data":[]}]}]\r\n\r\n0\r\n\r\n
Loading

0 comments on commit 4e4701e

Please sign in to comment.