mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Also assume brightness on publish. https://github.com/Koenkk/zigbee2mqtt/issues/1155
This commit is contained in:
@@ -123,6 +123,7 @@ class DevicePublish {
|
||||
msg[_key] = converted.cmd.toUpperCase();
|
||||
} else if (brightnessConverters.includes(converter)) {
|
||||
msg[_key] = 'ON';
|
||||
msg['brightness'] = converted.zclData.level;
|
||||
}
|
||||
|
||||
this.publishEntityState(entity.ID, msg, true);
|
||||
|
||||
Reference in New Issue
Block a user