Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power settings does not works with D #357

Closed
guielec42 opened this issue May 19, 2024 · 7 comments
Closed

Power settings does not works with D #357

guielec42 opened this issue May 19, 2024 · 7 comments

Comments

@guielec42
Copy link

guielec42 commented May 19, 2024

Version of the custom_component

V1.1.9

Configuration

Échec de l'appel du service number/set_value. Failed to set wattage.

Describe the bug

When i set power in HA I have error. Value set by brain os is updated in HA.

Debug log


nregistreur: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:239
intégration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [problèmes](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
S'est produit pour la première fois: 16:55:00 (8 occurrences)
Dernier enregistrement: 17:34:00

    [140236320235968] Unexpected exception
    [140235999475648] Unexpected exception

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 116, in async_set_value
    await entity.async_set_native_value(native_value)
  File "/config/custom_components/miner/number.py", line 117, in async_set_native_value
    raise pyasic.APIError("Failed to set wattage.")
pyasic.errors.APIError: Failed to set wattage.

@b-rowan
Copy link
Collaborator

b-rowan commented May 19, 2024

Duplicate of #355

@b-rowan b-rowan marked this as a duplicate of #335 May 19, 2024
@b-rowan b-rowan marked this as a duplicate of #355 May 19, 2024
@guielec42
Copy link
Author

OK how to fix it ?

@b-rowan
Copy link
Collaborator

b-rowan commented May 20, 2024

Haven't been able to find a fix yet, I'm thinking it's a quirk with the latest BOS+ versions and gRPC, but I'm not sure what it is yet.

@b-rowan
Copy link
Collaborator

b-rowan commented May 20, 2024

I have made some changes that might help (UpstreamData/pyasic@a30a726), so I can try to make a pre-release for testing, but I'm still not sure what the root cause is.

@guielec42
Copy link
Author

Compare to #355 active swith is working properly.
That would be nice, I'm ready to make test and make you feedback.

@b-rowan
Copy link
Collaborator

b-rowan commented May 26, 2024

Can you try with v1.1.10rc1? You will have to enable pre-releases on the version selection page, but I fixed some issues with gRPC commands so maybe itll help.

@guielec42
Copy link
Author

guielec42 commented May 26, 2024 via email

@b-rowan b-rowan closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants