vekexasia / comfoair-esp32

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

compiling error #76

Closed mattapo closed 1 week ago

mattapo commented 1 week ago

Hi, i use Esphome version 2024.6.6,

this error occurs during compilation:

" .platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bitset: In member function 'void std::bitset<_Nb>::_M_copy_from_ptr(const _CharT*, std::size_t, std::size_t, std::size_t, _CharT, _CharT)': src/esphome\components\comfoair\comfoair.h:14:18: error: expected unqualified-id before '(' token

define min(a,b) ((a) < (b) ? (a): (b))

              ^

src/esphome\components\comfoair\comfoair.h:14:18: error: expected unqualified-id before '(' token

define min(a,b) ((a) < (b) ? (a): (b))

              ^

src/esphome\components\comfoair\comfoair.h:14:18: error: expected unqualified-id before '(' token

define min(a,b) ((a) < (b) ? (a): (b))

"

Can you help me?

vekexasia commented 1 week ago

hey @mattapo let me give it a try and get back to u also u can join discord if you prefer a more instant response. most likely it's a bug I introduced previous days

vekexasia commented 1 week ago

can u show me your configuration?

mattapo commented 1 week ago

Any simple configuration, but also your example yaml.

vekexasia commented 1 week ago

If u can share your configuration (full) it would be better. Also first try with just comfoair:

vekexasia commented 1 week ago

@mattapo which version of esphome are u using?

mattapo commented 1 week ago

I'm using version 2024.6.6

vekexasia commented 1 week ago

can you try to

  1. set refresh: 0s on the external component like so:
    external_components:
    - source: github://vekexasia/comfoair-esp32
    components: [ comfoair ]
    refresh: 0s

    1 have this minimal configuration:

    comfoair:
    global_filters:
    - throttle: 10

NOTE: if you need to set rx and tx pins do that

  1. clean build files using either esphome clean file.yaml or by using the three dots in the interface like shown here:

image

and after that the error should go away as we found in discord with another user

mattapo commented 1 week ago

I saw the change to the comfoair.h file, now it works. Thank you!