ha-smartthinq-sensors
ha-smartthinq-sensors copied to clipboard
Not able to call service remote_start for Dryer (JSONDecodeError)
Describe the bug For some time now i'm unable to call service _remote_start on my Dryer. It is return the exception posted bellow. I cannot precise when this started to happen, but in the past this was working perfectly.
I'm able to get all the sensor info, live running status and others,
This is happening only with the Dryer RC90U2_WW-Dryer (DRYER) Firmware: QC_Modem_1.2.80, i can call remote_start successfully for my Washer.
Environment details:
- Environment (HASSIO, Raspbian, etc): HASSIO
- Home Assistant version installed: 2022.8.5
- Component version installed: v0.24.1
- Last know working version: N.A.
- LG device type and model with issue: RC90U2_WW-Dryer (DRYER)
- LG devices connected (list): WTWN3H-FL (WASHER) Firmware: QC_Modem_1.2.80 , RC90U2_WW-Dryer (DRYER) Firmware: QC_Modem_1.2.80
Output of HA logs Paste the relavant output of the HA log here.
Logger: homeassistant.core
Source: custom_components/smartthinq_sensors/wideq/washerDryer.py:138
Integration: SmartThinQ LGE Sensors ([documentation](https://github.com/ollo69/ha-smartthinq-sensors), [issues](https://github.com/ollo69/ha-smartthinq-sensors/issues))
First occurred: 16:26:40 (1 occurrences)
Last logged: 16:26:40
Error executing service: <ServiceCall script.appliance_start_lge_dryer (c:01GARS08DT14RPSTRJDAGQ7KC9)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 290, in service_handler
await script_entity.async_turn_on(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 398, in async_turn_on
await coro
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 428, in _async_run
return await self.script.async_run(script_vars, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 751, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/smartthinq_sensors/sensor.py", line 631, in async_remote_start
await self._api.device.remote_start()
File "/config/custom_components/smartthinq_sensors/wideq/washerDryer.py", line 213, in remote_start
await self.set(keys[0], keys[1], key=keys[2])
File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 1105, in set
full_key = self._prepare_command(ctrl_key, command, key, value)
File "/config/custom_components/smartthinq_sensors/wideq/washerDryer.py", line 194, in _prepare_command
return self._prepare_command_v1(cmd, key)
File "/config/custom_components/smartthinq_sensors/wideq/washerDryer.py", line 138, in _prepare_command_v1
str_list = json.loads(str_data)
File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 9 (char 8)
Additional context Add any other context about the problem here.