Skip to content

Commit

Permalink
SMSZB-120: added test, removed tamper (#2507)
Browse files Browse the repository at this point in the history
* Add test state output to ias_smoke_alarm_1

* added test exposes entry

* SMSZB-120: added test, removed tamper
  • Loading branch information
lnagel authored Apr 24, 2021
1 parent 0c6a0c7 commit 2ebb160
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ const converters = {
restore_reports: (zoneStatus & 1<<5) > 0,
trouble: (zoneStatus & 1<<6) > 0,
ac_status: (zoneStatus & 1<<7) > 0,
test: (zoneStatus & 1<<8) > 0,
};
},
},
Expand Down
2 changes: 1 addition & 1 deletion devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -16238,7 +16238,7 @@ const devices = [
endpoint: (device) => {
return {default: 35};
},
exposes: [e.temperature(), e.battery(), e.smoke(), e.battery_low(), e.tamper(), e.warning()],
exposes: [e.temperature(), e.battery(), e.smoke(), e.battery_low(), e.test(), e.warning()],
},
{
zigbeeModel: ['HESZB-120'],
Expand Down
1 change: 1 addition & 0 deletions lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ module.exports = {
switch: () => new Switch().withState('state', true, 'On/off state of the switch'),
tamper: () => new Binary('tamper', access.STATE, true, false).withDescription('Indicates whether the device is tampered'),
temperature: () => new Numeric('temperature', access.STATE).withUnit('°C').withDescription('Measured temperature value'),
test: () => new Binary('test', access.STATE, true, false).withDescription('Indicates whether the device is being tested'),
valve_detection: () => new Switch().withState('valve_detection', true).setAccess('state', access.STATE_SET),
vibration: () => new Binary('vibration', access.STATE, true, false).withDescription('Indicates whether the device detected vibration'),
voc: () => new Numeric('voc', access.STATE).withUnit('ppb').withDescription('Measured VOC value'),
Expand Down

0 comments on commit 2ebb160

Please sign in to comment.