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

HC8 sensor support #19714

Merged
merged 4 commits into from
Oct 13, 2023
Merged

HC8 sensor support #19714

merged 4 commits into from
Oct 13, 2023

Conversation

nusse
Copy link
Contributor

@nusse nusse commented Oct 10, 2023

Description:

HC8 CO2 sensor support

This sensor is similar to the common MH-Z19 sensor family, but it uses a different protocol.

Protocol documentation https://spezifisch.codeberg.page/posts/2022-08-23/co2-sensor-reverse-engineering/

This PR implements support for the active output mode sent by the sensor every 1s.

Checklist:

  • [x ] The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.14
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@Jason2866
Copy link
Collaborator

You have to provide the changes in all language files.

@arendst
Copy link
Owner

arendst commented Oct 13, 2023

Thx.

@arendst arendst merged commit f245821 into arendst:development Oct 13, 2023
63 checks passed
@mifritscher
Copy link

I don't find the sensor in the current precompiled version (both release and development) at https://ota.tasmota.com/tasmota32/ / https://ota.tasmota.com/tasmota32/release/? It is not in the list at https://github.com/arendst/Tasmota/blob/v13.2.0/BUILDS.md as well.

@sfromis
Copy link
Contributor

sfromis commented Oct 21, 2023

It is not in any precompiled binaries, you need to do a build with #define USE_HC8

@mifritscher
Copy link

Ah, ok. Works, thanks :-)

@mifritscher
Copy link

I got the problem, that after a few hours/days, the sensor seems to stop sending messages. A power cycle helps. Do you have any hints?

@mifritscher
Copy link

Ah, btw, you can tick the

The code change is tested and works with Tasmota core ESP32 V.2.0.14

;-)

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.

5 participants