jontofront / ecoNET-300-Home-Assistant-Integration

ecoNET 300 integration to HA
11 stars 2 forks source link

[Bug]: Data for key: data does not exist #80

Open bartmi08 opened 1 month ago

bartmi08 commented 1 month ago

The problem

Data for key: data does not exist

after instalation, integration don't start

What version of ecoNET300 integration has the issue?

latest

What version of Home Assistant Core has the issue?

2024.10.2

What was the last working version of ecoNET300 integration?

No response

Diagnostics information

Ten błąd pochodzi z niestandardowej integracji.

Rejestrator: custom_components.econet300.common Źródło: helpers/update_coordinator.py:354 integracja: ecoNET300 (dokumentacja, Problemy) Pierwsze zdarzenie: 22:00:36 (16 zdarzenia) Ostatnio zalogowany: 22:20:42

Unexpected error fetching econet300 data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 46, in _async_update_data return await self._api.fetch_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 236, in fetch_data regParamsData = await self._fetch_reg_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 266, in _fetch_reg_key raise DataError(f"Data for key: {data_key} does not exist") custom_components.econet300.api.DataError: Data for key: data does not exist

Anything in the logs that might be useful for us?

Ten błąd pochodzi z niestandardowej integracji.

Rejestrator: custom_components.econet300.common
Źródło: helpers/update_coordinator.py:354
integracja: ecoNET300 (dokumentacja, Problemy)
Pierwsze zdarzenie: 22:00:36 (16 zdarzenia)
Ostatnio zalogowany: 22:20:42

Unexpected error fetching econet300 data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/econet300/common.py", line 46, in _async_update_data
    return await self._api.fetch_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/econet300/api.py", line 236, in fetch_data
    regParamsData = await self._fetch_reg_key(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/econet300/api.py", line 266, in _fetch_reg_key
    raise DataError(f"Data for key: {data_key} does not exist")
custom_components.econet300.api.DataError: Data for key: data does not exist

Additional information

No response

jontofront commented 1 month ago

Can you enable debug or in configuration file enable log debug custom_components.econet300: debug If there are sensitive data please send it me by by email logs?

bartmi08 commented 1 month ago

2024-10-26 23:17:56.922 INFO (MainThread) [custom_components.econet300.api] Manually adding 'http' to host 2024-10-26 23:17:57.265 DEBUG (MainThread) [custom_components.econet300.common] Fetching data from API 2024-10-26 23:17:57.317 DEBUG (MainThread) [custom_components.econet300.api] {'error': "'CommThread' object has no attribute 'getCurrentParamsValues'"} 2024-10-26 23:17:57.317 ERROR (MainThread) [custom_components.econet300.common] Unexpected error fetching econet300 data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 46, in _async_update_data return await self._api.fetch_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 236, in fetch_data regParamsData = await self._fetch_reg_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 266, in _fetch_reg_key raise DataError(f"Data for key: {data_key} does not exist") custom_components.econet300.api.DataError: Data for key: data does not exist 2024-10-26 23:17:57.319 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.054 seconds (success: False)

bartmi08 commented 1 month ago

debug info from log

paki111 commented 3 weeks ago

I have the same problem.

Data for key: data does not exist
jontofront commented 3 weeks ago

Can you send me "controllerID" from link: http://ip/econet/sysParams

bartmi08 commented 3 weeks ago

sysParams_econet.pdf

pls, check file

jontofront commented 3 weeks ago

@paki111 @bartmi08 can you download new version of pre-release, enable debug and send me log?

bartmi08 commented 2 weeks ago

2024-11-05 12:31:58.949 DEBUG (MainThread) [custom_components.econet300.api] Received response with status: 200 2024-11-05 12:31:59.002 DEBUG (MainThread) [custom_components.econet300.api] Fetched data: {'regProd': 0, 'regAllowed': None, 'ecosrvPort': '443', 'mainSrv': True, 'modulePanelSoftVer': 'S003.68_1.82', 'ecosrvSoftVer': '3.2.3842', 'moduleASoftVer': 'S002.28', 'eth0': '0.0.0.0', 'tilesET': [{'edname': None, 'type': 'tile_text'}, {'edname': None, 'type': 'tile_text'}, {'edname': None, 'type': 'tile_text'}, {'edname': None, 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': None, 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_temp'}, {'edname': 'HDWTSetPoint', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': None, 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_temp'}, {'edname': 'Circuit1BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit1BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit1ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit1EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit2BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit2ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit2EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit3BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit3ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit3EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit4BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit4ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit4EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit5BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit5ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit5EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit6BaseTemp', 'type': 'tile_temp'}, {'edname': 'Circuit6ComfortTemp', 'type': 'tile_temp'}, {'edname': 'Circuit6EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}, {'edname': 'Circuit7BaseTemp', 'type': 'tile_temp'}, {'edname': 'flowHeaterTimer1', 'type': 'tile_temp'}, {'edname': 'Circuit7EcoTemp', 'type': 'tile_temp'}, {'edname': None, 'type': 'tile_text'}], 'etPasswords': {'1': 'c6001d5b2ac3df314204a8f9d7a00e1503c9aba0fd4538645de4bf4cc7e2555cfe9ff9d0236bf327ed3e907849a98df4d330c4bea551017d465b4c1d9b80bcb0', '2': '200ec608217b461168065ccce0c501e7b35a4490c965f0c908fa48f0d2599f2482b31ff69879ce6fbde30d1c8c722c8179762a45add9ef758bcc6e23e8f7ef8d', '3': '200ec608217b461168065ccce0c501e7b35a4490c965f0c908fa48f0d2599f2482b31ff69879ce6fbde30d1c8c722c8179762a45add9ef758bcc6e23e8f7ef8d', '4': 'ab7fa92b25c483c9452c328d5f4ce1004d28931042ba97f778025f249e7a1b23c8e8d705d19593275864ba565c8898b9b6d50b8a9ce06ccbbe95212917d14a50'}, 'encryption': 'psk2', 'schemaID': 12, 'wlan0': '192.168.88.17', 'remoteMenu': False, 'regType': 0, 'schema': {}, 'regRefresh': 5, 'tiles': None, 'protocolType': 'gm3_pomp', 'controllerID': 'ecoMAX360i', 'moduleEcoSTERSoftVer': None, 'schedules': {}, 'econetConfVer': '1.00', 'password': '*', 'prodLogo': 0, 'fuelConsumptionCalc': False, 'regImgID': 0, 'settingsVer': 67198, 'signal': '-41', 'logFl': 0, 'etConfDesc': {'lang': '', 'client': '0', 'regname': 'ecoMAX360i'}, 'history': ['TempWthr', 'TempCWU', 'TempBuforDown', 'TempBuforUp', 'TempClutch', 'TempCircuit2', 'TempCircuit3', 'Circuit1thermostat', 'Circuit2thermostatTemp', 'Circuit3thermostatTemp', 'TempClutch', 'TempCircuit4', 'TempCircuit5', 'Circuit4thermostatTemp', 'Circuit5thermostatTemp', 'TempCircuit6', 'TempCircuit7', 'Circuit6thermostatTemp', 'Circuit7thermostatTemp'], 'uid': '0C8U81J6H1KCLIG2802S034', 'routerType': 'mr3020-v3', 'etNewConfTrans': True, 'ecosrvAddr': 'econet24.com', 'softVer': '3.2.3842', 'quality': 92, 'moduleCSoftVer': None, 'lan': False, 'moduleLambdaSoftVer': None, 'panelsNames': [], 'modulesVers': [['lbModuleAVerCurr', 'S002.28', 1], ['lbPanelVer_100Curr', 'S003.68', 100]], 'key': '', 'servicePassword': 'c6001d5b2ac3df314204a8f9d7a00e1503c9aba0fd4538645de4bf4cc7e2555cfe9ff9d0236bf327ed3e907849a98df4d330c4bea551017d465b4c1d9b80bcb0', 'ssid': 'MikroTik-FA718P', 'wifi': True, 'panelVer': 'S003.68_1.82', 'alarms': [{'toDate': '2132-01-18 11:14:07', 'code': 0, 'fromDate': '2132-07-20 08:59:41', 'service': False}, {'toDate': '2115-11-19 01:55:11', 'code': 224, 'fromDate': '2132-04-02 00:34:07', 'service': False}, {'toDate': None, 'code': 1, 'fromDate': '2131-07-15 00:42:35', 'service': False}, {'toDate': '2133-08-18 06:27:59', 'code': 240, 'fromDate': '2131-05-05 03:50:23', 'service': False}, {'toDate': '2024-11-22 21:34:39', 'code': 184, 'fromDate': '2100-03-21 16:17:00', 'service': False}, {'toDate': '2012-07-15 21:24:24', 'code': 65, 'fromDate': '2098-02-28 07:45:37', 'service': False}, {'toDate': '2016-08-04 19:37:35', 'code': 71, 'fromDate': '2058-06-18 05:47:41', 'service': False}, {'toDate': '2024-06-30 07:15:39', 'code': 2, 'fromDate': '2024-06-29 19:56:26', 'service': False}, {'toDate': '2024-06-23 11:16:29', 'code': 98, 'fromDate': '2024-06-23 10:58:31', 'service': False}, {'toDate': '2024-06-23 11:16:29', 'code': 1, 'fromDate': '2024-06-23 10:58:27', 'service': False}, {'toDate': '2024-06-23 11:16:29', 'code': 8, 'fromDate': '2024-06-23 10:58:27', 'service': False}, {'toDate': '2024-06-23 11:16:29', 'code': 9, 'fromDate': '2024-06-23 10:58:27', 'service': False}, {'toDate': '2024-06-23 11:16:29', 'code': 11, 'fromDate': '2024-06-23 10:58:27', 'service': False}, {'toDate': '2024-05-01 13:49:30', 'code': 2, 'fromDate': '2024-05-01 12:49:29', 'service': False}, {'toDate': '2024-01-22 13:17:51', 'code': 98, 'fromDate': '2024-01-06 14:19:02', 'service': False}, {'toDate': '2024-01-06 14:19:02', 'code': 2, 'fromDate': '2024-01-06 14:15:43', 'service': False}, {'toDate': '2023-10-07 19:44:14', 'code': 98, 'fromDate': '2023-09-24 13:45:53', 'service': False}, {'toDate': '2023-10-07 17:02:13', 'code': 1, 'fromDate': '2023-09-24 13:45:49', 'service': False}, {'toDate': '2023-09-24 13:45:49', 'code': 98, 'fromDate': '2023-09-23 17:47:30', 'service': False}, {'toDate': '2023-09-24 13:45:49', 'code': 1, 'fromDate': '2023-09-23 17:47:26', 'service': False}, {'toDate': '2023-09-23 17:47:26', 'code': 98, 'fromDate': '2023-09-14 17:08:46', 'service': False}, {'toDate': '2023-09-23 17:47:26', 'code': 1, 'fromDate': '2023-09-14 17:08:42', 'service': False}, {'toDate': '2023-02-04 17:49:15', 'code': 8, 'fromDate': '2023-02-04 17:39:19', 'service': False}, {'toDate': '2023-02-04 17:49:15', 'code': 11, 'fromDate': '2023-02-04 17:39:19', 'service': False}, {'toDate': '2023-02-04 19:06:36', 'code': 98, 'fromDate': '2023-02-04 17:39:03', 'service': False}, {'toDate': '2023-02-04 17:39:15', 'code': 8, 'fromDate': '2023-02-04 17:38:59', 'service': False}, {'toDate': '2023-02-04 17:39:15', 'code': 11, 'fromDate': '2023-02-04 17:38:59', 'service': False}, {'toDate': '2023-02-03 19:21:00', 'code': 98, 'fromDate': '2023-02-03 19:08:45', 'service': False}, {'toDate': '2023-02-03 19:21:00', 'code': 8, 'fromDate': '2023-02-03 19:08:41', 'service': False}, {'toDate': '2023-02-03 18:24:03', 'code': 10, 'fromDate': '2023-02-03 18:23:59', 'service': False}, {'toDate': '2023-02-03 19:01:38', 'code': 98, 'fromDate': '2023-02-03 18:23:55', 'service': False}, {'toDate': '2023-02-03 18:23:55', 'code': 10, 'fromDate': '2023-02-03 18:23:51', 'service': False}, {'toDate': '2023-02-03 18:21:07', 'code': 2, 'fromDate': '2023-02-03 17:51:14', 'service': False}, {'toDate': '2023-01-22 17:16:19', 'code': 2, 'fromDate': '2023-01-21 14:29:59', 'service': False}, {'toDate': '2023-01-20 08:47:54', 'code': 98, 'fromDate': '2023-01-20 08:39:18', 'service': False}, {'toDate': '2023-01-20 08:39:18', 'code': 2, 'fromDate': '2023-01-20 08:34:25', 'service': False}, {'toDate': '2023-01-15 08:40:55', 'code': 98, 'fromDate': '2023-01-08 10:30:59', 'service': False}, {'toDate': '2023-01-08 10:31:07', 'code': 5, 'fromDate': '2023-01-08 10:30:55', 'service': False}, {'toDate': '2023-01-07 11:27:03', 'code': 98, 'fromDate': '2023-01-07 11:11:54', 'service': False}, {'toDate': '2023-01-07 11:11:54', 'code': 2, 'fromDate': '2023-01-07 11:09:23', 'service': False}, {'toDate': '2023-01-05 15:39:11', 'code': 1, 'fromDate': '2023-01-05 15:39:03', 'service': False}, {'toDate': '2023-01-05 15:38:55', 'code': 1, 'fromDate': '2023-01-05 15:38:47', 'service': False}, {'toDate': '2023-01-05 15:27:39', 'code': 1, 'fromDate': '2023-01-05 15:26:51', 'service': False}, {'toDate': '2023-01-07 10:43:02', 'code': 98, 'fromDate': '2023-01-05 14:58:39', 'service': False}, {'toDate': '2023-01-05 14:58:59', 'code': 1, 'fromDate': '2023-01-05 14:58:35', 'service': False}, {'toDate': '2022-12-15 16:48:09', 'code': 10, 'fromDate': '2022-06-01 13:56:32', 'service': False}, {'toDate': '2022-06-01 13:51:08', 'code': 29, 'fromDate': '2022-06-01 13:51:00', 'service': False}, {'toDate': '2022-06-01 13:51:00', 'code': 2, 'fromDate': '2022-06-01 13:50:08', 'service': False}, {'toDate': '2022-12-15 16:54:11', 'code': 98, 'fromDate': '2022-06-01 13:49:00', 'service': False}, {'toDate': '2022-06-01 13:49:16', 'code': 29, 'fromDate': '2022-06-01 13:48:57', 'service': False}, {'toDate': '2022-06-01 12:14:25', 'code': 2, 'fromDate': '2022-06-01 12:09:01', 'service': False}, {'toDate': '2022-06-01 12:08:13', 'code': 29, 'fromDate': '2022-06-01 12:07:58', 'service': False}, {'toDate': '2022-06-01 12:07:58', 'code': 2, 'fromDate': '2022-06-01 12:07:04', 'service': False}, {'toDate': '2022-06-01 12:14:25', 'code': 98, 'fromDate': '2022-06-01 12:03:48', 'service': False}, {'toDate': '2022-06-01 12:07:58', 'code': 10, 'fromDate': '2022-06-01 12:03:45', 'service': False}, {'toDate': '2022-06-01 12:06:00', 'code': 29, 'fromDate': '2022-06-01 12:03:45', 'service': False}, {'toDate': '2016-09-15 14:17:44', 'code': 33, 'fromDate': '2022-04-01 01:10:24', 'service': False}, {'toDate': '2050-02-12 17:26:56', 'code': 18, 'fromDate': '2000-07-09 04:20:16', 'service': False}, {'toDate': '2000-01-01 00:00:00', 'code': 9, 'fromDate': '2000-01-02 12:24:32', 'service': False}], 'login': 'admin', 'moduleBSoftVer': None, 'etConfVer': 'S003.68_1.82'} 2024-11-05 12:31:59.007 DEBUG (MainThread) [custom_components.econet300.common] Fetching data from API 2024-11-05 12:31:59.007 DEBUG (MainThread) [custom_components.econet300.api] get_params called: Fetching parameters for registry 'regParamsData' from host 'http://192.168.88.17' 2024-11-05 12:31:59.007 DEBUG (MainThread) [custom_components.econet300.api] Fetching data from URL: http://192.168.88.17/econet/regParamsData (Attempt 1) 2024-11-05 12:31:59.008 DEBUG (MainThread) [custom_components.econet300.api] Using model_id: default-model-id, sw_revision: default-sw-revision 2024-11-05 12:31:59.208 DEBUG (MainThread) [custom_components.econet300.api] Received response with status: 200 2024-11-05 12:31:59.208 DEBUG (MainThread) [custom_components.econet300.api] Fetched data: {'error': "'CommThread' object has no attribute 'getCurrentParamsValues'"} 2024-11-05 12:31:59.209 DEBUG (MainThread) [custom_components.econet300.api] {'error': "'CommThread' object has no attribute 'getCurrentParamsValues'"} 2024-11-05 12:31:59.209 ERROR (MainThread) [custom_components.econet300.common] Unexpected error fetching econet300 data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 46, in _async_update_data return await self._api.fetch_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 292, in fetch_data regParamsData = await self._fetch_reg_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 322, in _fetch_reg_key raise DataError(f"Data for key: {data_key} does not exist") custom_components.econet300.api.DataError: Data for key: data does not exist 2024-11-05 12:31:59.244 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.237 seconds (success: False)

bartmi08 commented 2 weeks ago

after new ver of pre-relase 1.04

jontofront commented 2 weeks ago

after new ver of pre-relase 1.04

for more investigation, can you send me (jontofront@gmail.com) json file from these endpoinds?

http://econet_local_ip/econet/regParams http://econet_local_ip/econet/regParamsData http://econet_local_ip/econet/sysParams http://econet_local_ip/econet/rmCurrentDataParams http://econet_local_ip/econet/rmCurrentDataParamsEdits

radecki07 commented 1 week ago

I have same problem. Also just after new installation.

jontofront commented 1 week ago

92

jontofront commented 1 week ago

Hi all maybe someone want to test the econet will crash or no? https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/tree/80-bug-data-for-key-data-does-not-exist

I seperate endpoint and later add data from another

bartmi08 commented 1 week ago

still ... during tests

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eco/common.py", line 46, in _async_update_data return await self._api.fetch_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eco/api.py", line 292, in fetch_data regParamsData = await self._fetch_reg_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eco/api.py", line 322, in _fetch_reg_key raise DataError(f"Data for key: {data_key} does not exist") custom_components.eco.api.DataError: Data for key: data does not exist