core icon indicating copy to clipboard operation
core copied to clipboard

Vodafone Station cannot press button to restart

Open Tux92 opened this issue 1 year ago • 6 comments

The problem

Integration is configured and working well, but I cannot press button to restart Vodafone Power Station or Fiber because I receive an error

What version of Home Assistant Core has the issue?

core-2024.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Vodafone Station

Link to integration documentation on our website

assistant.io/integrations/vodafone_station

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:238
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:54:50 (3 occurrences)
Last logged: 19:00:43

[139816984672192] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py", line 2149, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py", line 2186, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/entity_component.py", line 272, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 882, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 952, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/button/__init__.py", line 132, in _async_press_action
    await self.async_press()
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/vodafone_station/button.py", line 113, in async_press
    await self.entity_description.press_action(self.coordinator)
  File "/srv/homeassistant/lib/python3.11/site-packages/aiovodafone/api.py", line 512, in restart_connection
    await self._post_sercomm_page("/data/statussupportrestart.json", payload)
  File "/srv/homeassistant/lib/python3.11/site-packages/aiovodafone/api.py", line 291, in _post_sercomm_page
    reply_json = await reply.json(content_type="text/html")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1181, in json
    return loads(stripped.decode(encoding))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.2/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.2/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.2/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Additional information

No response

Tux92 avatar Jan 10 '24 18:01 Tux92

Hey there @paoloantinori, @chemelli74, mind taking a look at this issue as it has been labeled with an integration (vodafone_station) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of vodafone_station can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign vodafone_station Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


vodafone_station documentation vodafone_station source (message by IssueLinks)

home-assistant[bot] avatar Jan 10 '24 18:01 home-assistant[bot]

Same problem..

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:238 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 10:22:39 (1 occurrences) Last logged: 10:22:39

[547177477568] Expecting value: line 1 column 1 (char 0) 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 2149, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2186, 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 882, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/button/init.py", line 132, in _async_press_action await self.async_press() File "/usr/src/homeassistant/homeassistant/components/vodafone_station/button.py", line 113, in async_press await self.entity_description.press_action(self.coordinator) File "/usr/local/lib/python3.11/site-packages/aiovodafone/api.py", line 524, in restart_router await self._post_sercomm_page("/data/statussupportrestart.json", payload, 2) File "/usr/local/lib/python3.11/site-packages/aiovodafone/api.py", line 291, in _post_sercomm_page reply_json = await reply.json(content_type="text/html") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1181, in json return loads(stripped.decode(encoding)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

RogerPrivato avatar Jan 14 '24 09:01 RogerPrivato

Hi @Tux92 and @RogerPrivato , please share your Station model and firmware version.

chemelli74 avatar Jan 14 '24 09:01 chemelli74

@chemelli74 here the infos Screenshot_20240114_113806_Home Assistant

RogerPrivato avatar Jan 14 '24 11:01 RogerPrivato

And this is mine: image

Tux92 avatar Jan 15 '24 21:01 Tux92

Thx, you both share the same hardware. I'll try to investigate but I don't have your hardware.

chemelli74 avatar Jan 15 '24 22:01 chemelli74

Ok, if I can help in any way, tell me what I have to do/try

Tux92 avatar Jan 16 '24 10:01 Tux92