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

Typed MediaPlayer 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 <optional>
#include <string>
#include <vector>
Include dependency graph for media_player.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esphome::api::MediaPlayerSupportedFormat
 A single audio format advertised as supported by a media player. More...
 
struct  esphome::api::MediaPlayerInfo
 Static description of a media player entity. More...
 
struct  esphome::api::MediaPlayerStatus
 A media player's reported state. More...
 
struct  esphome::api::MediaPlayerControl
 A command to mutate a media player. More...
 

Namespaces

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

Functions

MediaPlayerInfo esphome::api::parse_media_player_info (const proto::ListEntitiesMediaPlayerResponse &msg)
 
MediaPlayerStatus esphome::api::parse_media_player_state (const proto::MediaPlayerStateResponse &msg)
 
std::unique_ptr< ProtoMessageesphome::api::to_message (const MediaPlayerControl &cmd)
 

Detailed Description

Typed MediaPlayer entity (info + state + command).