Open p0l0us opened 8 months ago
After some experiments, I'm able to read some data, but not send any values to CP,
One of the important parts was solving issue above was resetting the truma CP plus in the menu.
Current issues:
Any ideas ?
btw. In meantime I tried https://github.com/danielfett/inetbox.py. I was able to set temperature using mosquito commands.
It seems working sometimes with config above - after the CP panel reset and loong waiting (5minutes?). But not everytime. I'm still seeing "no data" and "CRC errors".
Part of the issue can be the logging.
ESP Home performs logging as a synchronous operation blocking the component while the log is written. To minimize this blocking time decrease the log level and increase the log speed by setting the baud rate. Example:
logger:
baud_rate: 2000000
Can you please test with these changes again?
@Fabian-Schmidt I'm not able to reproduce today - with and also without the logging baud rate you suggested.
Unfortunately you are not tagging releases so I'm not able to install older version and verify if it was fixed by your recent updates or if it's a random behavior. I will give it a try later again.
I am on purpose not tagging or creating releases to avoid bug reports in old versions. I believe the project is small enough that I can get away with it. And for tech people they can always use the commit id as the target version.
And for tech people they can always use the commit id as the target version.
How can I use commit id ? apart of checking out manually and building myself ?
According to my findings, the config accepts only tag (or maybe branch name also). So in order to test older version I had to fork the project, tag it myself and then use following.
- source: github://p0l0us/esphome-truma_inetbox@v0.61
IMO, Automated CI build number printed in initial log would be more convenient.
You are right the ESPHome does not support SHA in place of ref. I must be thinking of a different tool.
I might add a version number in the future. But currently I don't have enough time to do it properly.
Hi @Fabian-Schmidt
Could you help me making this work with my Truma Combi 6L, iNet ready CP plus C3.00.01 H5.00.00 ?
I'm not sure if it's supposed to be supported by your project. I'm trying it, but I'm getting tons of CRC errors and "order no answers". See my config and the log bellow.
I'm using LIN converter board connected board Rx to Tx pin GPIO17 and board Tx to Rx pin GPIO16. Same board like here: https://github.com/mc0110/inetbox2mqtt/blob/main/doc/ELECTRIC.md I don't have any i2c RTC yet.
Logs here:
``` [12:04:32][I][app:102]: ESPHome version 2024.2.1 compiled on Feb 28 2024, 12:03:40 [12:04:32][C][logger:447]: Logger: [12:04:32][C][logger:448]: Level: VERBOSE [12:04:32][C][logger:449]: Log Baud Rate: 115200 [12:04:32][C][logger:451]: Hardware UART: UART0 [12:04:32][C][uart.arduino_esp32:108]: UART Bus 1: [12:04:32][C][uart.arduino_esp32:109]: TX Pin: GPIO17 [12:04:32][C][uart.arduino_esp32:110]: RX Pin: GPIO16 [12:04:32][C][uart.arduino_esp32:112]: RX Buffer Size: 256 [12:04:32][C][uart.arduino_esp32:114]: Baud Rate: 9600 baud [12:04:32][C][uart.arduino_esp32:115]: Data Bits: 8 [12:04:32][C][uart.arduino_esp32:116]: Parity: NONE [12:04:32][C][uart.arduino_esp32:117]: Stop bits: 2 [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 16 00.0D.80.0B.94.0C.09.85.61 (9) - SLAVE [12:04:32][C][truma_inetbox.room_climate:048]: truma_inetbox.room_climateTruma Room Climate 'Room' [12:04:32][C][truma_inetbox.water_climate:019]: truma_inetbox.water_climateTruma Climate 'Water' [12:04:32][C][truma_inetbox.cpplus_binary_sensor:019]: Truma CP Plus Binary Sensor 'CP Plus alive' [12:04:32][C][truma_inetbox.heater_binary_sensor:046]: Truma Heater Binary Sensor 'Heater has error' [12:04:32][C][truma_inetbox.heater_binary_sensor:047]: Type 'HEATER_HAS_ERROR' [12:04:32][C][truma_inetbox.sensor:049]: Truma Sensor 'Current Room Temperature' [12:04:32][C][truma_inetbox.sensor:049]: Device Class: 'temperature' [12:04:32][C][truma_inetbox.sensor:049]: State Class: 'measurement' [12:04:32][C][truma_inetbox.sensor:049]: Unit of Measurement: '°C' [12:04:32][C][truma_inetbox.sensor:049]: Accuracy Decimals: 1 [12:04:32][C][truma_inetbox.sensor:049]: Icon: 'mdi:thermometer' [12:04:32][C][truma_inetbox.sensor:050]: Type 'CURRENT_ROOM_TEMPERATURE' [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 3C FF.FF.FF.FF.FF.FF.FF.FF.00 (9) - MASTER [12:04:32][C][truma_inetbox.sensor:049]: Truma Sensor 'Current Water Temperature' [12:04:32][C][truma_inetbox.sensor:049]: Device Class: 'temperature' [12:04:32][C][truma_inetbox.sensor:049]: State Class: 'measurement' [12:04:32][C][truma_inetbox.sensor:049]: Unit of Measurement: '°C' [12:04:32][C][truma_inetbox.sensor:049]: Accuracy Decimals: 0 [12:04:32][C][truma_inetbox.sensor:049]: Icon: 'mdi:thermometer' [12:04:32][C][truma_inetbox.sensor:050]: Type 'CURRENT_WATER_TEMPERATURE' [12:04:32][C][truma_inetbox.heater_select:153]: Truma Heater Select 'Fan Mode' [12:04:32][C][truma_inetbox.heater_select:153]: Icon: 'mdi:thermometer' [12:04:32][C][truma_inetbox.heater_select:154]: Type 'HEATER_FAN_MODE' [12:04:32][C][truma_inetbox.heater_select:155]: Options are: [12:04:32][V][truma_inetbox.LinBusListener:360]: PID 3D order no answer [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 03 7C.0B.FF.FF.FF.FF.FF.FF.75 (9) - SLAVE [12:04:32][C][truma_inetbox.LinBusListener:032]: LinBusListener: [12:04:32][C][truma_inetbox.LinBusListener:035]: Update Interval: 0.5s [12:04:32][C][truma_inetbox.LinBusListener:036]: LIN checksum Version: 2 [12:04:32][C][truma_inetbox.LinBusListener:037]: Observer mode: NO [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 04 AA.0A.FF.FF.FF.FF.FF.FF.86 (9) - SLAVE [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 06 01.FF.FF.FF.FF.FF.FF.FF.79 (9) - SLAVE [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 06 00.00.FF.FF.FF.FF.FF.FF.F9 (9) - SLAVE [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 16 FF.FF.FF.FF.FF.FF.FF.FF.B6 (9) - SLAVE [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 16 00.0D.80.0B.94.0C.FF.84.6B (9) - SLAVE [12:04:32][V][truma_inetbox.LinBusListener:360]: PID 17 order no answer [12:04:32][V][truma_inetbox.LinBusListener:343]: RESPONSE 18 FE.FF.FF.FF.FF.FF.FF.FF (8) [12:04:32][V][truma_inetbox.LinBusListener:392]: PID 00 FE.FF.FF.FF.FF.FF.FF.FF.28 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 03 7C.0B.FF.FF.FF.FF.FF.FF.75 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 04 AA.0A.FF.FF.FF.FF.FF.FF.86 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 05 01.FF.FF.FF.FF.FF.FF.FF.79 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 06 00.00.FF.FF.FF.FF.FF.FF.F9 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 07 01.00.FF.FF.FF.FF.FF.FF.B7 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 09 FF.FF.FF.FF.FF.FF.FF.FF.B6 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 16 00.0D.80.0B.94.0C.FF.84.6B (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:360]: PID 17 order no answer [12:04:33][V][truma_inetbox.LinBusListener:343]: RESPONSE 18 FE.FF.FF.FF.FF.FF.FF.FF (8) [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 00 FE.FF.FF.FF.FF.FF.FF.FF.28 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 03 7C.0B.FF.FF.FF.FF.FF.FF.75 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 04 AA.0A.FF.FF.FF.FF.FF.FF.86 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 05 01.FF.FF.FF.FF.FF.FF.FF.79 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 06 00.00.FF.FF.FF.FF.FF.FF.F9 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 07 01.00.FF.FF.FF.FF.FF.FF.B7 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 09 FF.FF.FF.FF.FF.FF.FF.FF.B6 (9) - SLAVE [12:04:33][V][truma_inetbox.LinBusListener:392]: PID 16 00.0D.80.0B.94.0C.09.85.61 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:360]: PID 17 order no answer [12:04:34][V][truma_inetbox.LinBusListener:343]: RESPONSE 18 FE.FF.FF.FF.FF.FF.FF.FF (8) [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 18 FE.FF.FF.FF.FF.FF.FF.FF.28 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 3C FF.FF.FF.FF.FF.FF.FF.FF.00 (9) - MASTER [12:04:34][V][truma_inetbox.LinBusListener:360]: PID 3D order no answer [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 03 7C.0B.FF.FF.FF.FF.FF.FF.75 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 05 AA.0A.FF.FF.FF.FF.FF.FF.86 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 05 01.FF.FF.FF.FF.FF.FF.FF.79 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 07 00.00.FF.FF.FF.FF.FF.FF.F9 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 07 01.00.FF.FF.FF.FF.FF.FF.B7 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 09 FF.FF.FF.FF.FF.FF.FF.FF.B6 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 17 00.0D.80.0B.94.0C.09.85.61 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:360]: PID 17 order no answer [12:04:34][V][truma_inetbox.LinBusListener:343]: RESPONSE 18 FE.FF.FF.FF.FF.FF.FF.FF (8) [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 18 FE.FF.FF.FF.FF.FF.FF.FF.28 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 3D FF.FF.FF.FF.FF.FF.FF.FF.00 (9) - MASTER [12:04:34][V][truma_inetbox.LinBusListener:360]: PID 3D order no answer [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 03 7C.0B.FF.FF.FF.FF.FF.FF.75 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 05 AA.0A.FF.FF.FF.FF.FF.FF.86 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 00 01.FF.FF.FF.FF.FF.FF.FF.79 (9) - SLAVE [12:04:34][V][truma_inetbox.LinBusListener:392]: PID 06 00.00.FF.FF.FF.FF.FF.FF.F9 (9) - SLAVE [12:04:35][V][truma_inetbox.LinBusListener:392]: PID 00 01.00.FF.FF.FF.FF.FF.FF.B7 (9) - SLAVE [12:04:35][V][truma_inetbox.LinBusListener:392]: PID 09 FF.FF.FF.FF.FF.FF.FF.FF.B6 (9) - SLAVE [12:04:35][V][truma_inetbox.LinBusListener:392]: PID 16 00.0D.80.0B.94.0C.09.85.61 (9) - SLAVE [12:04:35][V][truma_inetbox.LinBusListener:343]: RESPONSE 18 FF.FF.FF.FF.FF.FF.FF.FF (8) ```Config file here:
``` esphome: name: "truma_combi" friendly_name: Truma Combi 6L external_components: - source: github://Fabian-Schmidt/esphome-truma_inetbox esp32: board: esp32dev framework: type: arduino logger: level: VERBOSE api: encryption: key: "....." ota: password: "...." wifi: ssid: !secret wifi_ssid password: !secret wifi_password ap: ssid: "Truma Hotspot" password: "password" uart: - id: lin_uart_bus tx_pin: 17 rx_pin: 16 baud_rate: 9600 data_bits: 8 parity: NONE stop_bits: 2 climate: - platform: truma_inetbox name: "Room" type: ROOM - platform: truma_inetbox name: "Water" type: WATER binary_sensor: - platform: truma_inetbox name: "CP Plus alive" type: CP_PLUS_CONNECTED - platform: truma_inetbox name: "Heater has error" type: HEATER_HAS_ERROR sensor: - platform: truma_inetbox name: "Current Room Temperature" type: CURRENT_ROOM_TEMPERATURE - platform: truma_inetbox name: "Current Water Temperature" type: CURRENT_WATER_TEMPERATURE select: - platform: truma_inetbox name: "Fan Mode" type: HEATER_FAN_MODE_COMBI truma_inetbox: uart_id: lin_uart_bus on_heater_message: then: - logger.log: "Message from CP Plus." web_server: port: 80 local: true version: 2 include_internal: true ```Thanks...