Skip to content

Commit

Permalink
Add SAGE Doorbell Sensor support
Browse files Browse the repository at this point in the history
  • Loading branch information
sspans committed Aug 23, 2020
1 parent 3fc5df5 commit 591e05e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/HueSensor.js
Expand Up @@ -847,6 +847,18 @@ function HueSensor (accessory, id, obj) {
homekitValue: function (v) { return Math.floor(v / 1000) },
homekitAction: hkZLLSwitchAction
}
} else if (
this.obj.manufacturername === 'Echostar' &&
this.obj.modelid === 'Bell'
) {
this.createLabel(Characteristic.ServiceLabelNamespace.ARABIC_NUMERALS)
this.createButton(1, 'Front Doorbell', SINGLE)
this.createButton(2, 'Rear Doorbell', SINGLE)
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',
Expand Down

0 comments on commit 591e05e

Please sign in to comment.