esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
button.hpp
Go to the documentation of this file.
1#pragma once
2
5
9
10#include <cstdint>
11#include <memory>
12#include <string>
13
14namespace esphome::api {
15
16namespace proto {
17class ListEntitiesButtonResponse;
18class ButtonCommandRequest;
19} // namespace proto
20
23 std::string device_class;
24};
25
28 std::uint32_t key = 0;
29};
30
31ButtonInfo parse_button_info(const proto::ListEntitiesButtonResponse& msg);
32std::unique_ptr<ProtoMessage> to_message(const ButtonCommand& cmd);
33
34} // namespace esphome::api
Common entity metadata shared by every entity domain.
Typed mirrors of the ESPHome protobuf enums.
Definition bytes.hpp:10
std::unique_ptr< ProtoMessage > to_message(const AlarmControlPanelCommand &cmd)
ButtonInfo parse_button_info(const proto::ListEntitiesButtonResponse &msg)
Lightweight base class for every generated ESPHome API message.
A command to press a button.
Definition button.hpp:27
std::uint32_t key
Definition button.hpp:28
Static description of a button entity.
Definition button.hpp:22
std::string device_class
Definition button.hpp:23
Fields present on every ListEntities*Response.
Definition entity.hpp:16