-
-
Notifications
You must be signed in to change notification settings - Fork 318
Matter: add activated carbon filter monitoring #2920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pierre-Gilles
wants to merge
3
commits into
master
Choose a base branch
from
claude/matter-activated-carbon-filter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -824,6 +824,14 @@ const DEVICE_FEATURE_CATEGORIES = { | |
| FAN: 'fan', | ||
| GRID_SENSOR: 'grid-sensor', | ||
| HEATER: 'heater', | ||
| // Air filter monitoring, holding the remaining life of the filters of an air treatment appliance | ||
| // in percent (100 = new, 0 = to be replaced), following the Matter Resource Monitoring model. | ||
| // One type per filter media (HEPA, activated carbon...) so an appliance carrying several physical | ||
| // filters publishes one feature per filter. Boundary with `maintenance`: every consumable or wear | ||
| // part that is not an air filter (vacuum brushes, dust bags, mop pads, resin...) goes to | ||
| // `maintenance`. The value stays kept here even for appliances whose HEPA and carbon media are | ||
| // combined in a single cartridge: they simply expose the single type their protocol reports. | ||
| // The `hepa-` prefix predates activated carbon support and is kept: renaming would be breaking. | ||
| HEPA_FILTER_MONITORING: 'hepa-filter-monitoring', | ||
| HOME_OUTPUT_SENSOR: 'home-output-sensor', | ||
| HUMIDITY_SENSOR: 'humidity-sensor', | ||
|
|
@@ -1334,8 +1342,13 @@ const DEVICE_FEATURE_TYPES = { | |
| TIRE_PRESSURE: 'tire-pressure', // Tire pressure in bar (decimal - sensor) | ||
| WINDOW_OPENED: 'window-opened', // Window open state (binary - sensor) | ||
| }, | ||
| // Air filter monitoring, one type per filter media so a purifier carrying several physical | ||
| // filters exposes one feature per filter instead of two indistinguishable ones. All types hold | ||
| // the same quantity: the remaining life of the filter in percent, 100 = new, 0 = to be replaced | ||
| // (Matter Resource Monitoring `Condition` attribute, whose degradation direction is "down"). | ||
| FILTER_MONITORING: { | ||
| FILTER_LIFE_REMAINING: 'filter-life-remaining', // Remaining life of the HEPA filter in percent (integer - sensor) | ||
| ACTIVATED_CARBON_FILTER_LIFE_REMAINING: 'activated-carbon-filter-life-remaining', // Remaining life of the activated carbon filter in percent (integer - sensor) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not use the existing FILTER_LIFE_REMAINING ? This feature looks super specific
cursor[bot] marked this conversation as resolved.
Outdated
|
||
| }, | ||
| MAINTENANCE: { | ||
| LIFE_REMAINING: 'life-remaining', // Remaining life of a consumable/wear part in percent (integer - sensor) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.