esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
command_builder.hpp
Go to the documentation of this file.
1#pragma once
2
6
27
28namespace esphome::api {
29
32void request_camera_image(const Client& client, bool single, bool stream);
33
35void send_command(const Client& client, const SwitchCommand& cmd);
37void send_command(const Client& client, const ButtonCommand& cmd);
39void send_command(const Client& client, const NumberCommand& cmd);
41void send_command(const Client& client, const SelectCommand& cmd);
43void send_command(const Client& client, const TextCommand& cmd);
45void send_command(const Client& client, const LightCommand& cmd);
47void send_command(const Client& client, const FanCommand& cmd);
49void send_command(const Client& client, const CoverCommand& cmd);
51void send_command(const Client& client, const ValveCommand& cmd);
53void send_command(const Client& client, const LockCommandData& cmd);
55void send_command(const Client& client, const SirenCommand& cmd);
57void send_command(const Client& client, const ClimateCommand& cmd);
59void send_command(const Client& client, const WaterHeaterCommand& cmd);
61void send_command(const Client& client, const MediaPlayerControl& cmd);
63void send_command(const Client& client, const AlarmControlPanelCommand& cmd);
65void send_command(const Client& client, const DateCommand& cmd);
67void send_command(const Client& client, const TimeCommand& cmd);
69void send_command(const Client& client, const DateTimeCommand& cmd);
71void send_command(const Client& client, const UpdateControl& cmd);
72
73} // namespace esphome::api
Typed AlarmControlPanel entity (info + state + command).
Typed Button entity (info + command).
Async client for a single device.
Definition client.hpp:38
Asynchronous orchestrator: owns the event loop and a Connection, and exposes connect/send/subscribe p...
Typed Climate entity (info + state + command).
Typed Cover entity (info + state + command).
Typed Date entity (info + state + command).
Typed DateTime entity (info + state + command).
Typed Fan entity (info + state + command).
Typed Light entity (info + state + command).
Typed Lock entity (info + state + command).
Typed MediaPlayer entity (info + state + command).
Definition bytes.hpp:10
void send_command(const Client &client, const SwitchCommand &cmd)
Send a SwitchCommand to the device.
void request_camera_image(const Client &client, bool single, bool stream)
Request a camera still image (single) or start/stop a stream.
Typed Number entity (info + state + command).
Typed Select entity (info + state + command).
Typed Siren entity (info + state + command).
A command to change an alarm control panel's state.
Definition alarm_control_panel.hpp:39
A command to press a button.
Definition button.hpp:27
A command to mutate a climate entity. Each optional field is sent only when engaged.
Definition climate.hpp:61
A command targeting a cover entity.
Definition cover.hpp:41
A command to set a date's value.
Definition date.hpp:35
A command to set a datetime's value.
Definition datetime.hpp:33
A command to mutate a fan. Each optional field is sent only when engaged.
Definition fan.hpp:44
A command to mutate a light. Each optional field is sent only when engaged.
Definition light.hpp:57
A command targeting a lock entity.
Definition lock.hpp:46
A command to mutate a media player.
Definition media_player.hpp:54
A command to set a number's value.
Definition number.hpp:41
A command to set a select's value.
Definition select.hpp:37
A command targeting a siren entity.
Definition siren.hpp:38
A command to change a switch's state.
Definition switch.hpp:35
A command to set a text entity's value.
Definition text.hpp:39
A command to set a time's value.
Definition time.hpp:35
A command to control an update entity.
Definition update.hpp:44
A command targeting a valve entity.
Definition valve.hpp:39
A command to mutate a water heater.
Definition water_heater.hpp:50
Typed Switch entity (info + state + command).
Typed Text entity (info + state + command).
Typed Time entity (info + state + command).
Typed Update entity (info + state + command).
Typed Valve entity (info + state + command).
Typed WaterHeater entity (info + state + command).