Closed jessevl closed 5 months ago
Thanks for the detailed report, that helps. I'm missing the compressor frequency response (also defrost stuff, but this was the first that caught my attention). It seems that that cmd is not sent to the heat pump. It should be the 3rd cmd. But also defrost state is missing. Could be that it was before it started logging.
I have changed the get status to clear pending get before added new get status cmd. These will be added at the end of the queue ensuring that set cmd actually get's executed.
your loop time is similar to mines, so the esp32 should have no issues with processing the cmd. I don't think this is the solution for the root cause, bit it will help. let me know if it improves things
Thanks for the quick response. This change makes a big difference! I now can set the different temperature settings, get defrost state and compressor frequency. I still cannot change the operating mode, but I guess that must have some other cause (maybe because it's heating water at the moment?).
There's a very clear pattern in the logs now on what messages get discarded from the queue, maybe this helps track down the root cause? Possibly some specific requests that my HP does not reply to properly?
[11:18:54][D][debug:079]: ESPHome version 2024.4.2 [11:18:54][D][debug:083]: Free Heap Size: 182112 bytes [11:18:54][D][debug:113]: Flash Chip: Size=4096kB Speed=40MHz Mode=DIO [11:18:54][D][debug:162]: Chip: Model=ESP32, Features=EMB_FLASH,WIFI_BGN,BLE,BT, Cores=2, Revision=1 [11:18:54][D][debug:170]: ESP-IDF Version: v4.4.2 [11:18:54][D][debug:175]: EFuse MAC: ** [11:18:54][D][debug:275]: Reset Reason: Software Reset CPU [11:18:54][D][debug:320]: Wakeup Reason: Unknown [11:18:54][D][text_sensor:064]: 'Reset Reason': Sending state 'Software Reset CPU' [11:18:54][I][ecodan.component:290]: command queue was not empty when queueing status query: 4 [11:18:54][W][ecodan.component:296]: discarding pending cmd: 66 [11:18:54][W][ecodan.component:296]: discarding pending cmd: 66 [11:18:54][W][ecodan.component:296]: discarding pending cmd: 66 [11:18:54][W][ecodan.component:296]: discarding pending cmd: 91 [11:18:55][D][text_sensor:064]: 'status_power': Sending state 'On' [11:18:55][D][text_sensor:064]: 'operation status': Sending state 'Heating Water' [11:18:55][D][text_sensor:064]: 'DHW status value': Sending state 'Eco' [11:18:55][D][text_sensor:064]: 'H/C status': Sending state 'Cool Flow Temperature' [11:18:55][D][sensor:094]: 'DHW setpoint value': Sending state 50.00000 °C with 1 decimals of accuracy [11:18:55][D][sensor:094]: 'sh_flow_temp_target': Sending state 20.00000 °C with 1 decimals of accuracy [11:18:55][D][text_sensor:064]: 'defrost state': Sending state 'Off' [11:18:55][D][sensor:094]: 'Heap Free': Sending state 186884.00000 B with 0 decimals of accuracy [11:18:55][D][sensor:094]: 'Loop Time': Sending state 125.00000 ms with 0 decimals of accuracy [11:18:56][D][sensor:094]: 'compressor frequency': Sending state 82.00000 Hz with 2 decimals of accuracy [11:18:57][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy [11:18:58][D][sensor:094]: 'output power': Sending state 9.00000 kW with 3 decimals of accuracy [11:18:58][D][sensor:094]: 'estimated output power': Sending state 9.61400 kW with 3 decimals of accuracy [11:19:00][D][sensor:094]: 'Zone 1 room setpoint value': Sending state 17.50000 °C with 1 decimals of accuracy [11:19:00][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp_target' with value: '20.000000' [11:19:00][D][sensor:094]: 'Zone 1 H/C setpoint value': Sending state 16.00000 °C with 1 decimals of accuracy [11:19:00][I][ecodan.component:045]: Could not publish state of sensor 'z2_flow_temp_target' with value: '20.000000' [11:19:00][D][sensor:094]: 'legionella prevention temp': Sending state 65.00000 °C with 1 decimals of accuracy [11:19:00][D][sensor:094]: 'DHW max temp drop': Sending state 10.00000 °C with 1 decimals of accuracy [11:19:00][D][sensor:094]: 'Heap Free': Sending state 186872.00000 B with 0 decimals of accuracy [11:19:00][D][sensor:094]: 'Loop Time': Sending state 124.00000 ms with 0 decimals of accuracy [11:19:01][D][sensor:094]: 'Zone 1 room temp': Sending state 24.00000 °C with 1 decimals of accuracy [11:19:01][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp' with value: '0.000000' [11:19:01][D][sensor:094]: 'outside temp': Sending state 20.00000 °C with 0 decimals of accuracy [11:19:01][D][sensor:094]: 'refrigerant temp': Sending state 32.00000 °C with 1 decimals of accuracy [11:19:02][D][sensor:094]: 'feed temp': Sending state 37.00000 °C with 1 decimals of accuracy [11:19:02][D][sensor:094]: 'return temp': Sending state 30.50000 °C with 1 decimals of accuracy [11:19:02][D][sensor:094]: 'DHW current temp': Sending state 25.50000 °C with 1 decimals of accuracy [11:19:03][D][sensor:094]: 'boiler flow temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:03][D][sensor:094]: 'boiler return temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:05][D][text_sensor:064]: 'In1 thermostat status': Sending state 'On' [11:19:05][D][text_sensor:064]: 'In6 thermostat 2 status': Sending state 'Off' [11:19:05][D][sensor:094]: 'Heap Free': Sending state 186872.00000 B with 0 decimals of accuracy [11:19:05][D][sensor:094]: 'Loop Time': Sending state 109.00000 ms with 0 decimals of accuracy [11:19:06][D][sensor:094]: 'operating runtime': Sending state 1553.00000 h with 0 decimals of accuracy [11:19:07][D][text_sensor:064]: 'water pump status': Sending state 'On' [11:19:07][D][text_sensor:064]: '3-way valve status': Sending state 'On' [11:19:07][I][ecodan.component:056]: Could not publish state of sensor 'status_water_pump_2' with value: 'Off' [11:19:07][I][ecodan.component:056]: Could not publish state of sensor 'status_three_way_valve_2' with value: 'Off' [11:19:08][D][sensor:094]: 'flow rate': Sending state 22.00000 l/m with 0 decimals of accuracy [11:19:08][D][text_sensor:064]: 'booster heater status': Sending state 'Off' [11:19:08][D][text_sensor:064]: 'immersion heater status': Sending state 'Off' [11:19:09][I][ecodan.component:290]: command queue was not empty when queueing status query: 4 [11:19:09][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:09][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:09][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:09][W][ecodan.component:296]: discarding pending cmd: 91 [11:19:10][D][text_sensor:064]: 'status_power': Sending state 'On' [11:19:10][D][text_sensor:064]: 'operation status': Sending state 'Heating Water' [11:19:10][D][text_sensor:064]: 'DHW status value': Sending state 'Eco' [11:19:10][D][text_sensor:064]: 'H/C status': Sending state 'Cool Flow Temperature' [11:19:10][D][sensor:094]: 'DHW setpoint value': Sending state 50.00000 °C with 1 decimals of accuracy [11:19:10][D][sensor:094]: 'sh_flow_temp_target': Sending state 20.00000 °C with 1 decimals of accuracy [11:19:10][D][text_sensor:064]: 'defrost state': Sending state 'Off' [11:19:10][D][sensor:094]: 'Heap Free': Sending state 186836.00000 B with 0 decimals of accuracy [11:19:10][D][sensor:094]: 'Loop Time': Sending state 127.00000 ms with 0 decimals of accuracy [11:19:11][D][sensor:094]: 'compressor frequency': Sending state 82.00000 Hz with 2 decimals of accuracy [11:19:12][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy [11:19:13][D][sensor:094]: 'output power': Sending state 9.00000 kW with 3 decimals of accuracy [11:19:13][D][sensor:094]: 'estimated output power': Sending state 9.96233 kW with 3 decimals of accuracy [11:19:15][D][sensor:094]: 'Zone 1 room setpoint value': Sending state 17.50000 °C with 1 decimals of accuracy [11:19:15][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp_target' with value: '20.000000' [11:19:15][D][sensor:094]: 'Zone 1 H/C setpoint value': Sending state 16.00000 °C with 1 decimals of accuracy [11:19:15][I][ecodan.component:045]: Could not publish state of sensor 'z2_flow_temp_target' with value: '20.000000' [11:19:15][D][sensor:094]: 'legionella prevention temp': Sending state 65.00000 °C with 1 decimals of accuracy [11:19:15][D][sensor:094]: 'DHW max temp drop': Sending state 10.00000 °C with 1 decimals of accuracy [11:19:15][D][sensor:094]: 'Heap Free': Sending state 186836.00000 B with 0 decimals of accuracy [11:19:15][D][sensor:094]: 'Loop Time': Sending state 131.00000 ms with 0 decimals of accuracy [11:19:16][D][sensor:094]: 'Zone 1 room temp': Sending state 24.50000 °C with 1 decimals of accuracy [11:19:16][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp' with value: '0.000000' [11:19:16][D][sensor:094]: 'outside temp': Sending state 20.00000 °C with 0 decimals of accuracy [11:19:16][D][sensor:094]: 'refrigerant temp': Sending state 31.50000 °C with 1 decimals of accuracy [11:19:17][D][sensor:094]: 'feed temp': Sending state 37.00000 °C with 1 decimals of accuracy [11:19:17][D][sensor:094]: 'return temp': Sending state 31.00000 °C with 1 decimals of accuracy [11:19:17][D][sensor:094]: 'DHW current temp': Sending state 26.00000 °C with 1 decimals of accuracy [11:19:18][D][sensor:094]: 'boiler flow temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:18][D][sensor:094]: 'boiler return temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:19][D][internal_temperature:069]: Ignoring invalid temperature (success=0, value=53.3) [11:19:20][D][text_sensor:064]: 'In1 thermostat status': Sending state 'On' [11:19:20][D][text_sensor:064]: 'In6 thermostat 2 status': Sending state 'Off' [11:19:20][D][sensor:094]: 'Heap Free': Sending state 186872.00000 B with 0 decimals of accuracy [11:19:20][D][sensor:094]: 'Loop Time': Sending state 111.00000 ms with 0 decimals of accuracy [11:19:20][D][sensor:094]: 'Esp Uptime': Sending state 1715.80005 s with 0 decimals of accuracy [11:19:21][D][sensor:094]: 'operating runtime': Sending state 1553.00000 h with 0 decimals of accuracy [11:19:22][D][text_sensor:064]: 'water pump status': Sending state 'On' [11:19:22][D][text_sensor:064]: '3-way valve status': Sending state 'On' [11:19:22][I][ecodan.component:056]: Could not publish state of sensor 'status_water_pump_2' with value: 'Off' [11:19:22][I][ecodan.component:056]: Could not publish state of sensor 'status_three_way_valve_2' with value: 'Off' [11:19:23][D][sensor:094]: 'flow rate': Sending state 22.00000 l/m with 0 decimals of accuracy [11:19:23][D][text_sensor:064]: 'booster heater status': Sending state 'Off' [11:19:23][D][text_sensor:064]: 'immersion heater status': Sending state 'Off' [11:19:24][I][ecodan.component:290]: command queue was not empty when queueing status query: 4 [11:19:24][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:24][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:24][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:24][W][ecodan.component:296]: discarding pending cmd: 91 [11:19:25][D][text_sensor:064]: 'status_power': Sending state 'On' [11:19:25][D][text_sensor:064]: 'operation status': Sending state 'Heating Water' [11:19:25][D][text_sensor:064]: 'DHW status value': Sending state 'Eco' [11:19:25][D][text_sensor:064]: 'H/C status': Sending state 'Cool Flow Temperature' [11:19:25][D][sensor:094]: 'DHW setpoint value': Sending state 50.00000 °C with 1 decimals of accuracy [11:19:25][D][sensor:094]: 'sh_flow_temp_target': Sending state 20.00000 °C with 1 decimals of accuracy [11:19:25][D][text_sensor:064]: 'defrost state': Sending state 'Off' [11:19:25][D][sensor:094]: 'Heap Free': Sending state 187388.00000 B with 0 decimals of accuracy [11:19:25][D][sensor:094]: 'Loop Time': Sending state 127.00000 ms with 0 decimals of accuracy [11:19:26][D][text_sensor:064]: 'controller version': Sending state 'NA' [11:19:26][D][sensor:094]: 'compressor frequency': Sending state 82.00000 Hz with 2 decimals of accuracy [11:19:27][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy [11:19:28][D][sensor:094]: 'output power': Sending state 9.00000 kW with 3 decimals of accuracy [11:19:28][D][sensor:094]: 'estimated output power': Sending state 9.19600 kW with 3 decimals of accuracy [11:19:30][D][sensor:094]: 'Zone 1 room setpoint value': Sending state 17.50000 °C with 1 decimals of accuracy [11:19:30][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp_target' with value: '20.000000' [11:19:30][D][sensor:094]: 'Zone 1 H/C setpoint value': Sending state 16.00000 °C with 1 decimals of accuracy [11:19:30][I][ecodan.component:045]: Could not publish state of sensor 'z2_flow_temp_target' with value: '20.000000' [11:19:30][D][sensor:094]: 'legionella prevention temp': Sending state 65.00000 °C with 1 decimals of accuracy [11:19:30][D][sensor:094]: 'DHW max temp drop': Sending state 10.00000 °C with 1 decimals of accuracy [11:19:30][D][sensor:094]: 'Heap Free': Sending state 187388.00000 B with 0 decimals of accuracy [11:19:30][D][sensor:094]: 'Loop Time': Sending state 126.00000 ms with 0 decimals of accuracy [11:19:31][D][sensor:094]: 'Zone 1 room temp': Sending state 24.50000 °C with 1 decimals of accuracy [11:19:31][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp' with value: '0.000000' [11:19:31][D][sensor:094]: 'outside temp': Sending state 20.00000 °C with 0 decimals of accuracy [11:19:31][D][sensor:094]: 'refrigerant temp': Sending state 32.00000 °C with 1 decimals of accuracy [11:19:32][D][sensor:094]: 'feed temp': Sending state 37.00000 °C with 1 decimals of accuracy [11:19:32][D][sensor:094]: 'return temp': Sending state 31.00000 °C with 1 decimals of accuracy [11:19:32][D][sensor:094]: 'DHW current temp': Sending state 26.00000 °C with 1 decimals of accuracy [11:19:33][D][sensor:094]: 'boiler flow temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:33][D][sensor:094]: 'boiler return temp': Sending state 25.00000 °C with 1 decimals of accuracy [11:19:35][D][text_sensor:064]: 'In1 thermostat status': Sending state 'On' [11:19:35][D][text_sensor:064]: 'In6 thermostat 2 status': Sending state 'Off' [11:19:35][D][sensor:094]: 'Heap Free': Sending state 187388.00000 B with 0 decimals of accuracy [11:19:35][D][sensor:094]: 'Loop Time': Sending state 111.00000 ms with 0 decimals of accuracy [11:19:36][D][sensor:094]: 'operating runtime': Sending state 1553.00000 h with 0 decimals of accuracy [11:19:37][D][text_sensor:064]: 'water pump status': Sending state 'On' [11:19:37][D][text_sensor:064]: '3-way valve status': Sending state 'On' [11:19:37][I][ecodan.component:056]: Could not publish state of sensor 'status_water_pump_2' with value: 'Off' [11:19:37][I][ecodan.component:056]: Could not publish state of sensor 'status_three_way_valve_2' with value: 'Off' [11:19:38][D][sensor:094]: 'flow rate': Sending state 22.00000 l/m with 0 decimals of accuracy [11:19:38][D][text_sensor:064]: 'booster heater status': Sending state 'Off' [11:19:38][D][text_sensor:064]: 'immersion heater status': Sending state 'Off' [11:19:39][I][ecodan.component:290]: command queue was not empty when queueing status query: 4 [11:19:39][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:39][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:39][W][ecodan.component:296]: discarding pending cmd: 66 [11:19:39][W][ecodan.component:296]: discarding pending cmd: 91
it seems that the 0x26 is coming back 'out of order' and way later than expected. This is quite odd since my ftc6 returns it request almost instantly. What heatpump model do you have? could also be ftc6 firmware.
The indoor unit is an erst30d-vm2ed. I can't find the firmware version.
try this branch and report back, it will allow more time for 'slower' units without affecting 'faster' units https://github.com/gekkekoe/esphome-ecodan-hp/tree/test_allow_more_wait I cannot trigger the conditions locally, so you guys have to test it :)
Seems to work okay, but still get queuing and discarded cmd's. FTC6 seems very slow to respond at times.
[12:05:51][D][debug:079]: ESPHome version 2024.4.2 [12:05:51][D][debug:083]: Free Heap Size: 168392 bytes [12:05:51][D][debug:113]: Flash Chip: Size=4096kB Speed=40MHz Mode=DIO [12:05:51][D][debug:162]: Chip: Model=ESP32, Features=EMB_FLASH,WIFI_BGN,BLE,BT, Cores=2, Revision=1 [12:05:51][D][debug:170]: ESP-IDF Version: v4.4.2 [12:05:51][D][debug:175]: EFuse MAC: ** [12:05:51][D][debug:275]: Reset Reason: Software Reset CPU [12:05:51][D][debug:320]: Wakeup Reason: Unknown [12:05:52][D][sensor:094]: 'heating delivered': Sending state 0.01000 kWh with 2 decimals of accuracy [12:05:52][D][sensor:094]: 'cool delivered': Sending state 58.88000 kWh with 2 decimals of accuracy [12:05:52][D][sensor:094]: 'dhw delivered': Sending state 11.25000 kWh with 2 decimals of accuracy [12:05:52][D][sensor:094]: 'heating cop': Sending state 0.00000 with 2 decimals of accuracy [12:05:52][D][sensor:094]: 'cool cop': Sending state 4.37770 with 2 decimals of accuracy [12:05:52][D][sensor:094]: 'dhw cop': Sending state 4.24528 with 2 decimals of accuracy [12:05:53][D][sensor:094]: 'controller_version': Sending state 3.00000 with 0 decimals of accuracy [12:05:54][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:05:54][D][sensor:094]: 'Loop Time': Sending state 210.00000 ms with 0 decimals of accuracy [12:05:57][D][text_sensor:064]: 'heat source': Sending state 'heatpump' [12:05:59][D][sensor:094]: 'Heap Free': Sending state 186688.00000 B with 0 decimals of accuracy [12:05:59][D][sensor:094]: 'Loop Time': Sending state 17.00000 ms with 0 decimals of accuracy [12:06:01][D][text_sensor:064]: 'controller version': Sending state 'FTC6' [12:06:04][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:06:04][D][sensor:094]: 'Loop Time': Sending state 17.00000 ms with 0 decimals of accuracy [12:06:05][D][sensor:094]: 'Esp Uptime': Sending state 521.17700 s with 0 decimals of accuracy [12:06:06][D][text_sensor:064]: 'defrost state': Sending state 'Off' [12:06:08][D][sensor:094]: 'compressor frequency': Sending state 34.00000 Hz with 2 decimals of accuracy [12:06:08][D][sensor:094]: 'WiFi Signal dB': Sending state -79.00000 dBm with 0 decimals of accuracy [12:06:08][D][sensor:094]: 'WiFi Signal %': Sending state 42.00000 % with 0 decimals of accuracy [12:06:09][D][sensor:094]: 'Heap Free': Sending state 186412.00000 B with 0 decimals of accuracy [12:06:09][D][sensor:094]: 'Loop Time': Sending state 118.00000 ms with 0 decimals of accuracy [12:06:09][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy [12:06:10][D][sensor:094]: 'output power': Sending state 3.00000 kW with 3 decimals of accuracy [12:06:11][D][sensor:094]: 'estimated output power': Sending state 3.13500 kW with 3 decimals of accuracy [12:06:12][D][sensor:094]: 'Zone 1 room setpoint value': Sending state 17.50000 °C with 1 decimals of accuracy [12:06:12][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp_target' with value: '20.000000' [12:06:12][D][sensor:094]: 'Zone 1 H/C setpoint value': Sending state 15.00000 °C with 1 decimals of accuracy [12:06:12][I][ecodan.component:045]: Could not publish state of sensor 'z2_flow_temp_target' with value: '20.000000' [12:06:12][D][sensor:094]: 'legionella prevention temp': Sending state 65.00000 °C with 1 decimals of accuracy [12:06:12][D][sensor:094]: 'DHW max temp drop': Sending state 10.00000 °C with 1 decimals of accuracy [12:06:13][D][sensor:094]: 'Zone 1 room temp': Sending state 25.50000 °C with 1 decimals of accuracy [12:06:13][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp' with value: '0.000000' [12:06:13][D][sensor:094]: 'outside temp': Sending state 26.00000 °C with 0 decimals of accuracy [12:06:13][D][sensor:094]: 'refrigerant temp': Sending state 15.00000 °C with 1 decimals of accuracy [12:06:14][D][sensor:094]: 'Heap Free': Sending state 186408.00000 B with 0 decimals of accuracy [12:06:14][D][sensor:094]: 'Loop Time': Sending state 113.00000 ms with 0 decimals of accuracy [12:06:14][D][sensor:094]: 'feed temp': Sending state 15.50000 °C with 1 decimals of accuracy [12:06:14][D][sensor:094]: 'return temp': Sending state 18.50000 °C with 1 decimals of accuracy [12:06:14][D][sensor:094]: 'DHW current temp': Sending state 64.50000 °C with 1 decimals of accuracy [12:06:16][D][sensor:094]: 'boiler flow temp': Sending state 25.00000 °C with 1 decimals of accuracy [12:06:16][D][sensor:094]: 'boiler return temp': Sending state 25.00000 °C with 1 decimals of accuracy [12:06:17][D][text_sensor:064]: 'In1 thermostat status': Sending state 'On' [12:06:17][D][text_sensor:064]: 'In6 thermostat 2 status': Sending state 'Off' [12:06:18][D][sensor:094]: 'operating runtime': Sending state 1568.00000 h with 0 decimals of accuracy [12:06:19][D][sensor:094]: 'Heap Free': Sending state 186412.00000 B with 0 decimals of accuracy [12:06:19][D][sensor:094]: 'Loop Time': Sending state 109.00000 ms with 0 decimals of accuracy [12:06:19][D][text_sensor:064]: 'water pump status': Sending state 'On' [12:06:19][D][text_sensor:064]: '3-way valve status': Sending state 'Off' [12:06:19][I][ecodan.component:056]: Could not publish state of sensor 'status_water_pump_2' with value: 'On' [12:06:19][I][ecodan.component:056]: Could not publish state of sensor 'status_three_way_valve_2' with value: 'On' [12:06:19][I][ecodan.component:290]: command queue was not empty when queueing status query: 5 [12:06:19][D][sensor:094]: 'flow rate': Sending state 18.00000 l/m with 0 decimals of accuracy [12:06:20][D][text_sensor:064]: 'booster heater status': Sending state 'Off' [12:06:20][D][text_sensor:064]: 'immersion heater status': Sending state 'Off' [12:06:21][D][text_sensor:064]: 'DHW forced status': Sending state 'Off' [12:06:21][D][text_sensor:064]: 'holiday status': Sending state 'Off' [12:06:21][D][text_sensor:064]: 'DHW prohibit status': Sending state 'Off' [12:06:21][D][text_sensor:064]: 'Zone 1 prohibit heating status': Sending state 'Off' [12:06:21][D][text_sensor:064]: 'Zone 1 prohibit cooling status': Sending state 'Off' [12:06:21][I][ecodan.component:056]: Could not publish state of sensor 'status_prohibit_heating_z2' with value: 'Off' [12:06:21][I][ecodan.component:056]: Could not publish state of sensor 'status_prohibit_cool_z2' with value: 'Off' [12:06:21][D][internal_temperature:069]: Ignoring invalid temperature (success=0, value=53.3) [12:06:22][D][sensor:094]: 'heating consumed': Sending state 0.00000 kWh with 2 decimals of accuracy [12:06:22][D][sensor:094]: 'cool consumed': Sending state 13.45000 kWh with 2 decimals of accuracy [12:06:22][D][sensor:094]: 'dhw consumed': Sending state 2.65000 kWh with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'heating delivered': Sending state 0.01000 kWh with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'cool delivered': Sending state 58.88000 kWh with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'dhw delivered': Sending state 11.25000 kWh with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'heating cop': Sending state 0.00000 with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'cool cop': Sending state 4.37770 with 2 decimals of accuracy [12:06:23][D][sensor:094]: 'dhw cop': Sending state 4.24528 with 2 decimals of accuracy [12:06:24][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:06:24][D][sensor:094]: 'Loop Time': Sending state 119.00000 ms with 0 decimals of accuracy [12:06:25][D][sensor:094]: 'controller_version': Sending state 3.00000 with 0 decimals of accuracy [12:06:29][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:06:29][D][sensor:094]: 'Loop Time': Sending state 17.00000 ms with 0 decimals of accuracy [12:06:34][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:06:34][D][sensor:094]: 'Loop Time': Sending state 17.00000 ms with 0 decimals of accuracy [12:06:36][D][text_sensor:064]: 'defrost state': Sending state 'Off' [12:06:38][D][sensor:094]: 'compressor frequency': Sending state 34.00000 Hz with 2 decimals of accuracy [12:06:39][D][sensor:094]: 'Heap Free': Sending state 186928.00000 B with 0 decimals of accuracy [12:06:39][D][sensor:094]: 'Loop Time': Sending state 118.00000 ms with 0 decimals of accuracy [12:06:39][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy [12:06:40][D][sensor:094]: 'output power': Sending state 3.00000 kW with 3 decimals of accuracy [12:06:41][D][sensor:094]: 'estimated output power': Sending state 3.76200 kW with 3 decimals of accuracy [12:06:42][D][sensor:094]: 'Zone 1 room setpoint value': Sending state 17.50000 °C with 1 decimals of accuracy [12:06:42][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp_target' with value: '20.000000' [12:06:42][D][sensor:094]: 'Zone 1 H/C setpoint value': Sending state 15.00000 °C with 1 decimals of accuracy [12:06:42][I][ecodan.component:045]: Could not publish state of sensor 'z2_flow_temp_target' with value: '20.000000' [12:06:42][D][sensor:094]: 'legionella prevention temp': Sending state 65.00000 °C with 1 decimals of accuracy [12:06:42][D][sensor:094]: 'DHW max temp drop': Sending state 10.00000 °C with 1 decimals of accuracy [12:06:43][D][sensor:094]: 'Zone 1 room temp': Sending state 25.00000 °C with 1 decimals of accuracy [12:06:43][I][ecodan.component:045]: Could not publish state of sensor 'z2_room_temp' with value: '0.000000' [12:06:43][D][sensor:094]: 'outside temp': Sending state 26.00000 °C with 0 decimals of accuracy [12:06:43][D][sensor:094]: 'refrigerant temp': Sending state 15.00000 °C with 1 decimals of accuracy [12:06:44][D][sensor:094]: 'Heap Free': Sending state 186896.00000 B with 0 decimals of accuracy [12:06:44][D][sensor:094]: 'Loop Time': Sending state 107.00000 ms with 0 decimals of accuracy [12:06:44][D][sensor:094]: 'feed temp': Sending state 15.50000 °C with 1 decimals of accuracy [12:06:44][D][sensor:094]: 'return temp': Sending state 18.50000 °C with 1 decimals of accuracy [12:06:44][D][sensor:094]: 'DHW current temp': Sending state 64.50000 °C with 1 decimals of accuracy [12:06:45][D][sensor:094]: 'boiler flow temp': Sending state 25.00000 °C with 1 decimals of accuracy [12:06:45][D][sensor:094]: 'boiler return temp': Sending state 25.00000 °C with 1 decimals of accuracy [12:06:47][D][text_sensor:064]: 'In1 thermostat status': Sending state 'On' [12:06:47][D][text_sensor:064]: 'In6 thermostat 2 status': Sending state 'Off' [12:06:48][D][sensor:094]: 'operating runtime': Sending state 1568.00000 h with 0 decimals of accuracy [12:06:49][D][sensor:094]: 'Heap Free': Sending state 186896.00000 B with 0 decimals of accuracy [12:06:49][D][sensor:094]: 'Loop Time': Sending state 109.00000 ms with 0 decimals of accuracy [12:06:49][D][text_sensor:064]: 'water pump status': Sending state 'On' [12:06:49][D][text_sensor:064]: '3-way valve status': Sending state 'Off' [12:06:49][I][ecodan.component:056]: Could not publish state of sensor 'status_water_pump_2' with value: 'On' [12:06:49][I][ecodan.component:056]: Could not publish state of sensor 'status_three_way_valve_2' with value: 'On' [12:06:49][I][ecodan.component:290]: command queue was not empty when queueing status query: 5 [12:06:49][W][ecodan.component:302]: discarding pending cmd: 42 [12:06:49][W][ecodan.component:302]: discarding pending cmd: 42 [12:06:49][W][ecodan.component:302]: discarding pending cmd: 42 [12:06:49][W][ecodan.component:302]: discarding pending cmd: 42 [12:06:49][W][ecodan.component:302]: discarding pending cmd: 5B [12:06:50][D][sensor:094]: 'flow rate': Sending state 18.00000 l/m with 0 decimals of accuracy [12:06:50][D][text_sensor:064]: 'booster heater status': Sending state 'Off' [12:06:50][D][text_sensor:064]: 'immersion heater status': Sending state 'Off' [12:06:50][D][text_sensor:064]: 'defrost state': Sending state 'Off' [12:06:51][D][sensor:094]: 'compressor frequency': Sending state 34.00000 Hz with 2 decimals of accuracy [12:06:52][D][sensor:094]: 'heat_source': Sending state 0.00000 with 0 decimals of accuracy
did you check that the discarding happens once +- a minute ? else you might still have linked the old code (you need to adjust the yaml to use the correct branch, or retrieve it locally and build locally)
Please try again, I've adjusted the yaml for local build. Also simplified status query, slow response should not matter anymore
That sounds about right, I got the "command queue not empty" every 30 seconds and the "discarding pending cmd" every 75 seconds. With the now latest version on the feature branch I get no errors anymore, and data seems to generally come in much more steadily. Awesome work. Much appreciated!
merged into main, closing
I've tried using this integration for ESPHome with my FTC6-based Mitsubishi Ecodan heatpump. However, I'm unable to process any commands as the serial interface seems too slow and thus will never get to fulfill the commands in the (ever increasing) queue The hardware used is multiple different M5StickC and M5stickC-Plus units, they all behave the same.
Changing the polling frequency did not change the issue. I'm fairly sure the TX/RX pins are working correctly, is the below output even possible if it isn't?
Relevant esphome config:
Logs right after boot (before issuing any command), note the "[ecodan.component:290]: command queue was not empty when queueing status query: 20":