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.72k stars 28.87k forks source link

Tuya Diffuser does not work - Exception: network error:(1100) param is empty #109488

Open codyc1515 opened 5 months ago

codyc1515 commented 5 months ago

The problem

Cannot switch on or off.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:240
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:04:20 (1 occurrences)
Last logged: 18:04:20

[546460383424] network error:(1100) param is empty
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1615, 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 277, 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

What version of Home Assistant Core has the issue?

core-2024.2.0b3

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

tuya-15e740842f0dc974743a85fae6789ef1-Diffuser-d18fb770d086ce966e52a10256eb4143.json

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 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)

phanesaleg commented 5 months ago

Bonjour, idem pour moi plus d'appareils visibles

philippe44 commented 4 months ago

same and same log

Dussilex commented 4 months ago

Bonjour, idem pour moi plus d'appareils visibles

felipezibert commented 4 months ago

Também estou com o mesmo problema. Dispositivos nao esta o disponiveis.

esotere commented 4 months ago

Same Issue. Beginning to believe Tuya products worked better and were more stable on Home Assistant prior to the partnership.

piellex commented 4 months ago

Same log...

janeuzil commented 4 months ago

I have a similar issue:

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']}")
                                      ~~~^^^^^^^^
KeyError: 'code'
JonReed commented 4 months ago

Same log for me too:

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
Mike-S911 commented 3 months ago

any update on a fix for this

matchmee commented 3 months ago

I have the same issue, I created a new issue until I saw this...sorry...here is the issue I created:

https://github.com/home-assistant/core/issues/113787

matchmee commented 3 months ago

Before this issue, were any of you able to correctly control the diffuser with light/color selection as well as timers and level of mist?

asahani commented 3 months ago

same issue here

alejovea9 commented 2 months ago

same too, waiting this fix.

zion1987 commented 2 months ago

Снимок экрана 2024-04-12 112506 +1

osalcedo commented 1 month ago

Bump. Same problem here. Any solutions or resolutions?

dekiel123 commented 1 month ago

I have the same problem :/

asahani commented 1 month ago

is anyone looking at it?