<!-- Canonical page: https://reversedwithai.com/p/flexit-sl4r-esphome-rs485-claude -->
Canonical page: https://reversedwithai.com/p/flexit-sl4r-esphome-rs485-claude

# Mapped the RS485 bus of a Flexit SL4 R ventilation unit into ESPHome and Home Assistant with Claude Code

> Home Assistant control of a ventilation unit over its own bus.

A two-way integration over the unit's own control panel bus, with every protocol claim checked on a real installation.

## Key facts

- Target: Flexit SL4 R air handling unit (CS50 / CI50)
- Category: Firmware and hardware
- Platform: ESPHome, RS485
- Models: Claude
- Tools: Claude Code, ESPHome, Home Assistant
- Outcome: Works
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [agjendem](https://github.com/agjendem)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

agjendem wanted to control a Flexit SL4 R air handling unit from Home Assistant without Flexit's Modbus adapter. The README says the integration was reverse engineered and written together with Claude Code, in an AI-assisted development section that states plainly how far to trust that. The AI commit census counts 104 of 126 commits with AI credit (mostly Claude Opus 5), from 20 July to 21 August 2026.

An M5Stack ATOM Lite with an RS485 module (an ATOM Tail485) sits in parallel with the control panel in the spare 4P4C socket, powered from the bus, so the unit does not need to be opened. It needs a Flexit SL4 R (CS50 main board, CI50 panel) and ESPHome. The proprietary protocol is documented in a protocol file with marks for what is verified, inferred or unknown. The README lists mistakes found along the way, such as a checksum window off by one byte and a status byte misread three times.

The README's status says two-way control works against a real installation. It reads supply air temperature, fan levels and duty, heat demand, boost, filter alarm, the afterheater setting and the filter timer, and writes fan level, setpoint, boost, afterheater and filter reset, verified against the control board's own broadcasts. A climate entity combines them. If the CS50 stops polling the added node, writing fails silently and the unit must be power-cycled.

Sources:
- https://github.com/agjendem/flexit-sl4r-esphome

## What the commit history shows

106 of 128 commits in the public repository credit an AI, over 11 days between 2026-07-20 and 2026-11-16. Credited: Claude Opus 5 (103), Claude Opus 5.5 (2), Claude Sonnet 5 (1).

Measured by this site from public git history.

## Questions about Flexit SL4 R air handling unit (CS50 / CI50)

### What is the Flexit SL4 R air handling unit (CS50 / CI50) project?

A two-way integration over the unit's own control panel bus, with every protocol claim checked on a real installation. It is listed under Firmware and hardware for ESPHome, RS485.

### Which AI model was used on Flexit SL4 R air handling unit (CS50 / CI50)?

The entry names Claude. The tools named alongside are Claude Code, ESPHome and Home Assistant.

### Did the AI reverse engineering of Flexit SL4 R air handling unit (CS50 / CI50) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for Flexit SL4 R air handling unit (CS50 / CI50) available?

Yes. The code, patches or tooling are public: https://github.com/agjendem/flexit-sl4r-esphome. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/agjendem/flexit-sl4r-esphome)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: agjendem (2026). Mapped the RS485 bus of a Flexit SL4 R ventilation unit into ESPHome and Home Assistant with Claude Code. Reversed with AI. https://reversedwithai.com/p/flexit-sl4r-esphome-rs485-claude
