core: Broken cluster commands and attribute setting / reading in ZHA

The problem

Then trying setting up Zigbee scenes in ZHA its not possible using the basic cluster commands and attribute setting and reading then there is broken or not complete implanted.

What is version of Home Assistant Core has the issue?

core-2021.3.3

What was the last working version of Home Assistant Core?

non

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ZHA

Link to integration documentation on our website

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

Example YAML snippet

# Put your YAML below this line

Anything in the logs that might be useful for us?

# Put your logs below this line
Zigpy discussion that is trying setting up scenes with HA services that  is also failing.

https://github.com/zigpy/zigpy/discussions/695

Many cluster is not OK implanted and its not possible using then for sending commands reading and setting attributes both in “manage cluster” and in HA service “issue_zigbee_cluster_command” and set_zigbee_cluster_attribute = no working basic function in Zigbee.

I is missing most group and nearly all scenes cluster function is not working atl.

Example:

Cluster Attributes
View and edit cluster attributes.
 
Attributes of the selected cluster
Cluster Commands
View and issue cluster commands.
 
Commands of the selected cluster
get_membership (id: 0x0002)
 
Manufacturer Code Override
Value

is resulting in: Wrong number of parameters for request, expected 1 argument(s) and its not possible putting any argument in the GUI.

Also in the above ha service its not possible putting all the arguments that is needed then ZHA have not putting the right config for all commands. One command that need 5 arguments is only accepting 4 = not possible sending the command to the zigbee device.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

check ZCL docs for on/off cluster and what parameters are required for the command. Then add those parameters as a list for the service call. For example:

ieee: <device_ieee>
endpoint_id: 1
...
cluster_id: 6
command: 0
args:
  - 0
  - 100
  - 100

you may need to pick the right command type and cluster_type

You have to provide the parameters from r the command. ZHA/HA does not know the parameters for you.

Nonetheless it would be really helpful to know about the format to enter these parameters, something Home Assistant is not offering any help with.

Like I am struggling to set a Cluster command on_with_timed_off (id: 0x0042) regarding a Sonoff DIY switch. Want to create a fixed puls of a few seconds. The switch should be able to cope with that (if I am right).

No matter what I try, this message keeps popping up:

Failed to call service zha/issue_zigbee_cluster_command. Wrong number of parameters for request, expect 3 argument(s)