Skip to content

Commit

Permalink
Update HueSensor.js
Browse files Browse the repository at this point in the history
Support (button of) Lutron Aurora, see #522.
  • Loading branch information
ebaauw committed Sep 6, 2019
1 parent 0fd9e1a commit 62bb451
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/HueSensor.js
Expand Up @@ -632,13 +632,26 @@ function HueSensor (accessory, id, obj) {
homekitValue: function (v) { return Math.floor(v / 1000) },
homekitAction: hkZLLSwitchAction
}
} else if (
this.obj.manufacturername === 'Lutron' &&
this.obj.modelid === 'Z3-1BRL'
) {
// Lutron Aurora, see #522.
this.createLabel(Characteristic.ServiceLabelNamespace.ARABIC_NUMERALS)
this.createButton(1, 'Button', SINGLE_LONG)
this.type = {
key: 'buttonevent',
homekitValue: function (v) { return Math.floor(v / 1000) },
homekitAction: hkZLLSwitchAction
}
} else {
this.log.warn(
'%s: %s: warning: ignoring unknown %s sensor %j',
this.bridge.name, this.resource, this.obj.type, this.obj
)
}
break
case 'ZLLRelativeRotary':
case 'CLIPSwitch': // 2.1
// We'd need a way to specify the number of buttons, cf. max value for
// a CLIPGenericStatus sensor.
Expand Down

0 comments on commit 62bb451

Please sign in to comment.