Local control of Blustream SW-series HDMI switchers over their TCP control port. Changes made on the front panel, in the Web-GUI or by another controller are pushed to Home Assistant as they happen.
Developed and tested against an SW41AB-V3 (firmware V1.1.1). The SW21AB-V3 shares its command set and should work, but has not been tested here.
| Entity | Notes |
|---|---|
| Source | Select. Options are the input names set in the Web-GUI. Selecting a source in standby powers the switcher on first. |
| Power, HDMI output, Auto switching | Switches. |
| Input 1–4 connected, Output connected | Whether a source or display is plugged in. |
| Display on, Display off | Buttons that send CEC power commands to the display. |
| Input 1–4 EDID | Config. Settable only when the rear EDID DIP switch is at 1111 (software control); otherwise unavailable, because the DIP switch sets one EDID for all inputs. |
| Priority input, Fallback input, Priority switching, Fallback switching, Fast switching | Config, for auto switching. |
| Auto standby, Auto standby delay | Config. |
| Audio breakout, Output CEC, Front panel buttons, Front panel IR | Config. |
| Input 1–4 enable, CEC and auto switch trigger | Config, disabled by default. |
| Input 1–4 signal, Output signal, Display | Diagnostics from the Web-GUI. |
| Reboot | Config. |
- In Home Assistant, open Settings > Marketplace, choose Custom repositories from the menu, and add this repository with type Integration. (On releases before the Marketplace was built in, do the same in HACS.)
- Install Blustream and restart Home Assistant.
- Switchers on the network are discovered. To add one by hand, go to
Settings > Devices & services > Add integration > Blustream and enter
its address (
sw41ab-v3.localby default) and port (8000).
No login is needed: the control port and the Web-GUI's status page are open. Keep Port 8000 enabled in the Web-GUI's Settings page.
- Commands and
STATUSgo over one persistent connection to port 8000. The switcher sends every reply to every connection, so any change triggers a refresh.STATUSis also polled every 30 seconds. - Input names, EDID slots, signal details and the DIP switch position come
from the Web-GUI (
POST /appdata.cgi), read alongsideSTATUS. If the Web-GUI does not answer, the last values are kept.
python3.14 -m venv .venv .venv/bin/pip install -r requirements_test.txt .venv/bin/pytest
The tests run against a fake switcher (tests/fake_switcher.py) that
reproduces the real one's framing; its STATUS output is checked byte for
byte against a capture from a real unit (tests/fixtures/status.txt).