Closed markthebro closed 9 months ago
OK - After changing the lines 135+136 in sensor.py I get rid of this error message, but got now a new one...
Before:
serial1 = requests.get(get_base_url(config, VAR_PATH) + "/40/10021/0/0/12489")
serial2 = requests.get(get_base_url(config, VAR_PATH) + "/40/10021/0/0/12490")
After:
serial1 = requests.get(get_base_url(config, VAR_PATH) + "/48/10391/0/0/12489")
serial2 = requests.get(get_base_url(config, VAR_PATH) + "/48/10391/0/0/12490")
Based on the code / comment the serial number is needed - well, on the ETA Twin the serial number has a different URI. (ref. to attachment from orig. post).
Anyway - here are now the new messages....
2024-02-20 20:15:46.261 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration eta_heating 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-20 20:15:58.888 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from eta, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'eta' custom integration
2024-02-20 20:15:58.894 WARNING (MainThread) [homeassistant.const] POWER_KILO_WATT was used from eta, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.KILO_WATT instead, please report it to the author of the 'eta' custom integration
2024-02-20 20:15:58.900 WARNING (MainThread) [homeassistant.const] MASS_KILOGRAMS was used from eta, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfMass.KILOGRAMS instead, please report it to the author of the 'eta' custom integration
2024-02-20 20:15:58.905 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from eta, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please report it to the author of the 'eta' custom integration
2024-02-20 20:16:02.933 ERROR (MainThread) [homeassistant.components.sensor] Platform eta_heating does not generate unique IDs. ID eta_1.62508.unknown is already used by sensor.eta_unknown - ignoring sensor.eta_unknown
2024-02-20 20:16:02.933 ERROR (MainThread) [homeassistant.components.sensor] Platform eta_heating does not generate unique IDs. ID eta_1.62508.unknown is already used by sensor.eta_unknown - ignoring sensor.eta_unknown
2024-02-20 20:16:02.933 ERROR (MainThread) [homeassistant.components.sensor] Platform eta_heating does not generate unique IDs. ID eta_1.62508.unknown is already used by sensor.eta_unknown - ignoring sensor.eta_unknown
2024-02-20 20:16:02.935 ERROR (MainThread) [homeassistant.components.sensor] Platform eta_heating does not generate unique IDs. ID eta_1.62508.unknown is already used by sensor.eta_unknown - ignoring sensor.eta_unknown
2024-02-20 20:16:02.935 ERROR (MainThread) [homeassistant.components.sensor] Platform eta_heating does not generate unique IDs. ID eta_1.62508.unknown is already used by sensor.eta_unknown - ignoring sensor.eta_unknown
2024-02-20 20:16:32.974 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.eta_unknown fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eta/sensor.py", line 155, in update
self._attr_native_value = round(int(data['eta']['value']['#text']) * self.factor / int(data['eta']['value']['@scaleFactor']), int(data['eta']['value']['@decPlaces']))
~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'
2024-02-20 20:16:33.018 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.eta_gesamt_energieverbrauch fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eta/sensor.py", line 155, in update
self._attr_native_value = round(int(data['eta']['value']['#text']) * self.factor / int(data['eta']['value']['@scaleFactor']), int(data['eta']['value']['@decPlaces']))
~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'
2024-02-20 20:17:02.997 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.eta_unknown fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eta/sensor.py", line 155, in update
self._attr_native_value = round(int(data['eta']['value']['#text']) * self.factor / int(data['eta']['value']['@scaleFactor']), int(data['eta']['value']['@decPlaces']))
~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'
2024-02-20 20:17:03.049 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.eta_gesamt_energieverbrauch fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eta/sensor.py", line 155, in update
self._attr_native_value = round(int(data['eta']['value']['#text']) * self.factor / int(data['eta']['value']['@scaleFactor']), int(data['eta']['value']['@decPlaces']))
~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'
2024-02-20 20:17:32.989 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.eta_unknown fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1261, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eta/sensor.py", line 155, in update
self._attr_native_value = round(int(data['eta']['value']['#text']) * self.factor / int(data['eta']['value']['@scaleFactor']), int(data['eta']['value']['@decPlaces']))
~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'
OK - Found another Repo (Fork) which seems to work: https://github.com/nigl/homeassistant_eta_integration
Hi,
I have setup Home Assistant as a docker container on a Raspberry Pi 4 running Debian 11. Docker-Version: 25.0.3 Home Assistant Core: 2024.2.2 Home Assistant Frontend: 20240207.1 I'm using the ETA Twin 20kW - Version of REST API is 1.2
The /config is mounted locally on /home/pi/homeassistant-config - so the output of this directory looks like that:
After starting the HA-Container I get the following error:
I don't know if this helps, but please find attached the output of /user/menu of the API as well. menu.xml.txt
Thanks in advance for your help.
Best regards, Markus