esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
esphome::api::DateEntity Class Reference

Handle to a Date entity. More...

#include <entity_handles.hpp>

Inheritance diagram for esphome::api::DateEntity:
Inheritance graph
[legend]
Collaboration diagram for esphome::api::DateEntity:
Collaboration graph
[legend]

Public Member Functions

std::optional< DateInfoinfo () const
 
std::optional< DateStatestate () const
 
bool missing_state () const
 
std::uint32_t year () const
 
std::uint32_t month () const
 
std::uint32_t day () const
 
void command (DateCommand c) const
 Send a fully-specified command (its key is set automatically).
 
void set (const std::uint32_t year, const std::uint32_t month, const std::uint32_t day) const
 
- Public Member Functions inherited from esphome::api::TypedEntity< DateEntity >
std::string icon () const
 
bool disabled_by_default () const
 
EntityCategory entity_category () const
 
std::uint32_t device_id () const
 
 Entity (Client &client, const std::uint32_t key, std::string object_id, std::string name)
 
- Public Member Functions inherited from esphome::api::Entity
 Entity (Client &client, const std::uint32_t key, std::string object_id, std::string name)
 
std::uint32_t key () const noexcept
 
const std::string & object_id () const noexcept
 
const std::string & name () const noexcept
 

Static Public Member Functions

static constexpr EntityType type ()
 

Additional Inherited Members

- Protected Attributes inherited from esphome::api::Entity
Clientclient_
 
std::uint32_t key_
 
std::string object_id_
 
std::string name_
 

Detailed Description

Handle to a Date entity.

Member Function Documentation

◆ command()

void esphome::api::DateEntity::command ( DateCommand  c) const
inline

Send a fully-specified command (its key is set automatically).

◆ day()

std::uint32_t esphome::api::DateEntity::day ( ) const
inline

◆ info()

std::optional< DateInfo > esphome::api::DateEntity::info ( ) const
inline

◆ missing_state()

bool esphome::api::DateEntity::missing_state ( ) const
inline

◆ month()

std::uint32_t esphome::api::DateEntity::month ( ) const
inline

◆ set()

void esphome::api::DateEntity::set ( const std::uint32_t  year,
const std::uint32_t  month,
const std::uint32_t  day 
) const
inline

◆ state()

std::optional< DateState > esphome::api::DateEntity::state ( ) const
inline

◆ type()

static constexpr EntityType esphome::api::DateEntity::type ( )
inlinestaticconstexpr

◆ year()

std::uint32_t esphome::api::DateEntity::year ( ) const
inline

The documentation for this class was generated from the following file: