Skip to content

Add support to SCD30 CO2 sensor coming through Luftdaten firmware #950

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szakeetm
Copy link

@szakeetm szakeetm commented Aug 8, 2025

Description

Luftdaten firmware sends SCD30 sensor data as scd30_co2_ppm, which currently can't be matched to a sensor title.

Motivation and Context

With this addition, if you name a sensor phenomenon 'co2', 'carbon_dioxide', 'kohlendioxid', 'kohlenstoffdioxid' it will match against the sensor data sent by Luftdaten firmware.

How Has This Been Tested?

Luftdaten firmware provides debug info on the JSON sent. Example JSON measurement:

Data to send: {"software_version": "NRZ-2024-135", "sensordatavalues":
[{"value_type":"SCD30_temperature","value":"27.08"},{"value_type":"SCD30_humidity","value":"46.97"},
{"value_type":"SCD30_co2_ppm","value":"579.00"},{"value_type":"samples","value":"1089060"},
{"value_type":"min_micro","value":"25"},{"value_type":"max_micro","value":"93121"},
{"value_type":"interval","value":"30000"},{"value_type":"signal","value": [...]

Of which the {"value_type":"SCD30_co2_ppm","value":"579.00"} is the key. luftdatenHandler.js will split at the first underscore and try to match co2_ppm to a Phenomenon textbox value defined by the user.

Types of changes

luftdatenHandler.js matchings enum has two new entries for co2 and co2_ppm phenomenon and likely user-defined titles.

Checklist:

  • My code has been linted using yarn run lint.
  • My code does not break the tests (yarn run test)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant