Is there a way to send Matter Cluster commands from Home Assistant?

I previously made two blueprints to dim lights using a pico remote that sends a stop and stop dimming command through Zigbee. Z2M Pico Remote and ZHA pico remote.

I would like to make something similar for matter bulbs, but I haven’t been able to figure out a way to send cluster commands to matter devices. Is there a way to get this to work in Home Assistant? I didn’t find anything in the documentation or the actions to play around with.

It looks like the same cluster 0x0008 that I use for these other implementations should exist in the matter spec, which would make it technically possible to do a start/stop dim, but I’m not finding a way to send individual cluster commands.

Thank you!

1 Like

Much like ZigBee, you have to go through a “binding” process to bind one Matter device with another, and in addition, you have to configure an ACL for the target device to give the controlling device access.

As of this writing, HA does not yet have support for binding. However their Matter Server has an API socket that allows one to do this. I was able to accomplish binding using this API about a year or so ago and it was very difficult. But the following community thread has developed some scripts that perhaps make it more workable (I haven’t tried it):

I was wondering that too because I’ve done it in SmartThings and wanted to know how to do it in HA. I see you don’t want bindings but send the Move and Stop commands of the Level control cluster.

Unlike zigbee2mqtt, I don’t think there’s an easy way to write arbitrary attributes or call commands. I guess you would have to interface directly with the Matter server or somehow extend the official Matter add-on to add more actions like move / stop. Maybe it’s like SmartThings and you have to fork the Matter component and create your own extended one.

Let me know if you find anything, I love playing with Matter commands. Many Matter lights have bugs with transitions by the way, hopefully they’ll fix it.

There are also nice commands not being used by the Matter add-on like OnWithTimedOff, useful for added reliability since the auto-off runs in the light and does not depend on the controller or the network. Or the Step with a transition time (which I actually prefer instead of Move / Stop). Move / Stop has a problem, if you have multiple lights and the stop doesn’t arrive at the same time, they will all end in different brightnes levels. Mind there’s no Group management support for Matter in HA yet.

1 Like