Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback in zha_device.issue_cluster_command #48376

Closed
systemcrash opened this issue Mar 26, 2021 · 2 comments
Closed

Traceback in zha_device.issue_cluster_command #48376

systemcrash opened this issue Mar 26, 2021 · 2 comments

Comments

@systemcrash
Copy link
Contributor

The problem

When issuing e.g.:

service: zha.issue_zigbee_cluster_command
data: {ieee: '5c:02:72:ff:fe:9b:f0:55', 
endpoint_id: 1,
cluster_id: 0x1000,
cluster_type: out,
command: 0x0007,
command_type: server
}

or

service: zha.issue_zigbee_cluster_command
data:
  ieee: '5c:02:72:ff:fe:9b:f0:55'
  endpoint_id: 1
  cluster_id: 0x1000
  cluster_type: out
  command: 7
  command_type: server

Always traceback about "wrong number of args" :(

What is version of Home Assistant Core has the issue?

core-2021.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Example YAML snippet

service: zha.issue_zigbee_cluster_command
data: {ieee: '5c:02:72:ff:fe:9b:f0:55', 
endpoint_id: 1,
cluster_id: 0x1000,
cluster_type: out,
command: 0x0007,
command_type: server
}

Anything in the logs that might be useful for us?

2021-03-26 16:57:23 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140419493947856] Wrong number of parameters for request, expected 1 argument(s)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 712, in admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 970, in issue_zigbee_cluster_command
    response = await zha_device.issue_cluster_command(
  File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 596, in issue_cluster_command
    response = await cluster.command(
ValueError: Wrong number of parameters for request, expected 1 argument(s)

The same happens from within the GUI.

Zigbee Device Info -> Manage Clusters -> Lightlink 0x1000 -> (attributes is empty??) -> commands: 0x0007 -> Issue command:

2021-03-26 17:12:51 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140419492458704] Wrong number of parameters for request, expected 1 argument(s)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 712, in admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 970, in issue_zigbee_cluster_command
    response = await zha_device.issue_cluster_command(
  File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 596, in issue_cluster_command
    response = await cluster.command(
ValueError: Wrong number of parameters for request, expected 1 argument(s)

Something is wrong:

command, *args, manufacturer=manufacturer, expect_reply=True

@systemcrash
Copy link
Contributor Author

Seems to require the args param, which I think for command 7 can be omitted.

@systemcrash
Copy link
Contributor Author

will reopen if necessary...

@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant