ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::homeassistant::HomeassistantLight::Attributes Struct Reference

What Home Assistant reported last, in its own units. More...

#include <homeassistant_light.h>

Data Fields

uint16_t color_temp_kelvin {0}
 
uint8_t brightness {0}
 
std::array< uint8_t, 3 > rgb {}
 
light::ColorMode color_mode {light::ColorMode::UNKNOWN}
 
bool has_rgb {false}
 
optional< bool > state
 

Detailed Description

What Home Assistant reported last, in its own units.

Each attribute arrives as its own message and stays until the next report of it, so an update may change any subset; zero, ColorMode::UNKNOWN and has_rgb say an attribute was never reported.

Definition at line 33 of file homeassistant_light.h.

Field Documentation

◆ brightness

uint8_t esphome::homeassistant::HomeassistantLight::Attributes::brightness {0}

Definition at line 35 of file homeassistant_light.h.

◆ color_mode

light::ColorMode esphome::homeassistant::HomeassistantLight::Attributes::color_mode {light::ColorMode::UNKNOWN}

Definition at line 37 of file homeassistant_light.h.

◆ color_temp_kelvin

uint16_t esphome::homeassistant::HomeassistantLight::Attributes::color_temp_kelvin {0}

Definition at line 34 of file homeassistant_light.h.

◆ has_rgb

bool esphome::homeassistant::HomeassistantLight::Attributes::has_rgb {false}

Definition at line 38 of file homeassistant_light.h.

◆ rgb

std::array<uint8_t, 3> esphome::homeassistant::HomeassistantLight::Attributes::rgb {}

Definition at line 36 of file homeassistant_light.h.

◆ state

optional<bool> esphome::homeassistant::HomeassistantLight::Attributes::state

Definition at line 39 of file homeassistant_light.h.


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