Skip to content

Commit

Permalink
Add profile for the IKEA air purifier (#1542)
Browse files Browse the repository at this point in the history
This change adds a profile to supports all of the attributes supported
by the STARKVIND air purifier device. Additionally, the PM2.5
measurement attribute is added as a subscribed attribute.
  • Loading branch information
nickolas-deboom authored Aug 7, 2024
1 parent 5d8e9af commit 7eaeae2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: air-purifier-hepa-aqs-pm25-meas
components:
- id: main
label: Main
capabilities:
- id: airQualityHealthConcern
version: 1
- id: airPurifierFanMode
version: 1
- id: fanSpeedPercent
version: 1
- id: fineDustSensor
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: AirPurifier
- id: hepaFilter
label: Hepa filter
capabilities:
- id: filterState
version: 1
- id: filterStatus
version: 1
categories:
- name: AirPurifier
4 changes: 4 additions & 0 deletions drivers/SmartThings/matter-thermostat/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ local subscribed_attributes = {
[capabilities.fineDustHealthConcern.ID] = {
clusters.Pm25ConcentrationMeasurement.attributes.LevelValue,
},
[capabilities.fineDustSensor.ID] = {
clusters.Pm25ConcentrationMeasurement.attributes.MeasuredValue,
clusters.Pm25ConcentrationMeasurement.attributes.MeasurementUnit,
},
[capabilities.dustSensor.ID] = {
clusters.Pm25ConcentrationMeasurement.attributes.MeasuredValue,
clusters.Pm25ConcentrationMeasurement.attributes.MeasurementUnit,
Expand Down

0 comments on commit 7eaeae2

Please sign in to comment.