diff --git a/devices/ikea.js b/devices/ikea.js index 2c190e7517c78..dee3113d53352 100644 --- a/devices/ikea.js +++ b/devices/ikea.js @@ -625,10 +625,16 @@ module.exports = [ model: 'E2007', vendor: 'IKEA', description: 'STARKVIND air purifier', - exposes: [e.fan().withModes(['off', 'low', 'medium', 'high', 'auto'])], + exposes: [ + e.fan().withModes(['off', 'low', 'medium', 'high', 'auto']), + e.pm25().withAccess(ea.STATE_GET), + exposes.enum('air_quality', ea.STATE_GET, [ + 'good', 'ok', 'not_good', 'unknown' + ]).withDescription('Measured air quality'), + ], meta: {fanStateOn: 'auto'}, - fromZigbee: [fz.fan], - toZigbee: [tz.fan_mode], + fromZigbee: [fz.fan, fz.ikea_pm25], + toZigbee: [tz.fan_mode, tz.ikea_pm25], configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(1); await reporting.bind(endpoint, coordinatorEndpoint, ['hvacFanCtrl']);