diff --git a/config.schema.json b/config.schema.json index 6a6418a..c15aeec 100644 --- a/config.schema.json +++ b/config.schema.json @@ -278,6 +278,9 @@ }, { "title": "Dimmable Light", "enum": [ "LIGHT_B" ] + }, { + "title": "CCT Light", + "enum": [ "LIGHT_B_CT" ] }, { "title": "RGB Light", "enum": [ "LIGHT_HSB" ] diff --git a/src/tasmotaDeviceTypes.ts b/src/tasmotaDeviceTypes.ts index 7d7c2bd..b769d43 100644 --- a/src/tasmotaDeviceTypes.ts +++ b/src/tasmotaDeviceTypes.ts @@ -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}'}},