esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
entity_type.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <string>
7
8namespace esphome::api {
9
11enum class EntityType {
12 Unknown,
14 Sensor,
16 Switch,
17 Light,
18 Cover,
19 Fan,
20 Climate,
21 Number,
22 Select,
23 Text,
24 Button,
25 Lock,
27 Camera,
28 Siren,
30 Date,
31 Time,
33 Valve,
34 Event,
35 Update,
39};
40
42const char* entity_type_name(EntityType type);
43
46EntityType entity_type_from_token(const std::string& token);
47
48} // namespace esphome::api
Definition bytes.hpp:10
EntityType
One per ESPHome entity domain (the <X> in ListEntities<X>Response).
Definition entity_type.hpp:11
EntityType entity_type_from_token(const std::string &token)
Parse the <X> token from a message name (e.g.
const char * entity_type_name(EntityType type)
Domain name, e.g. EntityType::BinarySensor -> "BinarySensor".