ESPHome 2026.3.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 {
9namespace mics_4514 {
10
12 SUB_SENSOR(carbon_monoxide)
13 SUB_SENSOR(nitrogen_dioxide)
14 SUB_SENSOR(methane)
15 SUB_SENSOR(ethanol)
16 SUB_SENSOR(hydrogen)
17 SUB_SENSOR(ammonia)
18
19 public:
20 void setup() override;
21 void dump_config() override;
22 void update() override;
23
24 protected:
25 bool warmed_up_{false};
26 bool initial_{true};
27
30};
31
32} // namespace mics_4514
33} // namespace esphome
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:94
This class simplifies creating components that periodically check a state.
Definition component.h:527
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7