Before and after: OpenWrt Associated Stations page showing unknown hostnames resolved to device names

Fixing the '?' Hostname Problem on OpenWrt Access Points

If you run OpenWrt as a dumb access point, you’ve probably noticed that LuCI’s Network > Wireless > Associated Stations page shows ? for every client hostname. This is because the AP doesn’t run a DHCP server - another device (your router) handles that - so /tmp/dhcp.leases is empty and LuCI has nothing to look up. The hostnames are right there, though. DHCP packets from clients flow through the AP’s bridge, and they contain the hostname in Option 12. We just need to capture them. ...

March 9, 2026 · 6 min · 1246 words · Stepan Mazurov

ESPHome YK-H/531E Climate Component: IR Control for AC Units

Many AC units ship with IR-only remotes and no smart control interface, making home automation integration difficult. This custom ESPHome component, modernized from @iverasp’s original work, implements the YK-H/531E IR protocol so an ESP32 or ESP8266 can control compatible air conditioners over infrared. Features In addition to what was already working I added a few features to my custom YKH531E component it includes the following capabilities: Temperature Range: 16-32°C (60-90°F) Operating Modes: Auto, Cool, Dry, Fan, Heat (heat is untested) Fan Speeds: Low, Medium, High, Auto Swing Control: Vertical swing support (Corrected) Temperature Units: Support for both Celsius and Fahrenheit (Fahrenheit added!) Installation Adding the component to your ESPHome configuration is straightforward: ...

July 11, 2025 · 3 min · 479 words · Stepan Mazurov