-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
MOES Star Ring Dimmable 2 & 3 Gang Switch - Dimming is not working from HA HUI #19874
Comments
I can confirm this issue. 1 Gang dimmer is working fine, but 2 gang, diming is not working. |
I am glad its not just me having issues, It was driving me crazy these past few weeks |
Hi @kirovilya can you assist in isolating this issue on the 2 Gang and 3 Gang version. The 1 Gang switch operates flawlessly. Is it possible to replicate the code from the 1 Gang over to the 2 and 3 Gang switches? |
@kirovilya hi, can you assist? |
@demcas Hello. I don't fully understand the problem. the only problem that I sometimes see is that changes are not always displayed in the GUI, but if you refresh the page, then everything will be correct. doc_2023-12-16_10-39-56.mp4 |
Can you create a a HA light card and trying dimming on the HA Dashboard light card not in Z2M GUI. This is where I’m experiencing the problem. |
Hmm. |
I have a 1 gang version of the dimmer switch and the dimming function works perfectly on HA, but the 2 and 3 gang both experience this issue you just encountered. |
Just checking, has the latest commit fixed the issue with the 2-3 gang switches? |
Just tested and no it has not been fixed.. Not sure what to do here, I installed 40 of these light switched my house and my mother's house, frustrating I can't get the dimming to work on the HA light cards. |
Hi, I've been testing a 2-gang Moes dimmer and I got the same issue (or at least I think). I tried to investigate it myself but I have no knowledge of neither z2mqtt nor zigbee and tuya protocols, so maybe it will help someone more knowledgeable. Anyway, the behavior is the following :
Now I've tried to investigate what's happening with Z2QMTT logs and I observed the mqtt calls used by HA and z2m UI are different, so I tried doing manual publishes on mqtt and here's what I found:
The second kind seems to have issues. Furthermore, the following work perfectly:
The issue will only arise when publishing both state and brightness. Here, the brightness is ignored, only the state is set (I tried with state ON and OFF and different brightness values). Here are some logs of Z2M. Note the
Now, there is a second, different issue that come into the mix, and make thing difficult : if you set state to "ON" while it is already "ON", subsequent commands to the brightness will fail. You'll have to cycle the state OFF -> ON so that it can work again. Example:
Note: this also affect the physically dimmer: after sending So in fact, with HA UI, this is what happens :
Now, I still have no idea on how to fix that, but somebody will... |
|
@beam-d thanks for the good analysis Could you check if the situation improves with the following external converter:
external_converters:
- ext_converter.js
|
Edit: Didn't use the latest Edge version. Anyways, the 2-Gang switch still doesn't dim through HA. |
I found the issue: So, To make everything work, I used this:
One issue remain : if state is not skipped, brightness is not sent (as described earlier, only the 1st property is sent). I'll try to look into that later on. |
I'm suprised it doesn't, could it be that brightness is set before state? All entries of the messages are iterated here (and thus should be sent) |
It might be sent (the state.brightness is updated in optimistic mode so it reach that iteration), but the brightness is not changed on the device. |
Just to say, I tried this fix and it works brilliantly! Thank you all so much for your hard working in sorting this issue out. I really appreciate it! |
I'm the least technical person here and was wondering if this fix would be released in the Feb version release of z2mqtt or if I need to manually make changes on my end for this to work? If the later could you help me with a screen record so I can follow your instructions on fixing this? Thank you for helping to fix this issue. |
I just added @beam-d's code to @Koenkk's external converter and restarted z2m. I can now dim the lights through homeassistant, which is amazing. I'm not that technical too, but I just followed the instructions in the previous posts. Looking forward to the fix that solves the setting brightness directly instead of turning on first then setting brightness. Other wise, works brilliantly. |
3-Gang would need a separate extender I suppose. |
Looking at the log, I think the command is indeed sent :
|
@beam-d we probably need a delay between state and brightness. Can you check with https://gist.github.com/Koenkk/3e55da9665e4a50570af7bff210f5816 . If it works reduce the sleep in |
I tried this new converter and got this error when I tried to turn on the dimmer: "'TypeError: utils.sendDataPointBool is not a function'" |
You have to redownload the latest Edge build.
…On Wed, Jan 17, 2024, 07:34 shamimrahim ***@***.***> wrote:
@beam-d <https://github.com/beam-d> we probably need a delay between
state and brightness. Can you check with
https://gist.github.com/Koenkk/3e55da9665e4a50570af7bff210f5816 . If it
works reduce the sleep in await utils.sleep(1000); // <- added this as
low as possible, the value is in ms
I tried this new converter and got this error when I tried to turn on the
dimmer:
"'TypeError: utils.sendDataPointBool is not a function'"
—
Reply to this email directly, view it on GitHub
<#19874 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2GR5HDPOUHSWN6JFEDPUDYO5WIRAVCNFSM6AAAAAA72ZBKLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGA3DGMZXGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just tried with latest edge version and am getting the same error. |
To summarize:
I was going to buy 2/3 gang versions of this dimmer switch. But the ability to turn on the light at a specific brightness is crucial for me. |
FYI I've done some testing with a moes / tuya smart gateway, and it seem that those devices simply don't support setting luminosity while off (that's the same for the 1 gang btw). So it's not specific to HA or z2mqtt |
Do you think that is something that can be added by an firmware update, or is it a hardware limitation? Might be a good idea for someone to get in contact with Moes and try to get these issues resolved once and for all. |
To summarize:
|
Probably not something limited by the hardware, thought it might be a limitation of their mcu / tuya module, or it could just not be updatable. Anyway it is worth asking I suppose. Also we should ask them if they can reduce the on/off fade duration (or make a configuration). |
This minor issue hasn't yet been resolved but it's not that much of a big deal. The lights switch still operates but if you turn on the light with the dimmer scroll bar it turns on with the previous brightness setting and with a double tap it quickly adjusts up to your desired level. |
I installed Moes Star Ring 2gang ZS-SR-EUD-2. It is working, but it is spamming network: Anyone find this issue? |
I'm not experiencing any spamming. My logs only trigger when the switch is used. |
I get this too, but just a standard state update as if a button was pressed. It spams about every second. It only seems to happen with the dimmers. I have a 2-gang non dimmer version and it behaves fine. I find it does it if it loses power. I was doing maintenance yesterday and turned the power off. When I turned it back on, all of these switches spam the log every second. The only way to stop it is to remove each switch from Zigbee2mqtt and allow them to immediately rejoin, which then requires renaming them back to what they were before. It's a right pain. I'm not looking forward to power cuts when I'm away. To be honest I regret buying these. They've been nothing but hassle and a buggy mess. Sometimes their state doesn't match what they're physically doing, e.g. I'll find a light left on which is showing as off in HA and Zigbee2mqtt. I wish there was a firmware update for them, or a custom firmware option, because they're nice switches otherwise. I don't know any decent alternatives in the UK. |
They are indeed nice switches, but I'd returned mine as they're too much trouble than it's worth. Very noticeable lag on the 3 way switch, or no response at all. Also, my unit was listed as 'No neutral in the manual and box, but later found out it indeed requires a neutral wire, which is very misleading. As majority UK light switches have no-neutral wire, this was pretty much useless to me. So far I haven't found any dimmable zigbee based alternative, and will be just reverting back to smart bulbs instead for the time-being. |
I compared this 3 gang switch to 1 gang switch (model EDM-1ZBB-EU) and the 3 gang switch is complete trash. It is too slow and laggy. I'm comparing it to the first gang and as mentioned above second and third gangs are even worse. Does anyone have any multi-gang alternatives? Or should I go with single gang versions everywhere? I'll have to place many switches in a row on my walls... Here is a video of a comparison (I hope you can see the difference. I have no idea how to show it on video properly tbh). |
I also found out that, when using in automation, it doesn't turn on, if I set brightness_pct. Anyone has same issue? |
Same issue. I managed to get around this problem by adding 2 actions in automation. The first by setting the desired brightness (which will not turn on the light) and the second without any option (which will turn on the light at the brightness defined in the first one). Doesn't work if the light is already on or for transition. |
How do you set brightness? I cannot see entity? |
Use the Light "Turn on" action, select your switch as an entity and check the brightness option. |
I'm also struggling with XM-105-M-MS. It's continually spamming the logs and won't allow me to update the brightness from anything that isn't either the lowest or highest values. |
When I use brightness or brightness_pct, it even doesn't turn on.... Anyone successfully set brightness from automation on this Moes Star ring? |
Can you please describe more in detail how you did it or paste yaml. Thank you. |
Simply add 2 actions in a row in your automation.
The second one for turning the light on:
|
A, I see... First action will set brightness but will not turn on light. Second action will. Clever 😉👍 |
For me, it is not working. I have to turn light on, wait 7 seconds, then set brightness. |
@shamimrahim how did you apply this fix? |
I just tried Moes 2 Gang Dimmer Switch and it just works. Why didn't they use hardware from this switch for Star Ring and just add buttons :-) |
I also had to invert all my automations in HA. Setting the brightness before turning on the light doesn't work anymore. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Anyone wants to buy Star Ring Dimmable 2 & 3 Gang Switch? They are still in the box. |
Same issue with brightness on poweri on is also present in Homekit as well, via Homebridge. Also, I have a different variant: “Star ring smart dimmer switch 2 gangs”, model is ZS-SR-EUD2. Can this be fixed? |
What happened?
#18650
What did you expect to happen?
The 1 Gang Version of this switch works flawlessly. Can the settings be replicated for the 2 & 3 Gang switches to fixt this issue?



How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.33.2-1
Adapter firmware version
Latests version
Adapter
Skyconnect
Debug log
2Gang Dimmer Switch - Turn on frontend dim does not work.txt
2Gang Dimmer Switch - Turn on physically - dim works.txt
The text was updated successfully, but these errors were encountered: