Skip to content

Commit

Permalink
Update gen2-helper.js
Browse files Browse the repository at this point in the history
Fix:
AssertionError: common.role "level.dimmer" is invalid for type "number" - shellyplusrgbwpm (RGB0.Brightness): expected 'level.dimmer' to be one of [ 'level.blind', …(29) ]
  • Loading branch information
Paradoxa authored Sep 12, 2024
1 parent 9acad87 commit ea3ac12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/devices/gen2-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,7 @@ function addRGB(deviceObj, rgbId) {
'zh-cn': '亮度',
},
type: 'number',
role: 'level.dimmer',
role: 'level.brightness',
read: true,
write: true,
min: 0,
Expand Down Expand Up @@ -2998,7 +2998,7 @@ function addRGBW(deviceObj, rgbwId) {
'zh-cn': '亮度',
},
type: 'number',
role: 'level.dimmer',
role: 'level.brightness',
read: true,
write: true,
min: 0,
Expand Down Expand Up @@ -3068,7 +3068,7 @@ function addRGBW(deviceObj, rgbwId) {
'zh-cn': '白色通道',
},
type: 'number',
role: 'level.dimmer',
role: 'level.color.white',
read: true,
write: true,
min: 0,
Expand Down

0 comments on commit ea3ac12

Please sign in to comment.