Comments (11)
@LGO44 - I have worked out how to fix what HA2023.12 broke with aiohttp and reverted to using this in v3.4.2 (just released). Can you please install this version and tell me if you still get these errors. Thanks
from wiserhomeassistantplatform.
You're right and also the version in const.py. Too much Xmas sherry me thinks! 😀
from wiserhomeassistantplatform.
I also have a similar error following the recent update.
Hub reset, attempted to rollback the integration but same error exists, was working fine before
Below is the rerror that I am seeing -
Logger: custom_components.wiser.coordinator
Source: custom_components/wiser/coordinator.py:155
Integration: Drayton Wiser Integration for Home Assistant (documentation, issues)
First occurred: 13:34:53 (31 occurrences)
Last logged: 13:54:40
Connection error trying to communicate with Wiser Hub 192.168.1.128 for url http://192.168.1.128:80/data/v2/domain/. Error is All connection attempts failed
Wiser Hub firmware version
3.14.0
System info
Core 2023.12.1
Supervisor 2023.11.6
Operating System 11.2
Frontend 20231208.2
from wiserhomeassistantplatform.
Is this all the time or occasionally?
from wiserhomeassistantplatform.
This happens occasionally once or twice per day
from wiserhomeassistantplatform.
I have not yet updated to 3.4.1 and I'm having the same problem with version 3.3.11. The strange part is that if I send a command to the Away Mode switch an error is logged but the command successfully changes the state of the switch. I'm using NodeRed and the error is:
"Call-service error. Response error trying to communicate with Wiser Hub <Hub_IP> for url http://<Hub_IP>:80/data/v2/domain/System. Error is 400, message="Data after
Connection: close:\n\n b'0'\n ^", url=URL('http://<Hub_IP>:80/data/v2/domain/System')"
The error in HA is:
`Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:238
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:43:05 (3 occurrences)
Last logged: 12:45:26
[139732725383232] Response error trying to communicate with Wiser Hub <Hub_IP> for url http://<Hub_IP>:80/data/v2/domain/System. Error is 400, message="Data after Connection: close
:\n\n b'0'\n ^", url=URL('http://<Hub_IP>:80/data/v2/domain/System')
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 965, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 622, in read
await self._waiter
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_proto.py", line 224, in data_received
messages, upgraded, tail = self._parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Data after Connection: close
:
b'0'
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/rest_controller.py", line 112, in _do_hub_action
await getattr(self._session, action.value)(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 601, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 967, in start
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message="Data after Connection: close
:\n\n b'0'\n ^", url=URL('http://<<Hub_IP>>:80/data/v2/domain/System')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 878, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/wiser/switch.py", line 243, in async_turn_on
await fn(True)
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/system.py", line 130, in set_away_mode_enabled
if await self._send_command({"RequestOverride": {"Type": 2 if enabled else 0}}):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/system.py", line 101, in _send_command
result = await self._wiser_rest_controller._send_command(WISERSYSTEM, cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/rest_controller.py", line 208, in _send_command
return await self._do_hub_action(method, url, command_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioWiserHeatAPI/rest_controller.py", line 136, in _do_hub_action
raise WiserHubConnectionError(
aioWiserHeatAPI.exceptions.WiserHubConnectionError: Response error trying to communicate with Wiser Hub <Hub_IP> for url http://<Hub_IP>:80/data/v2/domain/System. Error is 400, message="Data after Connection: close
:\n\n b'0'\n ^", url=URL('http://<Hub_IP>:80/data/v2/domain/System')`
from wiserhomeassistantplatform.
@bangcrash if you are on HA2023.12.x you have to upgrade to at least 3.4 of the integration. There still seems to be the odd person having issues with this but HA2023.12 broke the integration on v3.3.11 and below.
from wiserhomeassistantplatform.
@msp1974
Thanks very much. I am on 2023.12.x so I have just upgraded to 3.4 and it has solved the problem.
from wiserhomeassistantplatform.
@msp1974 , since I have installed the V3.4.2 this afternoon, I got no error . I've update also the core to the version 2023.12.4
I think that you forget to update the manifest.json by this version.
from wiserhomeassistantplatform.
You're right and also the version in const.py. Too much Xmas sherry me thinks! 😀
Yes perhaps, but it only happens to those who are alive.
from wiserhomeassistantplatform.
Closing as released v3.4.3 which correctly set versions.
from wiserhomeassistantplatform.
Related Issues (20)
- Question: Can Home Assistant talk to Wiser TRVs without a controller? HOT 1
- Naming sensor.wiser_heathub
- Smart Plugs - ghost entries after name change HOT 2
- Deprecated call `async_add_job` HOT 1
- HEADS UP - Manage Temps Recipe V2 Potentially Causing HA 2024.4 Crashes HOT 2
- Heads up: depreciation warning in Logs HOT 1
- Unable to set Hot Water on or off in automation HOT 1
- [Question] Should "Default Heating Boost Temperature" config option be used in presets? HOT 4
- Connection error HOT 4
- Slow updating of sensor HOT 2
- Allow un-assigning schedule from wiser.assign_schedule service HOT 1
- Consumption of my energy sensors randomly goes to 0 and initiate a new cycle for my energy dashboard by mistake HOT 5
- deprecation warning: integration 'wiser' calls `async_add_job` HOT 1
- False Alert - please delte
- Card font size cannot easily be changes HOT 1
- V3.4.7 : Warning: color mode [stop working in 2025.3] HOT 1
- Boost/Cancel/Toggle Hot Water and Cancel Heating Overides no longer working HOT 5
- HW Climate Functionality Review HOT 2
- Unable to control Hot Water HOT 1
- TransferEncodingError: 400, message='Not enough data for satisfy transfer length header.' HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiserhomeassistantplatform.