Skip to content

Commit

Permalink
Update AllDeviceAttributes.js
Browse files Browse the repository at this point in the history
Added support for ESP03_SHTWP_31 (e.g. Brillant Smoooth WIZ)
  • Loading branch information
maeb3 authored Oct 12, 2023
1 parent b052712 commit 4ae4485
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions lib/AllDeviceAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ const defaults = {
21:'Sommer',
22:'Herbst',
23:'Tieftauchgang',
24:'Dschuhgel',
24:'Dschungel',
25:'Mojito',
26:'Verein',
26:'Club',
27:'Weihnachten',
28:'Halloween',
29:'Kerzenlicht',
Expand Down Expand Up @@ -557,6 +557,22 @@ function ESP03_SHRGBP_31() {
return defaults;
}

function ESP03_SHTWP_31() {
const data = Object.assign({}, defaults);
delete data['led.speed'];
delete data['led.r'];
delete data['led.g'];
delete data['led.b'];
delete data['led.w'];
delete data['led.c'];
delete data['colors.rgb'];
delete data['colors.hsv'];
delete data['colors.hsl'];
delete data['colors.hex'];
delete data['colors.hue'];
return data;
}

function ESP17_SHTW9_01() {
const data = Object.assign({}, defaults);
delete data['led.sceneId'];
Expand Down Expand Up @@ -652,6 +668,7 @@ module.exports = {
ESP03_SHRGB1W_01: ESP03_SHRGB1W_01,
ESP06_SHDW9_01: ESP06_SHDW9_01,
ESP03_SHRGBP_31: ESP03_SHRGBP_31,
ESP03_SHTWP_31: ESP03_SHTWP_31,
ESP17_SHTW9_01: ESP17_SHTW9_01,
ESP03_SHRGB3_01ABI: ESP03_SHRGB3_01ABI,
ESP04_SHRGBP0_01: ESP04_SHRGBP0_01,
Expand Down

0 comments on commit 4ae4485

Please sign in to comment.