Hi,
I’ll start by saying that all the Hive automation/scripts were working errorless before switching to 2022.07.* . If I roll back to 2022.06.* no more errors, same automation/scripts.
Home Assistant is running as a VM in a KVM environment no changes were made between releases.
Need to mention that if I manually run the automation or the scripts related I dont get the errors. Strange thing is that the automation and the scripts are working and doing their job.
Here is my automation:
alias: Heating Ground Floor
trigger:
platform: time_pattern
seconds: /30
action:
service_template: >
{% if is_state('input_boolean.gfctsns_windowleft','on') or
is_state('input_boolean.gfctsns_windowright', 'on') or
is_state('input_boolean.gfctsns_diningright', 'on') or
is_state('input_boolean.gfctsns_diningright', 'on') or
is_state('input_boolean.gfctsns_gardendoor', 'on') or
is_state('input_boolean.gfctsns_kitchenwindow', 'on') %}
script.heat_groundfloor_kick_off
{% else %}
script.heat_groundfloor_kick_on
{% endif %}
And the related scripts used:
heat_groundfloor_kick_on:
alias: HeatGroundFloorOn
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: 'auto'
target:
entity_id:
- climate.cloakroomvalve
- climate.livingroomvalve
- climate.kitchenvalve
heat_groundfloor_kick_off:
alias: HeatGroundFloorOff
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: 'off'
target:
entity_id:
- climate.cloakroomvalve
- climate.livingroomvalve
- climate.kitchenvalve
Below a sample of the errors:
2022-07-15 10:37:37 ERROR (MainThread) [homeassistant.components.script.heat_firstfloor_kick_off] HeatFirstFloorOff: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'status'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/hive/__init__.py", line 122, in wrapper
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/hive/climate.py", line 120, in async_set_hvac_mode
await self.hive.heating.setMode(self.device, new_mode)
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/heating.py", line 306, in setMode
await self.session.getDevices(device["hiveID"])
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 418, in getDevices
api_resp_d = await self.api.getAll()
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/api/hive_async_api.py", line 147, in getAll
json_return.update({"original": resp.status})
AttributeError: 'NoneType' object has no attribute 'status'
And a different one but related:
Logger: homeassistant.core
Source: components/hive/climate.py:120
First occurred: 11:42:00 (1 occurrences)
Last logged: 11:42:00
Error executing service: <ServiceCall climate.set_hvac_mode (c:01G80Q5ZWHYX7F5ZF36C66SMJ9): hvac_mode=off, entity_id=['climate.cloakroomvalve', 'climate.livingroomvalve', 'climate.kitchenvalve']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/hive/__init__.py", line 122, in wrapper
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/hive/climate.py", line 120, in async_set_hvac_mode
await self.hive.heating.setMode(self.device, new_mode)
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/heating.py", line 306, in setMode
await self.session.getDevices(device["hiveID"])
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 418, in getDevices
api_resp_d = await self.api.getAll()
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/api/hive_async_api.py", line 147, in getAll
json_return.update({"original": resp.status})
AttributeError: 'NoneType' object has no attribute 'status'
Any help, hint, and/or guidance is very welcome, thank you in advance.