Skip to content

Commit

Permalink
Update STARKVIND device to add new convertors
Browse files Browse the repository at this point in the history
Unfortunately it looks like we can't configure reporting for this attribute.
The value is not update when the device is not running. The user can manualy poll the value.
  • Loading branch information
sjorge committed Nov 12, 2021
1 parent d9e3043 commit 099c853
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions devices/ikea.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 099c853

Please sign in to comment.