Skip to content

Commit

Permalink
Change role from state 'ct' to 'level.color.temperature' to enable
Browse files Browse the repository at this point in the history
control via iot-adapter
  • Loading branch information
fwe86 committed Jun 7, 2019
1 parent a656279 commit e5008df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
@@ -1,3 +1,6 @@
.idea
node_modules
.DS_Store
.DS_Store
/.project
/.settings/
/.gitignore
6 changes: 3 additions & 3 deletions main.js
Expand Up @@ -919,7 +919,7 @@ function getGroupAttributes(groupId) {
common: {
name: list['name'] + ' ' +stateName,
type: 'number',
role: 'color.temp',
role: 'level.color.temperature',
min: 153,
max: 500,
read: true,
Expand Down Expand Up @@ -2112,7 +2112,7 @@ function getAllLights(){
common: {
name: list[keyName]['name'] + ' ' + stateName,
type: 'number',
role: 'color.temp',
role: 'level.color.temperature',
min: 153,
max: 500,
read: true,
Expand Down Expand Up @@ -2351,7 +2351,7 @@ function getLightState(lightId){
common: {
name: list['name'] + ' ' + stateName,
type: 'number',
role: 'color.temp',
role: 'level.color.temperature',
min: 153,
max: 500,
read: true,
Expand Down

0 comments on commit e5008df

Please sign in to comment.