Skip to content

Commit

Permalink
added cct light
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaskalov committed Oct 30, 2024
1 parent 0496407 commit eca9bb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@
}, {
"title": "Dimmable Light",
"enum": [ "LIGHT_B" ]
}, {
"title": "CCT Light",
"enum": [ "LIGHT_B_CT" ]
}, {
"title": "RGB Light",
"enum": [ "LIGHT_HSB" ]
Expand Down
7 changes: 7 additions & 0 deletions src/tasmotaDeviceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export const DEVICE_TYPES: { [key: string] : TasmotaDeviceDefinition } = {
Brightness: {get: {cmd: 'Dimmer'}},
},
},
LIGHT_B_CT: {
Lightbulb: {
On: {get: {cmd: 'POWER{idx}'}},
Brightness: {get: {cmd: 'Dimmer'}},
ColorTemperature: {get: {cmd: 'CT'}, props: {minValue: 153}},
},
},
LIGHT_HSB: {
Lightbulb: {
On: {get: {cmd: 'POWER{idx}'}},
Expand Down

0 comments on commit eca9bb8

Please sign in to comment.