CoMPaTech / esphome_c1101

ESPHome approach on ITHO EcoFan control through 868 MHz ESP8266 for https://www.home-assistant.io
24 stars 5 forks source link

Compiling error #9

Closed countjuh closed 1 year ago

countjuh commented 1 year ago

Good morning. Good to read you rewrote the itho fancontrol. i was trying to find a solution and here it is. only thin, i get a compiling error.

'' Compiling /data/fancontrol/.pioenvs/fancontrol/libd10/esphome_itho/CC1101.cpp.o In file included from /data/fancontrol/.piolibdeps/fancontrol/esphome_itho/CC1101.cpp:5: /data/fancontrol/.piolibdeps/fancontrol/esphome_itho/CC1101.h:10:10: fatal error: SPI.h: No such file or directory


CoMPaTech commented 1 year ago

Are you sure you have SPI in the libraries section of your yaml? It should automatically pick up from it? See https://github.com/esphome/issues/issues/2911 for a likewise troubleshoot if that helps

  libraries: 
    - https://github.com/CoMPaTech/esphome_itho.git
    - Ticker
    - SPI
countjuh commented 1 year ago

It think it is correct:

'' esphome: name: fancontrol platform: ESP8266 board: d1_mini_pro includes:

wifi: ssid: "*" password: "**"

Enable logging

logger:

Enable Home Assistant API

api: encryption: key: 'jqSTIbQoK2rkoydI4mHbejLoYCChZGxpabv80sFeyeE='

ota: password: 'fan'

countjuh commented 1 year ago

putting -SPI on top library it works! thanks!

CoMPaTech commented 1 year ago

I'll update accordingly, thanks for testing it out!

countjuh commented 1 year ago

Nice. one last question. It works. the remote control uses automatic function which i always activate. fanspeed now react on the internal humidity sensor. In de programming i dont see this command to the itho. Is it something for the future? for the rest, thanks again, working good :)

CoMPaTech commented 1 year ago

I don't have the fancier unit so not sure how the ones with humidity function. I'd have to look up how it works