Wiser v3.2
After the installation, the wiser integration restart after a restart of the virtual machine.
In version 3.17 I had 27 devices and 162 inputs with the 3.2 i have 27 devices and 173 inputs
At the first glance everything seems to be Ok the display are the same (I have a Raspberry with version 3.1.7 and a virtual machine with version 3.2
When I want to command the devices only the lights and shutters are not OK.
This are my first tests, I won’t be at home for the next 2 weeks I won’t be able to make a lot of tests
It’s not possible to download le log file from the wiser hub.
- Test lights :
The states seem to be Ok , but light.brightness, cover.position is not updated after a modification threw a card.
When I want to make a command to a device (light or shutter), I have an issue
Log for a command to a ligth
2022-10-17 21:20:16.922 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140523629890192] Rest endpoint not found on Wiser Hub 10.0.0.18
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 202, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1738, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 207, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 678, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 931, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 715, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/light/init.py”, line 546, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File “/config/custom_components/wiser/light.py”, line 157, in async_turn_on
await self._device.turn_on()
File “/usr/local/lib/python3.10/site-packages/aioWiserHeatAPI/light.py”, line 66, in turn_on
return await self._send_command({“RequestOverride”: {“State”: TEXT_ON}})
File “/usr/local/lib/python3.10/site-packages/aioWiserHeatAPI/helpers/device.py”, line 29, in _send_command
result = await self._wiser_rest_controller._send_command(self._endpoint.format(self.id), cmd)
File “/usr/local/lib/python3.10/site-packages/aioWiserHeatAPI/rest_controller.py”, line 169, in _send_command
return await self._do_hub_action(method, url, command_data)
File “/usr/local/lib/python3.10/site-packages/aioWiserHeatAPI/rest_controller.py”, line 98, in _do_hub_action
self._process_nok_response(response, raise_for_endpoint_error)
File “/usr/local/lib/python3.10/site-packages/aioWiserHeatAPI/rest_controller.py”, line 129, in _process_nok_response
raise WiserHubRESTError(
aioWiserHeatAPI.exceptions.WiserHubRESTError: Rest endpoint not found on Wiser Hub 10.0.0.18
When I want to change the brightness
2022-10-17 21:40:08.878 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140523631578416] local variable ‘brightness’ referenced before assignment
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 202, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1738, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 207, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 678, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 931, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 715, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/light/init.py”, line 546, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File “/config/custom_components/wiser/light.py”, line 152, in async_turn_on
_LOGGER.debug(f"Setting brightness of {self.name} to {round((brightness / 255) * 100)}%")
UnboundLocalError: local variable ‘brightness’ referenced before assignment
- Test shutter
Logs for a shutter
2022-10-17 21:32:29.800 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140523629890192] local variable ‘position’ referenced before assignment
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 202, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1738, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 207, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 678, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 931, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 715, in _handle_entity_call
await result
File “/config/custom_components/wiser/cover.py”, line 195, in async_set_cover_position
_LOGGER.debug(f"Setting cover position for {self.name} to {position}")
UnboundLocalError: local variable ‘position’ referenced before assignment
Change the position threw a cover card
2022-10-17 21:45:13.027 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140523631578416] local variable ‘position’ referenced before assignment
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 202, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1738, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 207, in handle_service
await service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 678, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 931, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 715, in _handle_entity_call
await result
File “/config/custom_components/wiser/cover.py”, line 195, in async_set_cover_position
_LOGGER.debug(f"Setting cover position for {self.name} to {position}")
UnboundLocalError: local variable ‘position’ referenced before assignment