The integration combines a light fixture without digital control and a smart plug into a single Home Assistant entity. It detects the current state and brightness mode from power consumption, shows them on the card, and can turn the lamp back on even if it was switched off using its own physical button by briefly power-cycling the smart plug.
While traveling through
Denmark, I was given a tip to try a special kind of hunting โ looking for interesting things at local flea markets. At one of them, I found a curious LED floor lamp with several brightness modes. I loaded it into the trunk and, after getting back home a week later, started wondering: should I replace its electronics, or solve the problem with a hack? And I do love hacks =)
For the next week, the lamp basically became a lab bench. I ran it through every mode, measured current and power, caught spikes, edge cases, and dozens of on/off and recovery scenarios. In the end, the system became self-learning, and the integration accumulated a lot of carefully polished details โ from stable state detection and physical-button handling to recovery logic, delays, learning, and UI behavior. At this point, it is no longer an experimental hack, but a pretty polished solution for everyday use.
Features and highlights:
- Creates a native Home Assistant `light` entity compatible with automations, scripts, and the standard HA interface;
- Turns the lamp on correctly regardless of how it was switched off โ through the smart plug or with the lampโs own physical button;
- Automatically detects the current mode from the actually measured stable power consumption;
- Learns during setup: the user switches through the lampโs modes, while the integration measures and stores the power consumption of each one;
- Filters unstable readings and borderline values so the detected mode does not โjumpโ;
- Supports any number of modes;
- The card is built on top of the standard Home Assistant Tile Card and visually reflects the current brightness;
- Lets you configure the off-state power threshold and the power-cycle delay;
- The interface is localized for 64 Home Assistant locales.
Beyond the core logic, the integration includes a lot of small details that I specifically refined for real everyday use.
Description, instructions and installation (HACS friendly)
I hope the integration will be useful to the community. Iโll be glad to hear feedback, ideas, and unusual use cases ![]()

