Page 1 of 1

2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 15日 15:55
by Shannonyo

Hello,

I have a Zenismart m1 hub: bffd78e06427157329vglw

And moes 2 scene switch: bfc6bea6fed37bbab0djig

I have added it to Home Assistant, but I am only able to view a single event for button press. Both buttons trigger the same event and there is no way to distinguish between them. There is also no way to determine when the button is held down.


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 18日 06:47
by Shannonyo

Hey just wondering if you needed any more info for this?


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 23日 16:25
by Shannonyo

Hi, would love some help with this as it makes the switches unusable at controlling two different lights.
ID for switches:
bff667907bef6c1d5ejt9y
bfc6bea6fed37bbab0djig
bfa36c70fda29ff72arakh


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 23日 17:19
by qiusui

Sorry to keep you waiting, this is an Apple feature, is not supported.


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 23日 17:46
by huangxh
Shannonyo 2025年 Jan 15日 15:55

Hello,

I have a Zenismart m1 hub: bffd78e06427157329vglw

And moes 2 scene switch: bfc6bea6fed37bbab0djig

I have added it to Home Assistant, but I am only able to view a single event for button press. Both buttons trigger the same event and there is no way to distinguish between them. There is also no way to determine when the button is held down.

We report according to the standard Matter buttons, and there is a distinction. We have tested it on Apple, and different buttons trigger different interactions, so we can prove that there is a distinction. If there is a problem on HA, have you tried other platforms to see if there are any issues?
thanks


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 23日 18:00
by huangxh
Shannonyo 2025年 Jan 23日 16:25

Hi, would love some help with this as it makes the switches unusable at controlling two different lights.
ID for switches:
bff667907bef6c1d5ejt9y
bfc6bea6fed37bbab0djig
bfa36c70fda29ff72arakh

As shown in the picture, this is the scenario we tested on Apple HomeKit, which has multiple buttons.


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Jan 28日 16:06
by Shannonyo

Hi,

Sorry for my late reply, I was having issues with my home assistant setup and haven't had time to retest until now. Unfortunately the matter server running on my raspberry pi is the only matter hub I have access to.

I have confirmed there is still only 1 button showing up on home assistant, but I will try and do some more troubleshooting as it might be an issue with my matter server setup, since it's confirmed working on home kit.


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Apr 23日 12:18
by Shannonyo

Hello,

Sorry for replying after awhile, but I thought I would reply instead of making a new post.

I have been pretty busy so haven't been doing much home automation work but I am recently trying to sort this issue out.

I have looked into the logs of the matter server I have set up and am getting the error:
'Failed to decode field .previousPosition, expected type "chip.tlv.uint" got "int".'

Is it possible this issue is related to why I am unable to distinguish the switch positions?

Perhaps there is some backend you can change to have the switch send a chip.tlv.uint instead of an int?

Please let me know if you want any more info


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Apr 23日 16:50
by huangxh
Shannonyo 2025年 Apr 23日 12:18

Hello,

Sorry for replying after awhile, but I thought I would reply instead of making a new post.

I have been pretty busy so haven't been doing much home automation work but I am recently trying to sort this issue out.

I have looked into the logs of the matter server I have set up and am getting the error:
'Failed to decode field .previousPosition, expected type "chip.tlv.uint" got "int".'

Is it possible this issue is related to why I am unable to distinguish the switch positions?

Perhaps there is some backend you can change to have the switch send a chip.tlv.uint instead of an int?

Please let me know if you want any more info

I'm not quite sure exactly where it refers to. But I guess this might be something that requires you to do it yourself on the HA platform?


Re: 2 scene switch functionally not showing in Home Assistant

Posted: 2025年 Apr 24日 21:06
by Shannonyo

Sorry if my previous didn't make much sense.

In home assistant there are two entities that show up for each switch, "button" and "current switch position".

The "button" entity triggers an event if any of the buttons on the switch is pressed and doesn't distinguish between them.

The "current switch position" entity does not change at all regardless of what I press on the switch.

In the logs of the matter server I'm getting the following errors which look to be related to "current switch position":
2025-04-24 07:33:56.820 (Dummy-2) ERROR [chip.clusters.Attribute] Failed Cluster Object: <class 'chip.clusters.Objects.Switch.Events.MultiPressComplete'>
2025-04-24 07:33:56.820 (Dummy-2) ERROR [chip.clusters.Attribute] Failed to decode field .previousPosition, expected type <class 'chip.tlv.uint'>, got <class 'int'>

I'm not too familiar with matter terminology but I believe the issue is that it is expecting an unsigned interger (uint) but getting sent a interger (int) from the switch.

I can't find anywhere in HA to fix this issue or find any information online sadly.