Hive-Custom-Component
Hive-Custom-Component copied to clipboard
HiveApiError
Hi there
I have has custom component on HA on a RPi4 working great for a few years now.
I trigger Hive GU10 bulbs using Shelly i3/i4 and wall switches and HA automations.
I noticed when they stopped working that Hive Integration had 'Failed to Setup'.
After much trial and error I removed/reinstalled/deleted old trusted devices etc and not the latest Hive Custom Component sets up OK.
Devices all add to HA OK and work for about a minute, then they stop working.
The issue seems to be the
raise HiveApiError
apyhiveapi.helper.hive_exceptions.HiveApiError
at the botoom of the LOG below.
Can anyone help please?
Thank you
LOG:
Logger: homeassistant.core Source: core.py:2781 First occurred: September 29, 2024 at 23:40:58 (72 occurrences) Last logged: 00:17:58
Error executing service: <ServiceCall light.turn_on (c:01J9013GF20R93TG1RGYCR8G8A): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702> Error executing service: <ServiceCall light.turn_on (c:01J9014DRK018ZWVEJADDV4X62): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702> Error executing service: <ServiceCall light.turn_on (c:01J9015B24BWP4ZYK8CB6KP86K): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702> Error executing service: <ServiceCall light.turn_on (c:01J90168BNS5CCE35THJCN0XCG): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702> Error executing service: <ServiceCall light.turn_on (c:01J90175N5QKMEFQPPS9SM7GPF): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions await coro_or_task File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 626, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/group/light.py", line 179, in async_turn_on await self.hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1021, in entity_service_call raise result from None File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1610, in async_request_call return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 626, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/hive/init.py", line 138, in wrapper await func(self, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/hive/light.py", line 82, in async_turn_on await self.hive.light.turnOn( File "/usr/local/lib/python3.12/site-packages/apyhiveapi/light.py", line 426, in turnOn return await self.setColorTemp(device, color_temp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/apyhiveapi/light.py", line 272, in setColorTemp resp = await self.session.api.setState( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_async_api.py", line 288, in setState resp = await self.request("post", url, data=jsc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_async_api.py", line 92, in request raise HiveApiError apyhiveapi.helper.hive_exceptions.HiveApiError