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

Airco: Reservation sleep time is not available #846

Open
erkr opened this issue Dec 31, 2024 · 0 comments
Open

Airco: Reservation sleep time is not available #846

erkr opened this issue Dec 31, 2024 · 0 comments

Comments

@erkr
Copy link

erkr commented Dec 31, 2024

Describe the bug
Thanks for the great efforts spend on this integration for LG devices!
I ran into a bug. When I set the sleeptimer like this:

action: smartthinq_sensors.set_sleep_time
data:
  sleep_time: 60
target:
  entity_id: climate.slaapkamer_airco

That works when the airco is in cool mode. But not in heat mode. In that mode I get this error: Reservation sleep time is not available.

Expected behavior
Should also work in heat mode. With the official app the mode doesn't matter, so I guess it's just not implemented for all modes by this integration.
Screenshots
If applicable, add screenshots to help explain your problem.

Environment details:

  • Environment: HASSIO,
  • Home Assistant version installed: 2024.12.5
  • Component version installed: 0.40.3
  • Last know working version: na
  • LG device type and model with issue: LG ⸱ RAC_056905_WW-RAC (AC)
  • LG devices connected (list):
    3 devices
    Output of HA logs
    Paste the relavant output of the HA log here.
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:526
First occurred: 10:06:41 (2 occurrences)
Last logged: 10:07:04

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Reservation sleep time is not available
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/smartthinq_sensors/climate.py", line 473, in async_set_sleep_time
    await self._device.set_reservation_sleep_time(sleep_time)
  File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 879, in set_reservation_sleep_time
    raise ValueError("Reservation sleep time is not available")
ValueError: Reservation sleep time is not available

Additional context
Add any other context about the problem here.

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

1 participant