esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
switch.hpp File Reference

Typed Switch entity (info + state + command). More...

#include <esphome/api/model/entity.hpp>
#include <esphome/api/model/enums.hpp>
#include <esphome/api/proto/proto_message.hpp>
#include <cstdint>
#include <memory>
#include <string>
Include dependency graph for switch.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esphome::api::SwitchInfo
 Static description of a switch entity. More...
 
struct  esphome::api::SwitchState
 A switch's reported state. More...
 
struct  esphome::api::SwitchCommand
 A command to change a switch's state. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::api
 
namespace  esphome::api::proto
 

Functions

SwitchInfo esphome::api::parse_switch_info (const proto::ListEntitiesSwitchResponse &msg)
 
SwitchState esphome::api::parse_switch_state (const proto::SwitchStateResponse &msg)
 
std::unique_ptr< ProtoMessageesphome::api::to_message (const SwitchCommand &cmd)
 

Detailed Description

Typed Switch entity (info + state + command).