9 namespace grove_gas_mc_v2 {
13 SUB_SENSOR(carbon_monoxide)
14 SUB_SENSOR(nitrogen_dioxide)
19 void setup()
override;
21 void update()
override;
23 void dump_config()
override;
const float DATA
For components that import data from directly connected sensors like DHT.
This class simplifies creating components that periodically check a state.
virtual void setup()
Where the component's initialization should happen.
bool read_sensor_(uint8_t address, sensor::Sensor *sensor)
enum esphome::grove_gas_mc_v2::GroveGasMultichannelV2Component::ErrorCode UNKNOWN
Implementation of SPI Controller mode.
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.
esphome::sensor::Sensor * sensor