yoziru / esphome-zehnder-comfoair

Interact with Zehnder Comfoair Q using ESPHome and Home Assistant
https://yoziru.github.io/esphome-zehnder-comfoair/
GNU General Public License v3.0
25 stars 9 forks source link

ComfoAir Q600 - all sensors "Unknown" #18

Closed jrnk closed 3 months ago

jrnk commented 3 months ago

First of all thanks for the great work of you and others on this module :)

However I'm having trouble using this correctly in HA, all my Sensor values are "Unknown". However when the device comes online it sets 'some' values like the Balance Mode, Humidity Sensor and Temperature Profile. And it sets the Fan mode but it shows an incorrect value (Away when it should be Low).

Screenshot 2024-07-10 at 19 52 28 Screenshot 2024-07-10 at 19 53 32

Stack M5Stack AtomLite ESP32 M5Stack Mini CAN Unit (TJA1051T/3)

It's connected as explained here

Built and uploaded to device with:

make compile BOARD=m5stack-atom
esphome upload zehnder-comfoair-q-m5stack-atom.yml

Note: make upload didn't work as it kept defaulting to uploading through the network instead of usb.

My hunch was that the protocol is slightly different for the Q600 than the Q350, but looking at https://github.com/michaelarnauts/aiocomfoconnect/blob/master/docs/PROTOCOL-PDO.md it should be the same.

Any suggestions / reasons this might not work?

yoziru commented 3 months ago

~I think you're using the wrong board, it should be m5stack-atoms3 instead of m5stack-atom~ actually seems like you are using the regular atom lite

If after setting the right board it still doesn't work, I would double-check your jumper cables and make sure you hooked up the right colors to the right place (since that could lead to Unknown values)

jrnk commented 3 months ago

Thanks, the image is for the board but yes, my hunch was the cable connection too but they are exactly connected as per the instructions:

image

image

Maybe the cable is faulty 🤔, I will try to check the raw CAN communication first if I figure out how to do that :)

yoziru commented 3 months ago

That looks right to me, and given your CAN adapter light is on the power is coming through normally. You are using both CAN buses on the Zehnder so don't know if that makes a difference.

The only other thing I can think of is that the rx tx GPIO pins are set wrong for the board (which is possible since I didn't test the regular Atom Lite, taken from https://github.com/dan-s-github/zehnder-comfoair-can). You could try modifying those to another pin and see if that makes a difference.

https://github.com/yoziru/esphome-zehnder-comfoair/blob/dd5e2062868c628e705b94036b91100799fd4171/boards/m5stack-atom.yml#L2

Alternative would be to get an Atom S3 Lite and test if that board works to eliminate the cable or the 2nd CAN bus being the problem

jrnk commented 2 months ago

Thanks so much, it is indeed fixed now. Only had to tweak the flash size, will open a PR for this