Giter VIP home page Giter VIP logo

Comments (11)

msp1974 avatar msp1974 commented on June 26, 2024 1

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

msp1974 avatar msp1974 commented on June 26, 2024 1

You're right and also the version in const.py. Too much Xmas sherry me thinks! 😀

from wiserhomeassistantplatform.

steleebrooks avatar steleebrooks commented on June 26, 2024

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.

msp1974 avatar msp1974 commented on June 26, 2024

Is this all the time or occasionally?

from wiserhomeassistantplatform.

LGO44 avatar LGO44 commented on June 26, 2024

This happens occasionally once or twice per day

from wiserhomeassistantplatform.

bangcrash avatar bangcrash commented on June 26, 2024

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.

msp1974 avatar msp1974 commented on June 26, 2024

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

bangcrash avatar bangcrash commented on June 26, 2024

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

LGO44 avatar LGO44 commented on June 26, 2024

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

LGO44 avatar LGO44 commented on June 26, 2024

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.

msp1974 avatar msp1974 commented on June 26, 2024

Closing as released v3.4.3 which correctly set versions.

from wiserhomeassistantplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.