Drayton Wiser Home Assistant Integration

with the release 3.1.7 I have less issue (6 times in 8 days), and with shorter duration (about half an hour) instead of 2 or 3 times per day randomly and sometimes more than 4 hours…

the fix is on the good way
as an old Schneider guy I can be a tester

Having looked at this again - not all these unknowns are due to rebooting the HA, they just seem to be very brief unknowns - not sure what could be causing them, but they don’t seem to be having any significant effect. These are the entries following on from my previous table:

15/10/2022 22:10 unknown
15/10/2022 22:11 Success
16/10/2022 07:37 Failed
16/10/2022 08:15 Success
16/10/2022 13:16 unknown
16/10/2022 13:16 Success
16/10/2022 20:13 Failed
16/10/2022 20:14 Success
16/10/2022 21:44 unknown
16/10/2022 21:44 Success

I definitely wasn’t always rebooting the HA at these times.

I’m sure many will be happy to volunteer. Add me to the list on one of my hubs and hopefully we can see a compare and contrast. Thanks Jamie, appreciate the team working on this.

1 Like

How lucky are we having a team member directly looking at this issue? Of all the projects that I have followed over 15+ years, that has to be a first!

3 Likes

All,

Just so you know. We have released a new v3.2.0beta version today.

This has had quite a lot of changes in the backend to move to a fully async api and leverage more of HAs native functions, all in the target of keeping the integration as performant as we can.

I would appreciate if some of you could download and test this (via HACs). I have done quite thorough testing on it so you should not see many major issues but there could be some. However, it is good to get feedback from the wild! :wink:

Thanks
Mark

2 Likes

Amazing :slight_smile: Mine doesnt have an issue so Im not a good beta tester

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.

  1. 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

  1. 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

Happy to be a beta tester if required.

wiser_hub_signal_strength and wiser_signal_strength_percent are no more updated since the update

Thanks @LGO44 will fix these and update to beta2. Have a good break - presume that’s still what retired people call it!? :grinning:

1 Like

Thanks Edmund, whilst Im still here Mark @msp1974 deserves most of the praise for the last 2yrs! Two kids, new house, job being more demanding redesigning enterprise software, means less time to “twiddle”! That said there is some light for me soon :slight_smile:
And Yes Im hoping Wiser is more popular than the other brands because of this integration and now fab support by @jamiebennett

2 Likes

Thank you to everyone that has volunteered to take a beta build to see if that helps resolve Wifi issues, we are preparing a release and I will be in contact with some of you this week.

7 Likes

Getting the reported signal strength issue as well.

The blue line is the signal strength reported by the Hub. It remains on the previous reported strength after updating to the beta.

The purple line is the signal strength received by the access point from the hub.

I am aware both strengths are low.

Yes thanks. I’m out tonight but will issue update tomorrow.

So far, no drop on the new beta - posting as that will force a drop tonight :laughing::sweat_smile::laughing::sweat_smile:

@LGO44 and @dunxd - beta2 available with fixes for lights and shutter control and signal sensors not updating. Appreciate your help in testing.

1 Like

Measurement of WiFi Signal Strength is working again for me with beta2:

1 Like

I 'll do it next week end.

Hi, i have also Wiser Gateway and I can’t get the secret. There is no setup button to press. So is there any movement’s to get wiser gateway to HA which is updated to newest version and hacs is installed too.

Question on “away mode”.
Its my understanding that away mode is a ‘global’ mode, applies to the hub and all devices. Is that correct? I’ve already set up an automation to turn away mode on when both me and my wife have left the house and turn away mode off when either one is back.

However, is there a way to set a specific room to ‘away’ mode in the same fashion?

Use case: I work from home some days from my “office” room, but some other days I go to the actual work building. HA can detect when I leave and when I come back to the house. My wife may or may not be at the house.

Normally, my home office room is set to follow a schedule to heat up during the day at set times and lower the temperature during the night. Also has lower temp during the weekend.

When I’m away temporarily, I want this room to follow the ‘weekend’ schedule - or at least to be set to a set temperature instead of following the normal schedule. And ofcourse to revert to normal schedule when I’m back.

What’s the best way to achieve that? I’m getting a bit lost with the different entities and services that the integration offers (and the HA-provided services as well).