Skip to content

Commit

Permalink
Add TuYa Clusters for TS0505A (#237)
Browse files Browse the repository at this point in the history
* Add TuYa clusters

* Fix linter issues

* update moveToHueAndSaturationBrightness name to tuyaMoveToHueAndSaturationBrightness

* Update cluster.ts

Co-authored-by: Schutt <[email protected]>
Co-authored-by: Koen Kanters <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2020
1 parent 69bf482 commit 8390ff3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,8 @@ const Cluster: {
colorCapabilities: {ID: 16394, type: DataType.uint16},
colorTempPhysicalMin: {ID: 16395, type: DataType.uint16},
colorTempPhysicalMax: {ID: 16396, type: DataType.uint16},
tuyaBrightness: {ID: 61441, type: DataType.uint16},
tuyaRgbMode: {ID: 61440, type: DataType.uint16},
},
commands: {
moveToHue: {
Expand Down Expand Up @@ -2095,6 +2097,15 @@ const Cluster: {
{name: 'transtime', type: DataType.uint16},
],
},
tuyaMoveToHueAndSaturationBrightness: {
ID: 6,
parameters: [
{name: 'hue', type: DataType.uint8},
{name: 'saturation', type: DataType.uint8},
{name: 'transtime', type: DataType.uint16},
{name: 'brightness', type: DataType.uint8},
],
},
moveToColor: {
ID: 7,
parameters: [
Expand Down Expand Up @@ -2196,6 +2207,12 @@ const Cluster: {
{name: 'maximum', type: DataType.uint16},
],
},
tuyaRgbMode: {
ID: 240,
parameters: [
{name: 'enable', type: DataType.uint8},
]
},
},
commandsResponse: {
},
Expand Down

0 comments on commit 8390ff3

Please sign in to comment.