mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 05:52:20 +00:00
As mentioned, simply adding brightness_percent seems to fix the problem. I'll look into doing the reverse if the state is off when I have more time.
This commit is contained in:
1 parent
85b57cd639
commit
62254bb67a
1 file changed
+1
-1
@@ -132,7 +132,7 @@ class EntityPublish extends Extension {
|
||||
|
||||
// Ensure that state and brightness are executed before other commands.
|
||||
const entries = Object.entries(json);
|
||||
entries.sort((a, b) => (['state', 'brightness'].includes(a[0]) ? -1 : 1));
|
||||
entries.sort((a, b) => (['state', 'brightness', 'brightness_percent'].includes(a[0]) ? -1 : 1));
|
||||
|
||||
// For each attribute call the corresponding converter
|
||||
const usedConverters = [];
|
||||
|
||||
Reference in new issue
Block a user