ha-smartthinq-sensors: Error executing services for power switch

Describe the bug The power switch no longer functions - the service call fails and the error detailed below is logged. This issue starting occurring a few releases ago, although the switch did use to work.

Expected behavior Switching power off turns off the washer dryer.

Screenshots N/A

Environment details:

  • Ubuntu Server 22.04LTS
  • HomeAssistant Container in docker, v2023.1.7
  • Component version installed: v0.30.0
  • Uncertain - same issue encountered with v0.29.4
  • FWV796STS.ASSQPUK washer dryer:
  • Washer dryer only.

Output of HA logs Paste the relavant output of the HA log here.

This error originated from a custom integration.

Logger: homeassistant.core
Source: custom_components/smartthinq_sensors/wideq/core_async.py:318
Integration: SmartThinQ LGE Sensors (documentation, issues)
First occurred: 19:47:23 (1 occurrences)
Last logged: 19:47:23

Error executing service: <ServiceCall switch.turn_off (c:01GRVVFDNWSFCTX121PZ1GXR90): entity_id=['switch.washer_dryer_power']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1773, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
    await result
  File "/config/custom_components/smartthinq_sensors/switch.py", line 263, in async_turn_off
    await self.entity_description.turn_off_fn(self._wrap_device)
  File "/config/custom_components/smartthinq_sensors/wideq/devices/washerDryer.py", line 238, in power_off
    await self.set(keys[0], keys[1], value=keys[2])
  File "/config/custom_components/smartthinq_sensors/wideq/devices/washerDryer.py", line 273, in set
    await super().set(
  File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 531, in set
    await self._set_control(full_key, ctrl_path=ctrl_path)
  File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 503, in _set_control
    await self._client.session.device_v2_controls(
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1181, in device_v2_controls
    res = await self.post2(cmd_path, payload)
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1018, in post2
    return await self._auth.gateway.core.lgedm2_post(
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 318, in lgedm2_post
    async with self._get_session().post(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 893, in start
    with self._timer:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

Additional context Add any other context about the problem here. Diagnostics attached smartthinq_sensors_diagnostics-json.txt

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 88 (38 by maintainers)

Commits related to this issue

Most upvoted comments

Close this issue, hope is fixed at all.

So far it looks good to me. Thanks @ollo69 for fixing!

diagnostics_json.txt Generated with device off

I wonder if we could just don’t allow to turn device on (keeping switch always disabled if device is off). Doesn’t seems a good idea turn on a device leaving it in a invalid state.

Could be an option. The ‘remote start’ button is the same already. its disabled until the device is on and has remote start active.

When I press on the power button, it turns off the display & all the LEDs, but stays connected to WiFi

Alright, I’ll do it when I get back home later today

You can increase number of release shown in HACS options:

Oh forgot about that, going to check if it’s working on the older version.

This just means that you cannot wake-up your washer in current status. This is not a timeout or what else, just a user exception raised for specific condition.

All I’m saying is that it was working last time I tried it. Washer was in the exact same state.

You close this issue faster than expected 😃 My first question is: are you able to use the switch from LG app? I reopen this, let’s try to better understand why was working some version ago