home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

Supla's covers can't use cover.set_cover_position service #121007

Open marithpl opened 5 days ago

marithpl commented 5 days ago

The problem

When you try to set position of cover for ex 50% you receive an error Nie udało się wywołać usługi cover/set_cover_position. unknown error.

The error implicate to HomeKit bridge - when I allow cover devices to connect to HomeKit it uses the same service.

Rejestrator: homeassistant.core
Źródło: core.py:2761
Pierwsze zdarzenie: 01:38:06 (24 zdarzenia)
Ostatnio zalogowany: 11:41:09

Error executing service: <ServiceCall cover.set_cover_position (c:01J1SD1ZFCE2S3K3HK7EKY08RJ): entity_id=['cover.jadalnia_3'], position=100>
Error executing service: <ServiceCall cover.set_cover_position (c:01J1SD20JW8TVTARSHTV8K5M0S): entity_id=['cover.jadalnia_3'], position=0>
Error executing service: <ServiceCall cover.set_cover_position (c:01J1SD3G5R1X0C9PRGW9HE3YJM): entity_id=['cover.jadalnia_2'], position=0>
Error executing service: <ServiceCall cover.set_cover_position (c:01J1SD3GW976WNAD7CTKJK6QX3): entity_id=['cover.jadalnia_3'], position=100>
Error executing service: <ServiceCall cover.set_cover_position (c:01J1SD3HPRDHRCVT7CVR39HFG1): entity_id=['cover.jadalnia_3'], position=0>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/supla/cover.py", line 74, in async_set_cover_position
    await self.async_action("REVEAL", percentage=kwargs.get(ATTR_POSITION))
  File "/usr/src/homeassistant/homeassistant/components/supla/entity.py", line 61, in async_action
    await self.server.execute_action(self.channel_data["id"], action, **add_pars)
  File "/usr/local/lib/python3.12/site-packages/asyncpysupla/__init__.py", line 78, in execute_action
    assert 200 < resp.status < 299
AssertionError
image

What version of Home Assistant Core has the issue?

2024.6.4

What was the last working version of Home Assistant Core?

2024.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Supla

Link to integration documentation on our website

https://www.home-assistant.io/integrations/supla/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 days ago

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

Code owner commands Code owners of `supla` 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 supla` 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)


supla documentation supla source (message by IssueLinks)

janstepanek159 commented 4 days ago

I have the same issue. Please help! It worked perfect until like 2-3weeks ago.

PrzemekKondziela commented 4 days ago

Same problem here.

mwegrzynek commented 1 day ago

Hi! Can you run Supla integration with Debug logging enabled and post logs? See: https://www.home-assistant.io/docs/configuration/troubleshooting/. I don't use this integration anymore (I switched my devices to MQTT), so to debug it I would need

Don't post these details here. PM me on Twitter (@mwegrzynek) to arrange safe transfer of these details.

marithpl commented 1 day ago

Hi! Can you run Supla integration with Debug logging enabled and post logs? See: https://www.home-assistant.io/docs/configuration/troubleshooting/. I don't use this integration anymore (I switched my devices to MQTT), so to debug it I would need

  • server name
  • private token
  • optionally: id of the channel I can test the integration on (basically open and close the shutters)

Don't post these details here. PM me on Twitter (@mwegrzynek) to arrange safe transfer of these details.

I'm not able to PM you on twitter.