vekexasia / comfoair-esp32

Interact with Zehnder Comfoair with esp32
Other
117 stars 38 forks source link

5 Temperatures show incorrect values #23

Closed panosnl closed 1 year ago

panosnl commented 1 year ago

All values seem to come correctly from my Q600 into MQTT.

However 5 temp values show strange behavour: They cycle simultanuously the same (incorect) values: 0, 128, ~600) the latter value changes over time.

image

vekexasia commented 1 year ago

hey @panosnl Maybe they changed the protocol? looks like you've a diff metric (not temperature) at those locations.

panosnl commented 1 year ago

Does anyone have temps running OK on firmware 1.9.1? Is it possible to down/upgrade without the LAN interface?

Is there anything I can do/help to fix this?

debug info:

1462001 X 10 354041 X 24D 0 Decoded :) ah_actual - 0.771E4041 X 296 9 Decoded :) exhaust_fan_speed - 245410000001 X 0 1DC041 X 24A 1 Decoded :) exhaust_fan_flow - 330354041 X 24E 0 Decoded :) ah_actual - 0.781444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10 1462001 X 10 1404041 X 20 0 1408081 X 20 0 140C101 X 20 0 1410201 X 20 0 1414401 X 20 0 1418801 X 20 0 141D001 X 20 0 1422001 X 20 0 1E4041 X 294 9 Decoded :) exhaust_fan_speed - 24521E8041 X 281 9 Decoded :) supply_fan_speed - 2433200041 X 250 0 Decoded :) power_consumption_current - 801DC041 X 24B 1 Decoded :) exhaust_fan_flow - 331354041 X 24F 0 Decoded :) ah_actual - 0.791444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10 1462001 X 10 10000001 X 0 1DC041 X 24A 1 Decoded :) exhaust_fan_flow - 3301E4041 X 292 9 Decoded :) exhaust_fan_speed - 24504C4041 X 26C 0 354041 X 250 0 Decoded :) ah_actual - 0.80378041 X 10 1444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10 1462001 X 10 1E0041 X 24A 1 Decoded :) supply_fan_flow - 330200041 X 251 0 Decoded :) power_consumption_current - 811DC041 X 249 1 Decoded :) exhaust_fan_flow - 3291E4041 X 293 9 Decoded :) exhaust_fan_speed - 2451354041 X 251 0 Decoded :) ah_actual - 0.8110000001 X 0 1E8041 X 282 9 Decoded :) supply_fan_speed - 2434200041 X 250 0 Decoded :) power_consumption_current - 801DC041 X 24A 1 Decoded :) exhaust_fan_flow - 3301E4041 X 292 9 Decoded :) exhaust_fan_speed - 2450354041 X 252 0 Decoded :) ah_actual - 0.821444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10 1462001 X 10 200041 X 251 0 Decoded :) power_consumption_current - 811E4041 X 293 9 Decoded :) exhaust_fan_speed - 24511444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 230.4144C101 X 10 Decoded :) exhaust_air_temp - 230.41450201 X 10 Decoded :) outdoor_air_temp - 230.41454401 X 10 Decoded :) pre_heater_temp_after - 230.41458801 X 10 Decoded :) post_heater_temp_before - 230.4145D001 X 10 1462001 X 10 10000001 X 0 1E8041 X 283 9 Decoded :) supply_fan_speed - 24351E4041 X 294 9 Decoded :) exhaust_fan_speed - 24521444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 230.4144C101 X 10 Decoded :) exhaust_air_temp - 230.41450201 X 10 Decoded :) outdoor_air_temp - 230.41454401 X 10 Decoded :) pre_heater_temp_after - 230.41458801 X 10 Decoded :) post_heater_temp_before - 230.4145D001 X 10 1462001 X 10 1E8041 X 282 9 Decoded :) supply_fan_speed - 24341DC041 X 249 1 Decoded :) exhaust_fan_flow - 32910000001 X 0 1DC041 X 24A 1 Decoded :) exhaust_fan_flow - 3301E4041 X 293 9 Decoded :) exhaust_fan_speed - 24511E0041 X 249 1 Decoded :) supply_fan_flow - 3291444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 25.6144C101 X 10 Decoded :) exhaust_air_temp - 25.61450201 X 10 Decoded :) outdoor_air_temp - 25.61454401 X 10 Decoded :) pre_heater_temp_after - 25.61458801 X 10 Decoded :) post_heater_temp_before - 25.6145D001 X 10 1462001 X 10 354041 X 253 0 Decoded :) ah_actual - 0.831DC041 X 249 1 Decoded :) exhaust_fan_flow - 3291E4041 X 294 9 Decoded :) exhaust_fan_speed - 24521E0041 X 24A 1 Decoded :) supply_fan_flow - 3301444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 25.6144C101 X 10 Decoded :) exhaust_air_temp - 25.61450201 X 10 Decoded :) outdoor_air_temp - 25.61454401 X 10 Decoded :) pre_heater_temp_after - 25.61458801 X 10 Decoded :) post_heater_temp_before - 25.6145D001 X 10 1462001 X 10 10000001 X 0 1E8041 X 284 9 Decoded :) supply_fan_speed - 24361DC041 X 24A 1 Decoded :) exhaust_fan_flow - 3301E0041 X 249 1 Decoded :) supply_fan_flow - 329354041 X 252 0 Decoded :) ah_actual - 0.821404041 X 20 0 1408081 X 20 0 140C101 X 20 0 1410201 X 20 0 1414401 X 20 0 1418801 X 20 0 141D001 X 20 0 1422001 X 20 0 1444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10 1462001 X 10 1E4041 X 293 9 Decoded :) exhaust_fan_speed - 24511E8041 X 283 9 Decoded :) supply_fan_speed - 2435688041 X 10 10000001 X 0 1DC041 X 24B 1 Decoded :) exhaust_fan_flow - 3311E4041 X 295 9 Decoded :) exhaust_fan_speed - 24531E0041 X 24A 1 Decoded :) supply_fan_flow - 3304C4041 X 26D 0 1444041 X 10 1448081 X 10 Decoded :) extract_air_temp - 0.0144C101 X 10 Decoded :) exhaust_air_temp - 0.01450201 X 10 Decoded :) outdoor_air_temp - 0.01454401 X 10 Decoded :) pre_heater_temp_after - 0.01458801 X 10 Decoded :) post_heater_temp_before - 0.0145D001 X 10

panosnl commented 1 year ago

Update:

I noticed that the bogus values are updated every second. However I do see correct values coming by at a 'normal' rate that is expected 10-20 sec.

This means that the values are sent correctly after all but incorrect values are injected somehow. @vekexasia Could it be that the decode for these parameters is falsely triggered ?

vekexasia commented 1 year ago

so to make it clear you get "invalid values" AND "valid values" ?

It could be a bug in my code for the firmware 1.9.1 that can't decode values. Can you isolate just one metric and the raw you get annotating them?

panosnl commented 1 year ago

Yes. that is hove it seems to be . outdoor temp is 24.1. I put some outdoortemp loggings in bold.

also it seems that Message : 1450201 X 10 gives both 0 and 128 ....

Cleaned up debug (decoded line needed a LF):

Message : 360041 X 274 0 Decoded : ac_actual - 1.16 Message : 1444041 X 10 Message : 1448081 X 10 Decoded : extract_air_temp - 0.0 Message : 144C101 X 10 Decoded : exhaust_air_temp - 0.0 Message : 1450201 X 10 Decoded : outdoor_air_temp - 0.0 Message : 1454401 X 10 Decoded : pre_heater_temp_after - 0.0 Message : 1458801 X 10 Decoded : post_heater_temp_before - 0.0 Message : 145D001 X 10 Message : 1462001 X 10 Message : 1E8041 X 237 5 Decoded : supply_fan_speed - 1335 Message : 1E4041 X 27B 5 Decoded : exhaust_fan_speed - 1403 Message : 10000001 X 0 Message : 370041 X 2F1 0 Decoded : pre_heater_temp_before - 24.1 Message : 450041 X 2F1 0 Decoded : outdoor_air_temp - 24.1 Message : 454041 X 2F1 0 Decoded : pre_heater_temp_after - 24.1 Message : 1E8041 X 235 5 Decoded : supply_fan_speed - 1333 Message : 1E4041 X 278 5 Decoded : exhaust_fan_speed - 1400 Message : 1444041 X 10 Message : 1448081 X 10 Decoded : extract_air_temp - 128.0 Message : 144C101 X 10 Decoded : exhaust_air_temp - 128.0 Message : 1450201 X 10 Decoded : outdoor_air_temp - 128.0 Message : 1454401 X 10 Decoded : pre_heater_temp_after - 128.0 Message : 1458801 X 10 Decoded : post_heater_temp_before - 128.0 Message : 145D001 X 10 Message : 1462001 X 10 Message : 1DC041 X 2A4 0 Decoded : exhaust_fan_flow - 164 Message : 1D8041 X 11E Decoded : supply_fan_duty - 30 Message : 360041 X 275 0 Decoded : ac_actual - 1.17 Message : 1E8041 X 23F 5 Decoded : supply_fan_speed - 1343 Message : 1E4041 X 276 5 Decoded : exhaust_fan_speed - 1398 Message : 10000001 X 0 Message : 1444041 X 10 Message : 1448081 X 10 Decoded : extract_air_temp - 128.0 Message : 144C101 X 10 Decoded : exhaust_air_temp - 128.0 Message : 1450201 X 10 Decoded : outdoor_air_temp - 128.0 Message : 1454401 X 10 Decoded : pre_heater_temp_after - 128.0 Message : 1458801 X 10 Decoded : post_heater_temp_before - 128.0 Message : 145D001 X 10 Message : 1462001 X 10 Message : 1E0041 X 2A4 0 Decoded : supply_fan_flow - 164 Message : 4C8041 X 21B 0 Message : 360041 X 276 0 Decoded : ac_actual - 1.18 Message : 1E8041 X 248 5 Decoded : supply_fan_speed - 1352 Message : 1E4041 X 275 5 Decoded : exhaust_fan_speed - 1397

vekexasia commented 1 year ago

Message : 1450201 X 10 Decoded : outdoor_air_temp - 128.0 and Message : 1450201 X 10 Decoded : outdoor_air_temp - 0.0

there is something wrong within the decoding then. Cause looks like same emsage provides 2 diff values.

Can you give it a try and reset it to 0 before decoding?

panosnl commented 1 year ago

Can you give it a try and reset it to 0 before decoding?

I am happy to try . Please tell me how I can do that.

masafra86 commented 1 year ago

I have the same identical problem. Those 5 temperatures get quite strange values (0, 128, 500). I don't know how to debug them. Additionally, I'm not able to send commands to the uniting I can't understand why

vekexasia commented 1 year ago

Hey guys can you try to change line 136 of message.cpp to this?

uint16_t PDOID = (frame->id & 0x01fff000) >> 14;

? There is an added 1

panosnl commented 1 year ago

Hey guys can you try to change line 136 of message.cpp to this?

uint16_t PDOID = (frame->id & 0x01fff000) >> 14;

? There is an added 1

Thanks for the fix.... No weird values anymore it seems.

image

masafra86 commented 1 year ago

I confirm for the values. Now, what about the commands? Do you have any fix to give?

vekexasia commented 1 year ago

can you open a new ticket masafra please and link it here? so that anyone else having issues with command can relate.