Fabian-Schmidt / esphome-truma_inetbox

ESPHome component to remote control Truma CP Plus Heater
GNU General Public License v3.0
37 stars 7 forks source link
esp32 esphome esphome-component home-assistant homeassistant linbus rp2040w sensor truma

ESPHome truma_inetbox component

ESPHome component to remote control Truma CP Plus Heater by simulating a Truma iNet box.

See 1 and 2 for great documentation about how to connect an CP Plus to an ESP32 or RP2040.

Acknowledgements

This project is based on the work of the WomoLIN project and mc0110 inetbox.py, especially the initial protocol decoding and the inet box log files.

Example configuation

This example is just for connecting ESPHome to the CP Plus. See truma.yaml for an example config with all possible things configured.

esphome:
  name: "esphome-truma"

external_components:
  - source: github://Fabian-Schmidt/esphome-truma_inetbox
    components: ["truma_inetbox"]

esp32:
  board: mhetesp32devkit

uart:
  - id: lin_uart_bus
    baud_rate: 9600
    stop_bits: 2

truma_inetbox:
  uart_id: lin_uart_bus

binary_sensor:
  - platform: truma_inetbox
    name: "CP Plus alive"
    type: CP_PLUS_CONNECTED

sensor:
  - platform: truma_inetbox
    name: "Current Room Temperature"
    type: CURRENT_ROOM_TEMPERATURE
  - platform: truma_inetbox
    name: "Current Water Temperature"
    type: CURRENT_WATER_TEMPERATURE
  - platform: truma_inetbox
    name: "Target Room Temperature"
    type: TARGET_ROOM_TEMPERATURE
  - platform: truma_inetbox
    name: "Target Water Temperature"
    type: TARGET_WATER_TEMPERATURE

ESPHome components

This project contains the following ESPHome components:

Requires ESP Home 2023.4 or higher.

Binary sensor

Binary sensors are read-only.

binary_sensor:
  - platform: truma_inetbox
    name: "CP Plus alive"
    type: CP_PLUS_CONNECTED

The following type values are available:

Climate

Climate components support read and write.

climate:
  - platform: truma_inetbox
    name: "Truma Room"
    type: ROOM
  - platform: truma_inetbox
    name: "Truma Water"
    type: WATER

The following type values are available:

Number

Number components support read and write.

number:
  - platform: truma_inetbox
    name: "Target Room Temperature"
    type: TARGET_ROOM_TEMPERATURE

The following type values are available:

Select

Select components support read and write.

select:
  - platform: truma_inetbox
    name: "Fan Mode"
    type: HEATER_FAN_MODE_COMBI

The following type values are available:

Sensor

Sensors are read-only.

sensor:
  - platform: truma_inetbox
    name: "Current Room Temperature"
    type: CURRENT_ROOM_TEMPERATURE

The following type values are available:

Actions

The following ESP Home actions are available:

TODO