Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions 16-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,146 @@
]
},
"minItems": 1
},
"particulate_matter": {
"description": "Concentration of particulate matter in the air.",
"type": "array",
"items": {
"type": "object",
"properties": {
"properties": {
"type": "object",
"properties": {
"PM10": {
"description": "Concentration of particulate matter with a diameter of 10µm or less.",
"type": "object",
"properties": {
"value": {
"description": "The measurement value",
"type": "number",
"minimum": 0
},
"unit": {
"description": "The measurement unit",
"type": "string",
"enum": [
"µg/m³"
]
}
},
"required": [
"value",
"unit"
]
},
"PM4.25": {
"description": "Concentration of particulate matter with a diameter of 4.25µm or less.",
Comment on lines +1342 to +1343
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"PM4.25": {
"description": "Concentration of particulate matter with a diameter of 4.25µm or less.",
"PM4": {
"description": "Concentration of particulate matter with a diameter of 4µm or less.",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some online research and found that "PM4.25" seems to be an industry standard. Are you sure "PM4" isn't just an abbreviation used by your sensor?

Copy link

@mweinelt mweinelt Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

https://sensirion.com/media/documents/6791EFA0/62A1F68F/Sensirion_Datasheet_Environmental_Node_SEN5x.pdf

The actual question would be if statically defined PM sizes are adequate.

"type": "object",
"properties": {
"value": {
"description": "The measurement value",
"type": "number",
"minimum": 0
},
"unit": {
"description": "The measurement unit",
"type": "string",
"enum": [
"µg/m³"
]
}
},
"required": [
"value",
"unit"
]
},
"PM2.5": {
"description": "Concentration of particulate matter with a diameter of 2.5µm or less.",
"type": "object",
"properties": {
"value": {
"description": "The measurement value",
"type": "number",
"minimum": 0
},
"unit": {
"description": "The measurement unit",
"type": "string",
"enum": [
"µg/m³"
]
}
},
"required": [
"value",
"unit"
]
},
"PM1": {
"description": "Concentration of particulate matter with a diameter of 1µm or less.",
"type": "object",
"properties": {
"value": {
"description": "The measurement value",
"type": "number",
"minimum": 0
},
"unit": {
"description": "The measurement unit",
"type": "string",
"enum": [
"µg/m³"
]
}
},
"required": [
"value",
"unit"
]
},
"PM0.3": {
"description": "Concentration of particulate matter with a diameter of 0.3µm or less.",
"type": "object",
"properties": {
"value": {
"description": "The measurement value",
"type": "number",
"minimum": 0
},
"unit": {
"description": "The measurement unit",
"type": "string",
"enum": [
"µg/m³"
]
}
},
"required": [
"value",
"unit"
]
}
}
},
"location": {
"description": "Location the measurement relates to, e.g. <samp>Hackerspace</samp>.",
"type": "string"
},
"description": {
"description": "An extra field that you can use to attach some additional information to this sensor instance",
"type": "string"
},
"lastchange": {
"description": "The Unix timestamp (in seconds) when the sensor value changed most recently",
"type": "number"
}
},
"required": [
"properties"
]
},
"minItems": 1
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Changes should start with one of the following tags:
- [added] The `telegram` contact option was added ([#120])
- [added] The `telegram` contact option for keymasters was added ([#126])

`sensors`:

- [added] The `particulate_matter` sensor was added ([#131])

## v15

Root level:
Expand Down Expand Up @@ -126,3 +130,4 @@ Root level:
[#108]: https://github.com/SpaceApi/schema/pull/108
[#107]: https://github.com/SpaceApi/schema/pull/107
[#115]: https://github.com/SpaceApi/schema/pull/115
[#131]: https://github.com/SpaceApi/schema/pull/131