Closed gfalgiano closed 11 months ago
It been a long time since I upgraded esphome. When I recently moved to new machine, I had similar problems. I did notice that several forks have made changes I need to incorporate: example:
see fork by TheLordStyle main...TheLordStyle:lc709203f:main
@boverby i tried a fork that seemed to be the most recently updated, but had the same issue. I’ll try the one you mentioned.
Also, any tips for getting Home Assistant to install an older version of ESPhome? Started searching last night, but haven’t found a straightforward answer yet. Figured that would allow me to run the code from one of the forks from last Nov.
On Tue, Aug 22, 2023 at 16:52 gfalgiano @.***> wrote:
@boverby https://github.com/boverby i tried a fork that seemed to be the most recently updated, but had the same issue. I’ll try the one you mentioned.
Also, any tips for getting Home Assistant to install an older version of ESPhome? Started searching last night, but haven’t found a straightforward answer yet. Figured that would allow me to run the code from one of the forks from last Nov.
— Reply to this email directly, view it on GitHub https://github.com/boverby/lc709203f/issues/3#issuecomment-1688916472, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUCJXJAIVHSXWUDPBRR7GDXWULY5ANCNFSM6AAAAAA3ZOMXJ4 . You are receiving this because you were mentioned.Message ID: @.***>
Sorry, I have never used esphome inside hass, I use cli.
Thanks for the fork suggestion @boverby, that version worked for me!
For those using ESPHome inside HA, you can use the external_components feature to automatically grab the need files from github and compile your firmware. Their docs suggested a certain file/folder structure, so I forked TheLordStyle main...TheLordStyle:lc709203f:main branch and changed the directory structure and it worked like charm.
I get this error when compiling. Any suggestions?
INFO ESPHome 2023.8.2 INFO Reading configuration /config/esphome/esphome-web-bxxxxx.yaml... INFO Generating C++ source... INFO Compiling app... Processing esphome-web-bxxxxx (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
~~ src/esphome/components/lc709203f/lc709203f.cpp:335:17: error: 'highByte' was not declared in this scope crcArray[3] = highByte(data); ^~~~ src/esphome/components/lc709203f/lc709203f.cpp:339:3: error: 'Wire' was not declared in this scope Wire.beginTransmission(i2c_address); ^~~~ src/esphome/components/lc709203f/lc709203f.cpp:339:3: note: suggested alternative: 'pipe' Wire.beginTransmission(i2c_address); ^~~~ pipe src/esphome/components/lc709203f/lc709203f.cpp: In member function 'int16_t esphome::lc709203f::LC709203FComponent::read16(uint8_t)': src/esphome/components/lc709203f/lc709203f.cpp:354:3: error: 'Wire' was not declared in this scope Wire.beginTransmission(i2c_address); ^~~~ src/esphome/components/lc709203f/lc709203f.cpp:354:3: note: suggested alternative: 'pipe' Wire.beginTransmission(i2c_address); ^~~~ pipe src/esphome/components/lc709203f/lc709203f.cpp:360:10: error: 'word' was not declared in this scope data = word(highByteData, lowByteData); ^~~~ src/esphome/components/lc709203f/lc709203f.cpp:360:10: note: suggested alternative: 'fork' data = word(highByteData, lowByteData); ^~~~ fork Compiling /data/esphome-web-bxxxxx/.pioenvs/esphome-web-bxxxxx/src/esphome/components/mdns/mdns_esp8266.cpp.o Compiling /data/esphome-web-bxxxxx/.pioenvs/esphome-web-bxxxxx/src/esphome/components/mdns/mdns_host.cpp.o *** [/data/esphome-web-bxxxxx/.pioenvs/esphome-web-bxxxxx/src/esphome/components/lc709203f/lc709203f.cpp.o] Error 1 ========================= [FAILED] Took 12.82 seconds =========================