ESPHome 2026.5.1
Loading...
Searching...
No Matches
grove_gas_mc_v2.h
Go to the documentation of this file.
1#pragma once
2
7
9
11 SUB_SENSOR(tvoc)
12 SUB_SENSOR(carbon_monoxide)
13 SUB_SENSOR(nitrogen_dioxide)
14 SUB_SENSOR(ethanol)
15
16 public:
18 void setup() override;
20 void update() override;
21
22 void dump_config() override;
23
24 protected:
31
32 bool read_sensor_(uint8_t address, sensor::Sensor *sensor);
33};
34
35} // namespace esphome::grove_gas_mc_v2
uint8_t address
Definition bl0906.h:4
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:89
This class simplifies creating components that periodically check a state.
Definition component.h:602
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.
Definition i2c.h:132
Base-class for all sensors.
Definition sensor.h:47