9namespace 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;
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
bool read_sensor_(uint8_t address, sensor::Sensor *sensor)
enum esphome::grove_gas_mc_v2::GroveGasMultichannelV2Component::ErrorCode UNKNOWN
This Class provides the methods to read/write bytes from/to an i2c device.
Base-class for all sensors.
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.