|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
An ESPHome external component for controlling IO-Homecontrol 2W devices (two-way, with device feedback). Control shutters, blinds, awnings, openers, curtains, and other IO-Homecontrol devices directly from ESPHome and Home Assistant using an ESP32 board with an SX1276 or SX1262 radio module.
Contributions are welcome. If you have hardware that is not listed here, an unsupported device, or validated pin mappings, see the Get Involved section below.
You need an ESP32 board with an SX1276 or SX1262 radio module operating at 868 MHz.
The table below lists board mappings that are known to be plausible for this component. Confirmed means they were tested in this repo. Untested means the GPIO mapping was taken from vendor documentation and still needs real IO-homecontrol validation here.
| Board | Radio | Status | spi: pins | home_io_control: pins | Notes |
|---|---|---|---|---|---|
| Heltec WiFi LoRa32 v2 | SX1276 | ✅ Confirmed to work | clk_pin: 5, mosi_pin: 27, miso_pin: 19 | cs_pin: 18, rst_pin: 14, dio0_pin: 26 | Matches heltec-wifi-lora-32-v2.yaml, the SX1276 cover example with OLED status display |
| Heltec WiFi LoRa32 V3 / V3.2 | SX1262 | ✅ Confirmed to work | clk_pin: 9, mosi_pin: 10, miso_pin: 11 | cs_pin: 8, rst_pin: 12, dio1_pin: 14, busy_pin: 13 | Use radio_type: sx1262 and tcxo_voltage: 1_8V; matches heltec-wifi-lora-32-v3.yaml, the SX1262 cover example with OLED status display |
| LilyGO T3-S3 SX1262 | SX1262 | Untested | clk_pin: 5, mosi_pin: 6, miso_pin: 3 | cs_pin: 7, rst_pin: 8, dio1_pin: 33, busy_pin: 34 | should have the same mapping on v1.2 and v1.3; start with radio_type: sx1262 |
| LilyGO T3-S3 SX1276 | SX1276 | Untested | clk_pin: 5, mosi_pin: 6, miso_pin: 3 | cs_pin: 7, rst_pin: 8, dio0_pin: 9 | |
| LilyGO LoRa32 V1.3 SX1276 | SX1276 | Untested | clk_pin: 5, mosi_pin: 27, miso_pin: 19 | cs_pin: 18, rst_pin: 14, dio0_pin: 26 | |
| LilyGO T-Beam 1W SX1262 | SX1262 | Untested | clk_pin: 13, mosi_pin: 11, miso_pin: 12 | cs_pin: 15, rst_pin: 3, dio1_pin: 1, busy_pin: 38 | vendor docs suggest that fem_en_pin: 40 and fem_pa_pin: 21 might be needed |
| Any other ESP32 + SX1276/SX1262 | Either | Untested | Board-specific | Board-specific | Use the chip pinout and set the appropriate sx1276 or sx1262 radio_type |
Add to your ESPHome YAML configuration:
external_components: - source: github://laberning/home_io_control
Or for local development:
external_components: - source: type: local path: components
The full configuration reference lives in docs/home_io_control.md. That page contains all component parameters, platform-specific options and the pairing workflow.
io_device_type accepts both named values such as awning and raw numeric values such as 0x11. Pairing logs will use the named form when the schema exposes one, otherwise they will print the raw numeric type and ask you to report it upstream.
Both esp-idf and arduino framework are supported, but testing and development mostly happens on esp-idf.
esphome: name: io-homecontrol friendly_name: Home IO Control esp32: variant: esp32 logger: level: DEBUG wifi: ssid: !secret wifi_ssid password: !secret wifi_password api: encryption: key: !secret api_key ota: - platform: esphome password: !secret ota_password external_components: - source: github://laberning/home_io_control # Set the pinout for your device - this example uses Heltec WiFi LoRa32 v2. spi: clk_pin: 5 mosi_pin: 27 miso_pin: 19 home_io_control: cs_pin: 18 rst_pin: 14 dio0_pin: 26 # If this device was previously paired with another hub, enter that hub's # Node ID and System Key below to allow the devices to reconnect automatically. # Otherwise, generate new values according to the requirements below: # Node ID: Must be exactly 6 hexadecimal characters. node_id: "C0FFEE" # System Key: Must be exactly 32 hexadecimal characters. system_key: "00112233445566778899AABBCCDDEEFF" cover: - platform: home_io_control device_class: awning name: "Awning" # If the device ID is unknown, use the "Discover & Pair" button to discover it. io_device_id: "FEEB1E" io_device_type: "awning" io_subtype: 0 # Optional explicit override. If omitted, inversion follows the learned device type. invert_position: true # Optional bounded follow-up polling while movement is expected. status_poll_interval: 500ms button: - platform: home_io_control name: "Discover & Pair"
With io_device_type: "awning" declared, the cover above also generates a separate Home Assistant button named Awning Favorite Position. Pressing it sends the protocol's built-in favorite or My-position command. The same cover also generates a diagnostic text sensor named Awning Device Name, disabled by default, which requests and displays the actuator's stored device name after boot when enabled. There is currently no separate sensor for reading back the stored favorite value because the protocol support for that has not been identified.
When api: is enabled, the hub also exposes a node-scoped Home Assistant action named esphome.<node_name>_rename_device with two string fields: device_id and new_name. device_id must be the 6-character IO-homecontrol device ID, and new_name must fit within the protocol's Latin-1 write limit of 15 visible characters after trimming ASCII whitespace. The action emits an esphome.home_io_control_action_result event with fields including action, device_id, success, verified, message, requested_name, applied_name, and optional result_code metadata when the device explicitly rejects the rename.
Home IO Control currently exposes one hub-level Home Assistant action through ESPHome's native API: esphome.<node_name>_rename_device.
<node_name> comes from esphome.name, not friendly_name. Home Assistant normalizes that node name to snake case. For example, the sample V2 config uses name: hioc-heltec-v2, so the action becomes esphome.hioc_heltec_v2_rename_device.
Home IO Control enables the required native API feature flags internally, so the YAML only needs a normal api: block:
api: encryption: key: !secret api_key
In Home Assistant Developer Tools -> Actions, use the plain action block directly:
action: esphome.hioc_heltec_v2_rename_device data: device_id: "FEEB1E" new_name: "Patio Awning"
Use the same device_id value that you configured as io_device_id in your Home IO Control cover:, light:, lock:, or switch: entry. If the device was paired through discovery first, the same 6-character ID also appears in the pairing log snippet that Home IO Control prints for the generated YAML. This is the protocol-level actuator ID, not the Home Assistant entity ID.
For automations and scripts, wrap the same block in a normal action: step:
alias: Rename Patio Awning sequence: - action: esphome.hioc_heltec_v2_rename_device data: device_id: "FEEB1E" new_name: "Patio Awning"
Each rename attempt emits the Home Assistant event esphome.home_io_control_action_result, so an automation can react to success, verified, message, requested_name, applied_name, and optional result_code fields.
For all other examples, platform-specific options, and pairing instructions, use docs/home_io_control.md.
If a device does not emit unsolicited status updates on its own, set status_poll_interval on the affected cover:, light:, lock:, or switch: entry. Without that option, the hub still keeps the legacy single follow-up settle poll after a local command or overheard remote activity. With the option set, it continues polling only while the device still appears to be changing, and it stops automatically once the device reports a stable state or the bounded polling window expires. The minimum supported interval is 500ms.
Explicit device refusals show up as decoded warn-level ESPHome logs. For example, a command blocked by weather can log LIMITATION_BY_RAIN or LIMITATION_BY_WIND instead of looking like a silent no-op.
Device-name support now has two surfaces: the generated diagnostic text sensor for low-noise readback, and the hub-level esphome.<node_name>_rename_device action for on-demand writes. Rename requests are authenticated, validated as UTF-8 text that can be represented in Latin-1, sent as fixed-size protocol payloads, and then verified through the same cached readback path used by the diagnostic sensor. If a device ignores the verification readback or reports a different final value, the rename action still reports the acknowledgement but marks the result as unverified.
The build system uses Docker for firmware compilation and host tools for testing/linting. After setup, run make check to verify the full toolchain.
Use the Ubuntu command above inside a WSL2 distribution.
The most useful contributions for this project are still hardware validation and real-world device reports. If you have an IO-homecontrol device or ESP32 LoRa board that is not yet covered here, your testing results are valuable even if the outcome is "does not work yet".
If pairing discovers a device type that is not yet supported, or the generated YAML snippet is incomplete, please open a GitHub issue and include enough data to reproduce the problem.
Use this checklist when collecting logs:
esphome: platformio_options: build_flags: - -DIOHOME_FRAME_LOG logger: level: DEBUG
Open issues here: GitHub Issues.
Pull requests for fixes, tests, documentation, and targeted improvements are welcome.
For larger features, new platform support, or broader architectural changes, please open an issue first to check whether the work aligns with the current direction of the project. That helps avoid spending time on changes that are unlikely to be merged and makes it easier to agree on scope before implementation.
This project is only possible thanks to the effort and shared knowledge from these projects and their maintainers ❤️
This project is licensed under the MIT License.