vekexasia / comfoair-esp32

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

Showing up in HA but entity stay in UNKNOWN state #77

Closed bcornelis closed 1 week ago

bcornelis commented 1 week ago

Dear,

I have the following setup:

Following connections are made:

The esp32 is properly setup in esphome showing up and I see al the entities, but their state is unknown: image

So their must be something not properly setup. What's the best way to start debugging? Can I enable CAN logging to make sure the connection to the Zehnder device is working?

Thanks!

bcornelis commented 1 week ago

As extra information, I took the comfo config from following file: https://github.com/vekexasia/comfoair-esp32/blob/master/docs/esphome_sample.yaml, only changing the pin numbers

vekexasia commented 1 week ago

Can u check the logs and post them here?

On Fri, Jul 5, 2024, 13:54 Bart Cornelis @.***> wrote:

As extra information, I took the comfo config from following file: https://github.com/vekexasia/comfoair-esp32/blob/master/docs/esphome_sample.yaml, only changing the pin numbers

— Reply to this email directly, view it on GitHub https://github.com/vekexasia/comfoair-esp32/issues/77#issuecomment-2210742308, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQ6SZ4IDYBW7EZZ3FHAMDZK2CRHAVCNFSM6AAAAABKNB5LKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQG42DEMZQHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bcornelis commented 1 week ago

I restarted the esp32, and then see those logs appear:

`[16:48:01][C][logger:185]: Logger: [16:48:01][C][logger:186]: Level: DEBUG [16:48:01][C][logger:188]: Log Baud Rate: 115200 [16:48:01][C][logger:189]: Hardware UART: UART0

[16:48:01][C][mdns:116]: Hostname: esphome-web-394a54 [16:48:01][C][esphome.ota:073]: Over-The-Air updates: [16:48:01][C][esphome.ota:074]: Address: esphome-web-394a54.local:3232 [16:48:01][C][esphome.ota:075]: Version: 2 [16:48:01][C][safe_mode:018]: Safe Mode: [16:48:01][C][safe_mode:020]: Boot considered successful after 60 seconds [16:48:01][C][safe_mode:021]: Invoke after 10 boot attempts [16:48:01][C][safe_mode:023]: Remain in safe mode for 300 seconds [16:48:01][C][api:139]: API Server: [16:48:01][C][api:140]: Address: esphome-web-394a54.local:6053 [16:48:01][C][api:144]: Using noise encryption: NO [16:48:02][D][comfoair.component:166]: update_next 278 - iterator 31 [16:48:03][D][comfoair.component:166]: update_next 290 - iterator 32 [16:48:04][D][comfoair.component:166]: update_next 291 - iterator 33 [16:48:05][D][comfoair.component:166]: update_next 292 - iterator 34 [16:48:06][D][comfoair.component:166]: update_next 293 - iterator 35 [16:48:07][D][comfoair.component:166]: update_next 294 - iterator 36 [16:48:08][D][comfoair.component:166]: update_next 369 - iterator 37 [16:48:09][D][comfoair.component:166]: update_next 370 - iterator 38 [16:48:10][D][comfoair.component:166]: update_next 371 - iterator 39 [16:48:11][D][comfoair.component:166]: update_next 372 - iterator 40`

vekexasia commented 1 week ago

This looks like u're not reallly receiving anything on canbus

bcornelis commented 1 week ago

There are two assumptions:

Are those assumptions correct?

bcornelis commented 1 week ago

I've solved the issue by not using the RJ45 connector, but using the canbus wires directly. I do get the expected results now: image

Thanks for your help!

vekexasia commented 1 week ago

Glad to hear @bcornelis can u also comment on #74 ?