diff --git a/lib/devices/gen2-helper.js b/lib/devices/gen2-helper.js index 43750346..e9d5ae6f 100644 --- a/lib/devices/gen2-helper.js +++ b/lib/devices/gen2-helper.js @@ -2831,11 +2831,12 @@ function addRGB(deviceObj, rgbId) { 'zh-cn': '亮度', }, type: 'number', - role: 'level.brightness', + role: 'value.brightness', read: true, write: true, min: 0, max: 100, + unit: '%', }, }; @@ -2998,11 +2999,12 @@ function addRGBW(deviceObj, rgbwId) { 'zh-cn': '亮度', }, type: 'number', - role: 'level.brightness', + role: 'value.brightness', read: true, write: true, min: 0, max: 100, + unit: '%', }, };