core icon indicating copy to clipboard operation
core copied to clipboard

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

Open codyc1515 opened this issue 1 year ago • 17 comments

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

codyc1515 avatar Feb 03 '24 05:02 codyc1515

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)

home-assistant[bot] avatar Feb 03 '24 05:02 home-assistant[bot]

Bonjour, idem pour moi plus d'appareils visibles

phanesaleg avatar Feb 03 '24 12:02 phanesaleg

same and same log

philippe44 avatar Feb 05 '24 04:02 philippe44

Bonjour, idem pour moi plus d'appareils visibles

Dussilex avatar Feb 05 '24 18:02 Dussilex

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

felipezibert avatar Feb 07 '24 00:02 felipezibert

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

esotere avatar Feb 21 '24 20:02 esotere

Same log...

piellex avatar Feb 25 '24 17:02 piellex

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'

janeuzil avatar Feb 29 '24 20:02 janeuzil

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

JonReed avatar Mar 01 '24 09:03 JonReed

any update on a fix for this

ghost avatar Mar 15 '24 22:03 ghost

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 avatar Mar 19 '24 06:03 matchmee

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?

matchmee avatar Mar 19 '24 06:03 matchmee

same issue here

asahani avatar Mar 27 '24 10:03 asahani

same too, waiting this fix.

alejovea9 avatar Apr 10 '24 18:04 alejovea9

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

zion1987 avatar Apr 12 '24 08:04 zion1987

Bump. Same problem here. Any solutions or resolutions?

osalcedo avatar May 07 '24 02:05 osalcedo

I have the same problem :/

dekiel123 avatar May 09 '24 17:05 dekiel123

is anyone looking at it?

asahani avatar May 25 '24 10:05 asahani

same issue here

platini76 avatar Jul 22 '24 17:07 platini76

Same

alejovea9 avatar Jul 22 '24 18:07 alejovea9

Same here. Running 2024.7.3.

karolperkowski avatar Jul 23 '24 00:07 karolperkowski

Same here

STUB6969 avatar Jul 28 '24 13:07 STUB6969