Skip to content
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

Support for the Sensirion SCD4x CO₂ Gadget #686

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

chkuendig
Copy link
Contributor

@chkuendig chkuendig commented Feb 1, 2022

This adds initial support for the Sensirion SCD4x CO₂ Gadget (Reference design for SCD4x CO₂ sensors).

image

The protocol is public at Sensirion/arduino-ble-gadget and used to feed data into the Sensirion MyAmbience CO2 App (Android + iOS)

The same protocol is used by a ton of other Sensirion BLE devices, though I haven't added support for them as I don't have them myself. It also doesn't implement any of the other bluetooth features (LED control, download of past data etc.)

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 2, 2022

Please, add a test in ble_parser/test, by copying one of the other tests and modify it for your sensor.
You can get a BLE message by adding _LOGGER.error(data.hex()) temporary in ble_parser/__init__.py (e.g. on your new line 216)

@Ernst79
Copy link
Collaborator

Ernst79 commented Feb 2, 2022

Excellent. Thanks!

@Ernst79 Ernst79 merged commit 5c8ff3f into custom-components:master Feb 2, 2022
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.

None yet

2 participants