esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
entity.hpp
Go to the documentation of this file.
1#pragma once
2
5
8
9#include <cstdint>
10#include <string>
11
12namespace esphome::api {
13
16struct EntityInfo {
18 std::uint32_t key = 0;
19 std::string object_id;
20 std::string name;
21 std::string icon;
22 bool disabled_by_default = false;
25 std::uint32_t device_id = 0;
26};
27
28} // namespace esphome::api
Enumeration of ESPHome entity domains and name conversion helpers.
Typed mirrors of the ESPHome protobuf enums.
Definition bytes.hpp:10
EntityCategory
Mirror of proto enum EntityCategory.
Definition enums.hpp:20
Fields present on every ListEntities*Response.
Definition entity.hpp:16
bool disabled_by_default
Definition entity.hpp:22
std::string object_id
Definition entity.hpp:19
std::uint32_t key
Stable per-entity identifier used to correlate state and command messages.
Definition entity.hpp:18
std::string icon
Definition entity.hpp:21
EntityCategory entity_category
Definition entity.hpp:23
std::string name
Definition entity.hpp:20
std::uint32_t device_id
Sub-device id (0 = the root device) when the device exposes sub-devices.
Definition entity.hpp:25