ESPHome 2026.2.1
Loading...
Searching...
No Matches
esphome::voice_assistant::Timer Struct Reference

#include <voice_assistant.h>

Public Member Functions

const char * to_str (std::span< char, TO_STR_BUFFER_SIZE > buffer) const
 Format to buffer, returns pointer to buffer (may truncate long names)
 

Data Fields

std::string id
 
std::string name
 
uint32_t total_seconds
 
uint32_t seconds_left
 
bool is_active
 

Static Public Attributes

static constexpr size_t TO_STR_BUFFER_SIZE = 128
 Buffer size for to_str() - sufficient for typical timer names.
 

Detailed Description

Definition at line 67 of file voice_assistant.h.

Member Function Documentation

◆ to_str()

const char * esphome::voice_assistant::Timer::to_str ( std::span< char, TO_STR_BUFFER_SIZE > buffer) const
inline

Format to buffer, returns pointer to buffer (may truncate long names)

Definition at line 77 of file voice_assistant.h.

Field Documentation

◆ id

std::string esphome::voice_assistant::Timer::id

Definition at line 68 of file voice_assistant.h.

◆ is_active

bool esphome::voice_assistant::Timer::is_active

Definition at line 72 of file voice_assistant.h.

◆ name

std::string esphome::voice_assistant::Timer::name

Definition at line 69 of file voice_assistant.h.

◆ seconds_left

uint32_t esphome::voice_assistant::Timer::seconds_left

Definition at line 71 of file voice_assistant.h.

◆ TO_STR_BUFFER_SIZE

size_t esphome::voice_assistant::Timer::TO_STR_BUFFER_SIZE = 128
staticconstexpr

Buffer size for to_str() - sufficient for typical timer names.

Definition at line 75 of file voice_assistant.h.

◆ total_seconds

uint32_t esphome::voice_assistant::Timer::total_seconds

Definition at line 70 of file voice_assistant.h.


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