|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Binary or dimmable light entity for IO‑Homecontrol devices. More...
#include "esphome/core/component.h"#include "esphome/components/light/light_output.h"#include "platform_entity_base.h"Go to the source code of this file.
Classes | |
| class | esphome::home_io_control::IOHomeLight |
| Binary or dimmable light entity for IO‑Homecontrol devices. More... | |
Namespaces | |
| namespace | esphome |
| namespace | esphome::home_io_control |
Binary or dimmable light entity for IO‑Homecontrol devices.
Defaults to a minimal on/off representation (position < 50 is treated as on), validated on real hardware (a Somfy Izymo dimmer; see tests/corpus/captures/somfy_dimmer/). Setting dimmable: true in YAML switches to ColorMode::BRIGHTNESS, mapping HA's 0.0-1.0 brightness onto the same 0-100 IO position field platform_cover.cpp uses for position — confirmed on the same hardware to produce real intermediate brightness levels, not just the two binary extremes.
The protocol gives no machine-readable signal for whether a given LIGHT-type device actually supports intermediate positions (DISCOVER_RESP's subtype byte is manufacturer-opaque) — so dimmable is an explicit opt-in, not auto-detected. Devices that are genuinely binary-only should leave it unset/false.
Definition in file platform_light.h.