Based on the original broadlinktoUFOR11 by arkservertools.
IR codes for conversion can be found at SmartIR codes repository.
A client-side web application to convert IR codes from Broadlink Base64 format to UFO-R11 MQTT format for MOES UFO-R11 devices used with SmartIR addon in Home Assistant.
Note: While primarily designed for MOES UFO-R11, this converter may also work with other Tuya-based IR blasters that use the same Tuya IR stream protocol (e.g., Zigbee or Wi-Fi IR remotes with Tuya firmware).
All conversion runs entirely in the browser — no backend required.
- Two-panel JSON editor with syntax highlighting
- Single IR code conversion
- File upload (SmartIR JSON)
- 4 compression levels (LZ77-like Tuya Stream)
ir_code_to_sendwrapper option for MQTT payloads- English / Russian interface
| Level | Name | Description |
|---|---|---|
| 0 | NONE | No compression |
| 1 | FAST | Greedy, first match |
| 2 | BALANCED | Greedy, best match (default) |
| 3 | OPTIMAL | Dynamic programming (smallest output) |
Broadlink Base64 → hex → timings → uint16 LE → Tuya compress → Base64
All conversion logic is implemented in TypeScript and runs client-side:
| Module | Description |
|---|---|
| IRConverter | Conversion facade |
| BroadlinkDecoder | Broadlink format decoder |
| TuyaEncoder | UFO-R11 format encoder |
| TuyaCompressor | LZ77-like Tuya Stream compression |
- Node.js 20+
- npm
git clone https://github.com/dzerik/Broadlink-UFO-R11.git
cd Broadlink-UFO-R11/frontend
npm installnpm run devOpen http://localhost:3000 in your browser.
npm testnpm run build
# Static output in frontend/out/The app auto-deploys to GitHub Pages on push to main via GitHub Actions.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.
- Original project: arkservertools/broadlinktoUFOR11
- IR codes: SmartIR