ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
mics_4514.h
Go to the documentation of this file.
1#pragma once
2
6#include "esphome/core/hal.h"
7
8namespace esphome::mics_4514 {
9
11 SUB_SENSOR(carbon_monoxide)
12 SUB_SENSOR(nitrogen_dioxide)
13 SUB_SENSOR(methane)
14 SUB_SENSOR(ethanol)
15 SUB_SENSOR(hydrogen)
16 SUB_SENSOR(ammonia)
17
18 public:
19 void setup() override;
20 void dump_config() override;
21 void update() override;
22
23 protected:
24 bool warmed_up_{false};
25 bool initial_{true};
26
29};
30
31} // namespace esphome::mics_4514
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:84
This class simplifies creating components that periodically check a state.
Definition component.h:585
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132