Binary light entity for IO‑Homecontrol on/off devices.
More...
#include <platform_light.h>
Binary light entity for IO‑Homecontrol on/off devices.
Definition at line 21 of file platform_light.h.
◆ dump_config()
| void esphome::home_io_control::IOHomeLight::dump_config |
( |
| ) |
|
|
override |
◆ get_setup_priority()
| float esphome::home_io_control::IOHomeLight::get_setup_priority |
( |
| ) |
const |
|
inlinenodiscardoverride |
Get setup priority (DATA).
- Returns
- setup_priority::DATA.
Definition at line 29 of file platform_light.h.
◆ get_traits()
| light::LightTraits esphome::home_io_control::IOHomeLight::get_traits |
( |
| ) |
|
|
override |
Return traits: binary on/off only (no dimming).
- Returns
- LightTraits with ColorMode::ON_OFF.
Definition at line 28 of file platform_light.cpp.
◆ on_device_update_()
| void esphome::home_io_control::IOHomeLight::on_device_update_ |
( |
const std::string & | id, |
|
|
const IoDevice & | dev ) |
|
protected |
Handle inbound device status updates.
- Parameters
-
| id | Device ID. |
| dev | Updated device state. |
Definition at line 47 of file platform_light.cpp.
◆ set_device_id()
| void esphome::home_io_control::IOHomeLight::set_device_id |
( |
const std::string & | id | ) |
|
|
inline |
◆ set_device_type()
| void esphome::home_io_control::IOHomeLight::set_device_type |
( |
DeviceType | type | ) |
|
|
inline |
Set the declared device type (from YAML).
- Parameters
-
Definition at line 47 of file platform_light.h.
◆ set_parent()
◆ set_status_poll_interval()
| void esphome::home_io_control::IOHomeLight::set_status_poll_interval |
( |
uint32_t | poll_interval_ms | ) |
|
|
inline |
Configure bounded follow-up polling while a state change is expected.
- Parameters
-
| poll_interval_ms | Poll interval in milliseconds; zero keeps the default single settle poll only. |
Definition at line 53 of file platform_light.h.
◆ set_subtype()
| void esphome::home_io_control::IOHomeLight::set_subtype |
( |
uint8_t | subtype | ) |
|
|
inline |
Set the declared device subtype (from YAML).
- Parameters
-
Definition at line 50 of file platform_light.h.
◆ setup()
| void esphome::home_io_control::IOHomeLight::setup |
( |
| ) |
|
|
override |
◆ setup_state()
| void esphome::home_io_control::IOHomeLight::setup_state |
( |
light::LightState * | state | ) |
|
|
inlineoverride |
Store the HA LightState object for state updates.
- Parameters
-
| state | Pointer to LightState. |
Definition at line 36 of file platform_light.h.
◆ write_state()
| void esphome::home_io_control::IOHomeLight::write_state |
( |
light::LightState * | state | ) |
|
|
override |
◆ device_id_
| std::string esphome::home_io_control::IOHomeLight::device_id_ |
|
protected |
◆ device_type_
◆ parent_
◆ state_
| light::LightState* esphome::home_io_control::IOHomeLight::state_ {nullptr} |
|
protected |
◆ status_poll_interval_ms_
| uint32_t esphome::home_io_control::IOHomeLight::status_poll_interval_ms_ {0} |
|
protected |
◆ subtype_
| uint8_t esphome::home_io_control::IOHomeLight::subtype_ {0} |
|
protected |
◆ suppress_write_
| bool esphome::home_io_control::IOHomeLight::suppress_write_ {false} |
|
protected |
Guard so that an inbound radio status does not echo back as a new outbound command.
Definition at line 68 of file platform_light.h.
The documentation for this class was generated from the following files: