Skip to content

Commit

Permalink
Support for SmartThings Motion sensor (motionv5) (Koenkk#1295)
Browse files Browse the repository at this point in the history
Add support for SmartThings Motion sensor (2017 model)
zigbeeModel: motionv5
model: STS-IRM-251
  • Loading branch information
ilarrain authored Jun 9, 2020
1 parent 1ad2468 commit de80167
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -5323,6 +5323,25 @@ const devices = [
await configureReporting.batteryVoltage(endpoint);
},
},
{
zigbeeModel: ['motionv5'],
model: 'STS-IRM-251',
vendor: 'SmartThings',
description: 'Motion sensor (2017 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.temperature, fz.ias_occupancy_alarm_2,
fz.ias_occupancy_alarm_1, fz.battery_3V,
],
toZigbee: [],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(1);
await bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
await configureReporting.temperature(endpoint);
await configureReporting.batteryVoltage(endpoint);
},
},
{
zigbeeModel: ['motionv4'],
model: 'STS-IRM-250',
Expand Down

0 comments on commit de80167

Please sign in to comment.