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

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

Open
bartmi08 opened this issue Oct 19, 2024 · 39 comments · Fixed by #96 · May be fixed by #137
Open

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

bartmi08 opened this issue Oct 19, 2024 · 39 comments · Fixed by #96 · May be fixed by #137
Assignees
Labels
bug Something isn't working ecoMAX360 controller ecoSOL

Comments

@bartmi08
Copy link

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

@bartmi08 bartmi08 added the bug Something isn't working label Oct 19, 2024
@jontofront
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

debug info from log

@paki111
Copy link

paki111 commented Oct 29, 2024

I have the same problem.

Data for key: data does not exist

@jontofront
Copy link
Owner

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

@bartmi08
Copy link
Author

bartmi08 commented Nov 3, 2024

sysParams_econet.pdf

pls, check file

@jontofront
Copy link
Owner

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

@bartmi08
Copy link
Author

bartmi08 commented Nov 5, 2024

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
Copy link
Author

bartmi08 commented Nov 5, 2024

after new ver of pre-relase 1.04

@jontofront
Copy link
Owner

jontofront commented Nov 5, 2024

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

@jontofront jontofront added ecoMAX360 controller ecoSOL and removed ecoMAX360 controller ecoSOL labels Nov 5, 2024
@radecki07
Copy link

I have same problem. Also just after new installation.

@jontofront
Copy link
Owner

#92

@jontofront
Copy link
Owner

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
Copy link
Author

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

@barrteck
Copy link

barrteck commented Dec 11, 2024

hello,
Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/econet300/common.py", line 66, in _async_update_data
params_edits = await self._api.fetch_param_edit_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data
limits = await self._fetch_api_data_by_key(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

@jontofront
Copy link
Owner

hello, Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 66, in _async_update_data params_edits = await self._api.fetch_param_edit_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data limits = await self._fetch_api_data_by_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

What model do you have?
image

@barrteck
Copy link

hello, Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 66, in _async_update_data params_edits = await self._api.fetch_param_edit_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data limits = await self._fetch_api_data_by_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

What model do you have? image

ecoMAX360i

@jontofront
Copy link
Owner

hello, Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 66, in _async_update_data params_edits = await self._api.fetch_param_edit_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data limits = await self._fetch_api_data_by_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

What model do you have? image

ecoMAX360i

Can you try the new version, because unlike mine, your device does not have such a parameter, we are trying to skip it
'Ecomax360-test '

@barrteck
Copy link

hello, Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 66, in _async_update_data params_edits = await self._api.fetch_param_edit_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data limits = await self._fetch_api_data_by_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

What model do you have? image

ecoMAX360i

Can you try the new version, because unlike mine, your device does not have such a parameter, we are trying to skip it 'Ecomax360-test '

What do you mean? Like I said previously - I have already tried version 1.0.6. But what is this "Ecomax360-test" and how to install it - I don't see any integration named like this

@jontofront
Copy link
Owner

hello, Is there any coming improvements regarding this error? I have updated today to version 1.0.6, but "Data for key: data does not exist" error still persist
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/common.py", line 66, in _async_update_data params_edits = await self._api.fetch_param_edit_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/econet300/api.py", line 272, in fetch_param_edit_data limits = await self._fetch_api_data_by_key( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ API_EDITABLE_PARAMS_LIMITS_URI, API_EDITABLE_PARAMS_LIMITS_DATA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/config/custom_components/econet300/api.py", line 311, in _fetch_api_data_by_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-12-11 10:13:24.775 DEBUG (MainThread) [custom_components.econet300.common] Finished fetching econet300 data in 0.932 seconds (success: False)

What model do you have? image

ecoMAX360i

Can you try the new version, because unlike mine, your device does not have such a parameter, we are trying to skip it 'Ecomax360-test '

What do you mean? Like I said previously - I have already tried version 1.0.6. But what is this "Ecomax360-test" and how to install it - I don't see any integration named like this

If you use HACS https://www.hacs.xyz/ you can change version and test it
image

@barrteck
Copy link

Ok, I have changed the version to Ecomax360-test, restarted HA, but unfortunately there is the same error. I have attached log file for you
home-assistant_econet300_2024-12-13T07-50-11.253Z.log

@jontofront
Copy link
Owner

Ok, I have changed the version to Ecomax360-test, restarted HA, but unfortunately there is the same error. I have attached log file for you home-assistant_econet300_2024-12-13T07-50-11.253Z.log

Thanks we will check

@synthtex
Copy link

JSON REQUEST from ecoNET device: Error: Dictionary was changed........ something like this.

This error occurs because of the function of requesting limits every 30sec. I added an error check, but this solved the problem with a small number of params to change. If there are more controls entity, then the econet device stops responding. It is necessary to rework the function of requesting limits. Either do it once, when adding an entity, or make a request for limits much less often.

@jontofront
Copy link
Owner

Ok, I have changed the version to Ecomax360-test, restarted HA, but unfortunately there is the same error. I have attached log file for you home-assistant_econet300_2024-12-13T07-50-11.253Z.log

Thanks we will check

try this Ecomax360-test1

@jontofront
Copy link
Owner

JSON REQUEST from ecoNET device: Error: Dictionary was changed........ something like this.

This error occurs because of the function of requesting limits every 30sec. I added an error check, but this solved the problem with a small number of params to change. If there are more controls entity, then the econet device stops responding. It is necessary to rework the function of requesting limits. Either do it once, when adding an entity, or make a request for limits much less often.

Thanks for the remark, but there I think another aproach, ecomax 360 doesn't have one of the endpoint
https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/blob/master/tests/fixtures/ecoMAX360/rmCurrentDataParamsEdits.json

quick fix :)

@barrteck
Copy link

barrteck commented Dec 13, 2024

Ok, I have changed the version to Ecomax360-test, restarted HA, but unfortunately there is the same error. I have attached log file for you home-assistant_econet300_2024-12-13T07-50-11.253Z.log

Thanks we will check

try this Ecomax360-test1

Thanks, tested with Ecomax360-test1 version - now I didn't get any error, but there is "no device or entity" info (attached another log file)
home-assistant_econet300_2024-12-13T10-44-18.194Z.log

image
image

@jontofront
Copy link
Owner

Make some changes when you can @barrteck test it https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/releases/tag/EcoMAX360-test1

I thin better to delete integration an install new if you don't use old version

@barrteck
Copy link

Make some changes when you can @barrteck test it https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/releases/tag/EcoMAX360-test1

I thin better to delete integration an install new if you don't use old version

That's starting to look slightly better now... ;) Devices and entities available, but no data :)
image

@jontofront
Copy link
Owner

can you send me debug.log?

@barrteck
Copy link

can you send me debug.log?

attached
home-assistant_econet300_2024-12-17T19-25-16.786Z.log

@jontofront
Copy link
Owner

jontofront commented Dec 18, 2024 via email

@barrteck
Copy link

barrteck commented Dec 18, 2024

@barrteck You can try the second version EcoMAX360-test2 ,I have improved it even more. It would be good if you could also send a debug log after testing. Jon

On Tue, Dec 17, 2024 at 9:26 PM barrteck @.***> wrote: can you send me debug.log? attached home-assistant_econet300_2024-12-17T19-25-16.786Z.log https://github.com/user-attachments/files/18170412/home-assistant_econet300_2024-12-17T19-25-16.786Z.log — Reply to this email directly, view it on GitHub <#80 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2SSWUABISNWQSAKCY7RFL2GB3HVAVCNFSM6AAAAABQHZPJI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBZGQYTSOJUGM . You are receiving this because you modified the open/close state.Message ID: </issues/80/2549419943 @github.com>

Thanks Jon, now it looks like this. Also debug log attached
home-assistant_econet300_2024-12-18T20-46-24.010Z.log
image

Also attached print screen directrly from ecoNET, maybe you are able to modify sensors to the ones that shows up here
image

@KirilKurkianec KirilKurkianec removed their assignment Dec 19, 2024
@bartmi08
Copy link
Author

bartmi08 commented Dec 20, 2024

Great, thank's a lot

@jontofront
Copy link
Owner

@barrteck
It would be great if you could send me a screenshot of the EcoNET screen and at the same time save the data from the URL: http://your_econet_ip/econet/regParams.

This would help me better understand the issue and make necessary adjustments. Thank you!

@barrteck
Copy link

http://your_econet_ip/econet/regParams

Sure, here you go :)
Screenshot:
image

regParams:
ecoNET_regParams.txt

Thank you a lot for your work

@KirilKurkianec KirilKurkianec pinned this issue Dec 20, 2024
@KirilKurkianec KirilKurkianec unpinned this issue Dec 20, 2024
@jontofront
Copy link
Owner

jontofront commented Dec 22, 2024

@barrteck
I added the sensors based on assumptions from the provided image. Please test it with the ecoMax360 version 3. If everything works, we will release it as a stable version. If there are any corrections or additional issues, it would be great if you could log a separate task specifying the module version, sensor name.
https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/releases/tag/EcoMAX360-test3

@barrteck
Copy link

@barrteck I added the sensors based on assumptions from the provided image. Please test it with the ecoMax360 version 3. If everything works, we will release it as a stable version. If there are any corrections or additional issues, it would be great if you could log a separate task specifying the module version, sensor name. https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/releases/tag/EcoMAX360-test3

Thank you @jontofront
image

@dschense
Copy link

Hey, Ive also running a ecoMAX360i, but I have some more sensors on my ecoNet Dashboard.
Maybe you can have a look?

CleanShot 2024-12-23 at 07 46 07@2x

Do you need any of these files?
/econet/regParams
/econet/regParamsData
/econet/sysParams
/econet/rmCurrentDataParams
/econet/rmCurrentDataParamsEdits

@jontofront jontofront linked a pull request Dec 23, 2024 that will close this issue
@jontofront
Copy link
Owner

jontofront commented Dec 23, 2024

Hey, Ive also running a ecoMAX360i, but I have some more sensors on my ecoNet Dashboard. Maybe you can have a look?

CleanShot 2024-12-23 at 07 46 07@2x

Do you need any of these files? /econet/regParams /econet/regParamsData /econet/sysParams /econet/rmCurrentDataParams /econet/rmCurrentDataParamsEdits

Please send me files by email jontofron@gmail.com also make screenshot if sensor in same time in econet cloud and HA.
Also if you can open another task with sensor which you want to see in your HA
additional you can check whatr endpoint your device have in econet clooud:
image

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ecoMAX360 controller ecoSOL
Projects
None yet
8 participants