Skip to content

Commit

Permalink
Add alexa color temperature reset parameter
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton committed Jan 11, 2022
1 parent 18d7283 commit 45a968e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default {
...(item.type === 'Dimmer' ? [p.colorTemperatureBinding()] : []),
p.colorTemperatureRange(),
p.increment(item.type === 'Dimmer' ? 'INCREASE/DECREASE' : 500),
...(item.type === 'Number' ? [p.requiresSetColorReset()] : []),
p.retrievable()
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ export default {
required: true,
pattern: 'https://.+'
}),
requiresSetColorReset: () => ({
name: 'requiresSetColorReset',
label: 'Requires Reset on Set Color Requests',
type: 'BOOLEAN',
default: false,
visible: (_, config) => !!config.retrievable
}),
requiresSetpointHold: () => ({
name: 'requiresSetpointHold',
label: 'Requires Hold on Setpoint Requests',
Expand Down

0 comments on commit 45a968e

Please sign in to comment.