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

Feature request: Ability to send arbitrary commands from dashboard #816

Open
sgryphon opened this issue Jul 19, 2024 · 1 comment
Open

Comments

@sgryphon
Copy link

In the UI, as well as exploring nodes and viewing (reading) attribute values, it would be good if there was a way to send arbitrary commands directly (specifically device commands).

This could be hidden behind an Advanced mode (like Home Assistant administration) if there was worry that it could mess things up.

Example:

device command args:
node_id = 12
endpoint_id = 1
cluster_id = 0x0006 (On/Off cluster)
command_name = "On" (0x01)
payload = null

Device commands could be raw IDs, or friendly names from the specs (as above). The commands accepted by each cluster are available in the data:

e.g. For a Nanoleaf light the AcceptedCommandList on cluster 0x6 includes Off, On (0x1), Toggle, OffWithEffect (hex 0x40 = 64), etc

Screenshot 2024-07-19 145802

Some commands, e.g. the On/Off cluster commands for On and Off are fairly simple and don't have any data fields, so should be relatively straight forward.

A command like OffWithEffect (0x40) might be more complex to support various arguments.

A completely custom command (not in the Matter Spec, i.e. for a custom device) would be even more difficult.

@marcelveldt
Copy link
Contributor

Yes, we have in mind to add this but its low prio for the moment.
We have so many other stuff to concentrate on first.

Idea is that you can write attribute values (for attributes that support write) and that we list the commands for the cluster and be able to issue them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants