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
74.17k stars 31.14k forks source link

Tuya integration not working for Dehumidifier #119865

Open dpupkov opened 5 months ago

dpupkov commented 5 months ago

The problem

After adding Tuya integration, I can see my dehumidifier device. Controls are not working with error in the log. Problematic device - "the Smart Dry Plus\u2122 Connect Dehumidifier "

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

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

Diagnostics information

config_entry-tuya-b0b356c5aac19ba698b41fe4e8d905a2.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-06-18 10:53:53.997 DEBUG (SyncWorker_4) [homeassistant.components.tuya] Sending commands for device bff9f899c554e81973xu5i: [{'code': None, 'value': True}]
2024-06-18 10:53:56.114 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281473453087120] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  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/helpers/entity.py", line 1676, in async_turn_on
    await self.hass.async_add_executor_job(ft.partial(self.turn_on, **kwargs))
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 168, in turn_on
    self._send_command([{"code": self._switch_dpcode, "value": True}])
  File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 275, in _send_command
    self.device_manager.send_commands(self.device.id, commands)
  File "/usr/local/lib/python3.12/site-packages/tuya_sharing/manager.py", line 93, in send_commands
    return self.device_repository.send_commands(device_id, commands)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tuya_sharing/device.py", line 180, in send_commands
    self.api.post(f"/v1.1/m/thing/{device_id}/commands", None, {"commands": commands})
  File "/usr/local/lib/python3.12/site-packages/tuya_sharing/customerapi.py", line 192, in post
    return self.__request("POST", path, params, body)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tuya_sharing/customerapi.py", line 121, in __request
    raise Exception(f"network error:({ret['code']}) {ret['msg']}")
Exception: network error:(1100) param is empty

Additional information

No response

home-assistant[bot] commented 5 months ago

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

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


tuya documentation tuya source (message by IssueLinks)

dpupkov commented 5 months ago

Error in UI: "Failed to call service fan/turn_off. network error:(1100) param is empty"

FilipParyz commented 4 months ago

I have the same issue with "CONCEPT Perfect Air Smart OV2220" It boasts Tuya support and even though it works in the Tuya app, I can't control it through the HomeAssistant. I can support with additional data or create a new issue if needed.

mistrello96 commented 4 months ago

+1, same problem with my dehumidifier

KansaiGaijin commented 2 months ago

I have the same issue with my AQUARIA S1 (Wi-Fi+Bluetooth) as well as the sensor for temperature and humidity when connected via Passive BLE Monitor constantly sitting at Dehumidifier - Humidity -6.0% Dehumidifier - Temperature -46.9 °C

justahuman33 commented 2 months ago

same issue here

msstefan2 commented 1 month ago

same issue... any solutions? tuya local can help?

vespian commented 1 week ago

same issue with Mozano Dry Assist 280 which in json output advertises as:

product_id  "ixyayclwqngayhhl"
product_name    "668客人5180"

Problem is occuring on the latest stable home assistant: 2024.11.