Skip to content

Commit

Permalink
Added support for new Philips Hue Outdoor Motion Sensor (Koenkk#294)
Browse files Browse the repository at this point in the history
* Update devices.js

Added support for the new Philips Hue Outdoor Motion Sensor

* Update devices.js
  • Loading branch information
jonnycastaway authored and qosmio committed Dec 25, 2019
1 parent 455ede2 commit 7f8d276
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -6236,6 +6236,41 @@ const devices = [
execute(device, actions, callback);
},
},
{
zigbeeModel: ['SML002'],
model: '9290019758',
vendor: 'Philips',
description: 'Hue motion outdoor sensor',
supports: 'occupancy, temperature, illuminance',
fromZigbee: [
fz.hue_battery, fz.generic_occupancy, fz.generic_temperature,
fz.ignore_occupancy_change, fz.generic_illuminance, fz.ignore_illuminance_change,
fz.ignore_temperature_change,
],
toZigbee: [tz.generic_occupancy_timeout],
ep: (device) => {
return {
'': 2, // default
'ep1': 1,
'ep2': 2, // e.g. for write to msOccupancySensing
};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 2);

const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('msIlluminanceMeasurement', coordinator, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.bind('msOccupancySensing', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
(cb) => device.report('msOccupancySensing', 'occupancy', 0, 600, null, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
];

execute(device, actions, callback);
},
},

// CREE
{
Expand Down

0 comments on commit 7f8d276

Please sign in to comment.