I can make an automation in Home Assistant to change the color of the LED indicator. But is it possible to change the LED intensity? I know I can do this by physically tapping out a sequence on the switch.
I want to set the intensity to zero at night in my bedroom to reduce ambient light when I’m sleeping.
If this is not possible, I think it would be awesome if Inovelli added a new color to the color selector for Off so that this sort of thing is possible after a future firmware update. I’d imagine I’m not the only person who would like to do this.
Depends on which mode you want to adjust.
The LED operates in two modes (1) To indicate the dimmer level, and (2) As an “Alert” or notification bar.
In Mode #1, there is currently no easy way to change the brightness from Home Assistant.
In Mode #2, the RGB bar is controlled as if it is a RGB bulb. In that mode, you can adjust color and brightness.
As further info, the switch does include a “Custom Cluster” and I believe one of the attributes of that cluster can be used to adjust the brightness in Mode #1, however, to do this would first require that the Home Assistant Python Matter Server be updated to recognize the custom cluster, and then a control added. So, its possible to add this to Home Assistant, but not trivial.
I’m definitely talking about Mode #1. Too bad that brightness isn’t exposed as a settable attribute.
I’ve poked around in the matter UI that exposes all the endpoints / clusters / attributes but haven’t been able to find anything for Brightness. Do you know if all of this stuff is documented anywhere? Or where the brightness attribute might be?
For anyone from Inovelli reading this, it would be amazing if you could expose brightness (or create a new color for “off”) in a future firmware update!
You won’t find what you are looking for as a “standard” matter attribute. Some more details. . .
Endpoint 1 is the endpoint for controlling the dimmable load. It includes clusters such as On/Off and Level Control. The Level Control cluster is to control the load’s brightness. I think what you are looking for would be some kind of an additional “adjustable indicator” cluster to adjust the devices LEDs. There is no such thing in Matter (nor is there one standardized in Zigbee). For Mode 2 operation of the LED, Inovelli added an additional Enhanced Color Light endpoint as endpoint 6, allowing you to control the LEDs directly when the endpoint 6 is turned on (that’s why you see a second light control in Home Assistant with the label “Light (6)”. When Light (6) is turned on, it overrides the default use of the LED bar as a dimming level indicator.
However, Endpoint 1 also includes the custom cluster ( shown as “0x00122FFC31” in the Home Assistant Matter Server). That custom cluster has a number of attributes for customizing the switch. I think one of them controls the brightness that you want to adjust, but I’m not certain which one.
I have a request in to Inovelli to get this Custom Cluster documented so that maybe some of the exposed features could be added to HomeAssistant, but I haven’t heard back yet.
I certainly agree that documentation of this custom cluster should happen. But for now, maybe I can go manually adjust the brightness with the tap sequence and see which one of these custom attributes changes value. That should at least point me in the right direction.
Attribute 0x00122f0061 is the LED On Intensity.
Attribute 0x00122f0062 is the LED Off Intensity.
Values are not simply 0 through 10 though. Numbers are skipped. I haven’t yet mapped them all out. Just posting for the benefit of anyone else who finds this thread.
OK, the LED intensity settings of 0 through 10 correspond to values 0, 1, 8, 15, 24, 33, 42, 50, 59, 68 & 75 in the actual attribute which is kind of a weird list.
I haven’t decided yet if I should expose the native values from 0-75 or make it 0-10 in the Home Assistant UI and translate things to the native values. If anyone is reading this (jvm33?) opinions are welcome.
Sorry, just saw this. I don’t really have a suggestion here. I had started mapping out the more complete custom cluster, but I stopped - I know Inovelli is working on a Matter update for these switches - I was kind of hoping that this future release would have more of the device features supported through the Matter Mode Select cluster, and then maybe work on implementing the custom cluster in Home Assistant.
I did notice that you have already submitted some custom cluster work in the Home Assistant Python Matter Server. If I can find my old notes on the other custom cluster attributes, I’ll try to post them for you and maybe some more can be done.
Sounds good! I’ve got a PR mostly ready to go on the core side of things, but I can’t submit it until they cut another release of the python matter server, so I’m kinda twiddling my thumbs waiting on that. But I can def tag some more attributes if you’ve got them documented.
I don’t have any fan controllers, so I can’t say for sure on those, but if the custom closer has the same ID as the Dimmers then it should work there too.
It would be helpful if Inovelli would document this stuff. Would make things a bit easier to build on top of.
Is the PR on home-assistant core? Why can’t you cut it until there is another release of matter-server? I run matter-server in docker seperately, is there a matter-server change that is needed? If not why wouldn’t just a change in HA be enough for the PR? Just curious, I dont’ fully understand how that works. I think I found your code. I wonder how hard to add color
In order to translate this table to the Matter / VTM31-SN attribute for the custom cluster, you take the parameter number from the zigbee table and add 305070080 to get the attribute used in the Matter switch. After doing that, I looked at each parameter and compared to the Matter spec. to see if the Matter spec. already has an equivalent function. The result is the table found in the Word doc “VTM31 Custom Parameters Analysis.docx” found here: GitHub - jvmahon/HomeAssistant-Tools
In my view, its only the items shaded in Green that should be considered for a Home Assistant custom cluster. Most of the other items are either redundant with standardized Matter functions, or are better implemented in a future firmware update using Matter Mode Select or other Matter features rather than custom clusters.
A request if you can help …
Parameter 106 (more specifically, attribute 0x00122f0106 of the custom cluster), is to enable / disable the very annoying feature whereby double-tapping on the “Config” button turns off notifications. Currently, this is set to “On” by default and there is no practical way to turn it off. Can you add this additional parameter to your custom cluster submission that you made to Home Assistant?
This is really one of those “features” that, IMO, should be removed entirely from the devices since it would be better for the hub to be sent the double-tap and decide to turn off the notification. As it is now, this feature just interferes with the ability to use double-tap on the Config button.
@harryh I see the changes in the beta 7.1 release of the python server and I can see the cluste rin the matter server UI. How do access these parameters in Home Assistant or is there some changes that need to be implemented there? Thanks
I have to submit an additional change to home assistant core. I’ll do that after they do an actual release of the matter server. Just waiting around for that to happen.