AQI calculator for HM3301 (#1011)

* HM3301 AQI calculator

* remove logs

* fixed after lint

* fixed after lint

* fixed after lint

* check NP for AQI sensor

* validation for AQI sensor
This commit is contained in:
Evgeny
2020-06-12 04:14:54 +02:00
committed by GitHub
parent 821c1a8bbd
commit 42007d03d4
9 changed files with 214 additions and 9 deletions
@@ -0,0 +1,14 @@
#pragma once
#include "Arduino.h"
namespace esphome {
namespace hm3301 {
class AbstractAQICalculator {
public:
virtual uint8_t get_aqi(uint16_t pm2_5_value, uint16_t pm10_0_value) = 0;
};
} // namespace hm3301
} // namespace esphome