17class ListEntitiesSwitchResponse;
18class SwitchStateResponse;
19class SwitchCommandRequest;
30 std::uint32_t
key = 0;
36 std::uint32_t
key = 0;
Common entity metadata shared by every entity domain.
Typed mirrors of the ESPHome protobuf enums.
std::unique_ptr< ProtoMessage > to_message(const AlarmControlPanelCommand &cmd)
SwitchState parse_switch_state(const proto::SwitchStateResponse &msg)
SwitchInfo parse_switch_info(const proto::ListEntitiesSwitchResponse &msg)
Lightweight base class for every generated ESPHome API message.
Fields present on every ListEntities*Response.
Definition entity.hpp:16
A command to change a switch's state.
Definition switch.hpp:35
std::uint32_t key
Definition switch.hpp:36
bool state
Definition switch.hpp:37
Static description of a switch entity.
Definition switch.hpp:23
bool assumed_state
Definition switch.hpp:24
std::string device_class
Definition switch.hpp:25
A switch's reported state.
Definition switch.hpp:29
std::uint32_t key
Definition switch.hpp:30
bool state
Definition switch.hpp:31