esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Attributes | List of all members
esphome::api::LightCommand Struct Reference

A command to mutate a light. Each optional field is sent only when engaged. More...

#include <light.hpp>

Public Attributes

std::uint32_t key = 0
 
std::optional< bool > state
 
std::optional< float > brightness
 
std::optional< ColorModecolor_mode
 
std::optional< float > color_brightness
 
std::optional< LightRgbrgb
 
std::optional< float > white
 
std::optional< float > color_temperature
 
std::optional< float > cold_white
 
std::optional< float > warm_white
 
std::optional< std::uint32_t > transition_length
 
std::optional< std::uint32_t > flash_length
 
std::optional< std::string > effect
 

Detailed Description

A command to mutate a light. Each optional field is sent only when engaged.

Member Data Documentation

◆ brightness

std::optional<float> esphome::api::LightCommand::brightness

◆ cold_white

std::optional<float> esphome::api::LightCommand::cold_white

◆ color_brightness

std::optional<float> esphome::api::LightCommand::color_brightness

◆ color_mode

std::optional<ColorMode> esphome::api::LightCommand::color_mode

◆ color_temperature

std::optional<float> esphome::api::LightCommand::color_temperature

◆ effect

std::optional<std::string> esphome::api::LightCommand::effect

◆ flash_length

std::optional<std::uint32_t> esphome::api::LightCommand::flash_length

◆ key

std::uint32_t esphome::api::LightCommand::key = 0

◆ rgb

std::optional<LightRgb> esphome::api::LightCommand::rgb

◆ state

std::optional<bool> esphome::api::LightCommand::state

◆ transition_length

std::optional<std::uint32_t> esphome::api::LightCommand::transition_length

◆ warm_white

std::optional<float> esphome::api::LightCommand::warm_white

◆ white

std::optional<float> esphome::api::LightCommand::white

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