Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing/updating in the Home Assistant ESPHome addon? #6

Closed
no1knows opened this issue Aug 19, 2023 · 10 comments
Closed

Installing/updating in the Home Assistant ESPHome addon? #6

no1knows opened this issue Aug 19, 2023 · 10 comments

Comments

@no1knows
Copy link

Has anyone managed to use the Home Assistant esphome addon to install/update the firmware? I just tried, and got the usual CC1101_RFx-related errors.

Does anyone know where you're supposed to copy the .cpp and .h files so that the esphome addon can see them when compiling? (Presumably somewhere in a docker container?). For now I've compiled the latest version back on my server (rather than RPi) manually using esphome cmdline, but would be great if we could update without doing that. Cheers!

@tobes49
Copy link

tobes49 commented Aug 20, 2023

Yea I used the ESP home add on.

You need to install a file editor add on for home assistant.

Once installed you navigate to config/esphome/.esphome/build/cc1101/src

Paste the files. CC1101_RFx.cpp and CC1101_RFx.h into this directory.

Please see my screen shot but I have renamed my CC1101 to iboost so use CC1101
Screenshot_20230820_133723_Home Assistant

Once done retry the install and all should be fine. 😊

I have found the update doesn't want to work wireless but not tried wire yet. (But also happy to not touch what's working)

@no1knows
Copy link
Author

Thank you, that did the trick! Unfortunately the new version still seems to hang before anything useful happens, but that's another issue!

@jfdawson
Copy link

jfdawson commented Apr 8, 2024

Many thanks for the code and inspiration so far but...
I'm still trying to understand the ESPHome build environment, currently under HAOS on mini-pc.
There was no .esphome under /homeassistant/esphome/ so I made /homeassistant/esphome/.esphome/build/cc1101/src and added the CC1101_RFx.cpp and CC1101_RFx.h files, but the build system does not seem to pick them up, I still get errors that suggest it is not being complied or linked, and as the build system is a mystery to me I'm not sure if this is correct or how to add by hand
Errors:
...
Linking .pioenvs/mini-d1-temp/firmware.elf
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pioenvs/mini-d1-temp/src/main.cpp.o:(.literal._ZN11iBoostBuddy5setupEv[iBoostBuddy::setup()]+0x24): undefined reference to CC1101::reset()' /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pioenvs/mini-d1-temp/src/main.cpp.o:(.literal._ZN11iBoostBuddy5setupEv[iBoostBuddy::setup()]+0x28): undefined reference to CC1101::begin(unsigned int)'
....
Any help much appreciated.

@srchild
Copy link

srchild commented Apr 8, 2024

Have a look at this thread

You need to get inside the docker container if you are using HAOS

@jfdawson
Copy link

jfdawson commented Apr 8, 2024

Many thanks - this explains many things I was struggling with in trying to understand HA. I did not realise things run in containers.
Ignorance is definitely not bliss!

Just to confirm, The compile works now.

@sm01-uk
Copy link

sm01-uk commented Jun 4, 2024

I am encountering the same difficulties as you @jfdawson - would you be able to provide a little more detail on what you did to sort your problem? I am running HAOS on Raspberry Pi 4 and am trying to use the ESPHome addon to install the iBoost software. Any help would be much appreciated!

@jfdawson
Copy link

jfdawson commented Jun 4, 2024

In essence I followed the instructions in the thread cited above by srchild above.

The essence is that ESPHOME runs inside a container under HAOS and you have to gain access to the container filesystem and copy the CC1101* files to the iboost/src folder.

If this does not make sense we can dig deeper....

@sm01-uk
Copy link

sm01-uk commented Jun 4, 2024 via email

@sm01-uk
Copy link

sm01-uk commented Jun 5, 2024 via email

@jfdawson
Copy link

jfdawson commented Jun 6, 2024

Steve,

Essentially you are correct.

It took me a couple of attempts to get the wiring right, partly due to misreading the IO pins on the ESP board I had.

If you can send me a photo that shows the wiring and let me know which board model you are using I may be able to spot something.

Possibly best to send direct to my e-mail: jfd141@gmx.co.uk as this is a bit off thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants