Fabian-Schmidt / esphome-truma_inetbox

ESPHome component to remote control Truma CP Plus Heater
GNU General Public License v3.0
37 stars 6 forks source link

Support for Truma Aventa compact #37

Open iBobik opened 2 months ago

iBobik commented 2 months ago

Hi, I just bought Aventa and would like to integrate it.

Can I help you with remote debugging and sponsor your work? (Feel free to contact me privately.)

iBobik commented 2 months ago

Tried this config:

substitutions:
  id_name: cooling
  human_name: Cooling

<<: !include network_base.yml

esphome:
  name: $id_name
  friendly_name: $human_name
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  variant: esp32s3
  framework:
    type: esp-idf

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

uart:
  - id: lin_uart_bus
    baud_rate: 9600
    stop_bits: 2
    rx_pin: GPIO6
    tx_pin: GPIO5

truma_inetbox:
  uart_id: lin_uart_bus

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

  - platform: truma_inetbox
    name: "Timer active"
    type: TIMER_ACTIVE

  - platform: truma_inetbox
    name: "Timer room"
    type: TIMER_ROOM

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

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

  - platform: truma_inetbox
    name: "Operating Status"
    type: OPERATING_STATUS

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

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

  - platform: truma_inetbox
    name: "Electric Power Level"
    type: ELECTRIC_POWER_LEVEL

  - platform: truma_inetbox
    name: "Aircon Manual Temperature"
    type: AIRCON_MANUAL_TEMPERATURE

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

Then started the controller and after a minute turned on power for Aventa and using remote started air conditioning. Added device to the Home Assistant and tried to change values, but none worked:

[16:31:07][D][number:054]: 'Aircon Manual Temperature' - Setting number value
[16:31:07][D][number:113]:   New number value: 31.000000
[16:31:07][W][truma_inetbox.TrumaiNetBoxAppAirconManual:055]: Cannot update Truma.
[16:32:31][D][climate:011]: 'Truma Room' - Setting
[16:32:31][D][climate:024]:   Fan: OFF
[16:32:31][W][truma_inetbox.TrumaiNetBoxAppHeater:059]: Cannot update Truma.
[16:32:43][D][climate:011]: 'Truma Room' - Setting
[16:32:43][D][climate:015]:   Mode: HEAT
[16:33:00][D][climate:011]: 'Truma Room' - Setting
[16:33:00][D][climate:024]:   Fan: LOW
[16:33:00][W][truma_inetbox.TrumaiNetBoxAppHeater:059]: Cannot update Truma.
[16:33:25][D][number:054]: 'Target Room Temperature' - Setting number value
[16:33:25][D][number:113]:   New number value: 30.000000
[16:33:25][W][truma_inetbox.TrumaiNetBoxAppHeater:059]: Cannot update Truma.
[16:33:37][D][select:062]: 'Fan Mode' - Setting
[16:33:37][D][select:115]: 'Fan Mode' - Set selected option to: Eco
[16:33:37][W][truma_inetbox.TrumaiNetBoxAppHeater:059]: Cannot update Truma.
[16:33:45][D][number:054]: 'Electric Power Level' - Setting number value
[16:33:45][D][number:113]:   New number value: 0.000000
[16:33:45][W][truma_inetbox.TrumaiNetBoxAppHeater:141]: Cannot update Truma.