-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
ERROR: Cannot install esp-idf-kconfig... [Windows] #98
Comments
Try compiling/flashing using ESPHome within Home Assistant: #5 (comment)
|
Thanks. Just tried it. Unfortunately when I attempt to "Prepare for first use", I get the error message:
Note: I am using the M5NanoC6 (as this was the recommended device mentioned here: https://github.com/yoziru/esphome-tesla-ble. I don't have other ESP devices to try, but don't mind buying something if it makes this setup work, as that is all I'll be using it for. |
For others this helped #70 |
Small update. I just tried doing the initial setup following this post: But got an almost identical error, around conflicting dependencies for esp-idf-kconfig. |
Thanks. But I am not sure what part of this thread is the helpful bit, as the issue I am having is the compiling, not the connection. Or are you referring to this bit: #70 (comment)
|
Looking at the last person your helped with this over here: #86 It looks like they were able to use "ESPHOME in HA", as were you I believe. I do not have esphome in HA yet, as I have no other ESP devices yet, and step one is to tell it the host address of the node. Which I do not have, as I have not setup the ESP device yet. I found this guide: https://esphome.io/guides/getting_started_hassio.html#installing-esphome-device-compiler
Seems like every possible solution is a road block at the moment. Still not sure of how to get around them. |
FYI
|
Looking at the earlier warnings on a compile, it gives a warning that "the selected /ESP-IDF framework version is no the recommended one."
This appears to be specified in the "packages/board.yaml"
How do I remove the manual version specification? |
I see my post was not that clear, sorry. I did share this, not because of the issue I had, but because of the last post which contains a (at that moment) working configuration, which I am still able to update. Yes via ESPHome in Home Assistant, I do not happen to have experience without Home Assistant, possibly that will not work with this config. Good luck, too bad it is pretty difficult to get this running, but when it is running.... it runs successfully (for me to control charge currents based on solar power). |
I am giveing up on trying to get the M5NAnoC6 working. I have now spent nearly a full day troubleshooting, researching, installing different versions of python, tweaking YAML configs, trying different install methods. No luck for my setup to get it compiled for the M5NanoC6, let alone working. Even though someonelse seems to have got it working #86 (comment). I can't seem to use that solution. I think I will swtich tack, and try a board compatible with https://web.esphome.io/ and "esphome-tesl-ble" |
This is the one I'm using with success: |
Thank you. Purchased. I'll give that a go. |
I'm facing the exact same error message. I purchased especially the M5NanoC6 (because it was succesfully tested on that module), but I'm stuck at the following error. Maybe anyone else have an idea how to fix that?
|
Update. I have successfully compiled and upload to this new board. |
I am not able to initiated a "Pair BLE key" and not seeing a bluetooth signal in HA, even when I have the ESP32 powered up inside the car. I checked the bluetooth address was identical to that shown on my phone for the car's bluetooth address. But still no joy. I tested a second identical ESP32 board, and same issue. Not sure what else to try. The board I am using is this one: I compiled using the "tesla-ble-esp32-generic.yml" The "secret.yml" was updated with the correct:
The encryption key was successfully accepted by HomeAssistant, and I can see datea for:
But bluetooth shows BLE Stength as "unknown". Looking from the Tesla bluetooth screen I can not see any "Nearby Devices" Any ideas? |
Hmm. Are there any hints in the esp32 logs? (Either by viewing the esp32 web interface or via ESPHome in Home Assistant? |
Good idea. Looking at the logs via ESPHome, I see a warning:
Restarting the device will :
Something that may be of note is I was unable to follow the instructions to find the BLE MAC address, so I just looked on my phones bluetooth connection to the tesla, and it shows the Teslsa Bluetooth address , so I used that. So I am confident that is correct. |
It sure feels like the the bluetooth module either is not starting, or has the wrong configuration. Here are the details on what happens when I follow the instructions to find the BLE MAC Address. I created and updated my secrets.yaml.
Then when I try to compile, it is not happy.
|
I'm not sure about the reason for the disconnect, but try the listener again to see if the esp32 can discover the MAC address. This is what is working for my D1 mini generic: ***Note near the bottom the section to un-comment to enable the listener. You can do all of this from the Esphome dashboard in Home Assistant.
|
Thanks for your help. Unfortunately I am very new to ESP32 and can't quite follow you instructions. Are you saying I can compile and upload firmware straight from the web interface of Home Assistant? How? Note. I don't have an ESPHome dashboard setup. This brings up the page with:
I can also access relevant info at Services -> Logs
Anway. Can you elaborate on how the method to perform the BLE listen? Cheers |
Looking in to how to install the ESPHome Hompage I saw instrustions here: https://community.home-assistant.io/t/newbie-how-do-i-add-the-esphome-dashboard-addon/336133/3 It describes installing an add-on, but I can't see that option. I believe this may be due to the fact that I have HomeAssistant installed on a NAS, and I think the method of installation stops me from installing Add-ons according to this page: https://www.home-assistant.io/addons/ :( |
Yes, I did assume you had the ESPHome Add-on installed. And yes, with that add-on, you can use the GUI ESPHome Dashboard within Home Assistant to compile and upload ESP32 firmware - all from a single .yaml This avoids the requirement for a separate ESPHome environment. As a result, don't have a lot of experience with the ESP32 command line environment beyond following install instructions and searching for solutions to problems. My Home Assistant installs have all been with the "Home Assistant Operating System" - first on a raspberry pi and then evolving to other hardware and virtualization. I understand the convenience of the NAS install approach. There are so many ways to host Home Assistant, I shouldn't have made that assumption. Hopefully someone can chime in with more command line environment experience. The Tesla-ble solution works so well for me, it's worth trying to get it up and running. |
Thanks. With a few minor modifications I was able to compile and upoad your YAML But it still isn't giviing me any Bluetooth connections. Looks like it is behaving just the same. In the logs I see
I noticed you specified a different board, than the generic yaml in esphome-tesla-ble, even though I bought the same board you recommennded above. Any reason for that? You mentioned the code was for you D1 mini generic. Is that a different board? Hence the difference? Also are you able to confirm that the BLE MAC address you use for the ESP32 found via the listen apporach, is the same or different to the address you see on your phone for the tesla. On an Android phone you can find this in Settings -> Connected Devices -> Tesla and hitting the gear icon. If this is the same for you, then the problem is not the address for me but something else, and I can stop wasting my time trying to get the listen to work. |
A couple of things: I switched from using Can you see the device web interface by visiting http://192.168.68.52 ? If you have my example yaml file working with tweaks, then try to uncomment the listener package, recompile and upload and using the web interface, see if your car is being listed.
The local name (e.g. tesla-ble-6c169c.local doesn't seems to be mapping to 192.168.68.52, so the name is likely different. (tesla-ble-6c169c is my ESP32 device, so yours will be different). Find the name of yours and update the yaml file accordingly. |
!!! SOLVED !!! Okay. The BLE MAC Address reported by my phone for the Tesla is different than that reported by the ESP32 listener. To get the listener to work I used mrd0n's code and modified it to:
Note: I still get the following compile and upload warnings, but things seem to be working. Huge thanks to mdr0n, for your patience and suggestions to help me resolve the issues. Note if you are using the "tesla-ble-esp32-generic.yml" YAML file, and trying to use this to find the teslas BLE MAC address, there still appears to be errors that stop you from compiling successfully once you uncomment the listen line in the base.yml file, so you may need to try using the above YAML, and adjusting to your device name to find the correct MAC address to enter into your secret.yml file. Phew. Okay, now I am past that hurdle, I need to start trying to automate the adjustment of the charging to only charge when I have excess solar power being generated. |
Awesome - persistence rewarded! Glad that you got it working! I'm happy to share my charging with excess solar Automation if you'd like something to start with. |
Sure. Thanks. FYI, it may be a few days before I tackle that, as this has taken up too much of my spare time for now. :) |
I'm in the UK with Octopus Energy. At off peak I pay 7p/kWh (23:30-05:30) while I get 15p/kWh (any time). So I have an automation that empties (to 20%) my solar battery before 23:30 then refilling it before 05:30. On this tariff it's always better for me to charge my car during the off peak period and exporting any excess power. The proviso is that my solar battery has sufficient charge to avoid importing power outside of the off peak period (which it has most of the time). [Just putting this here for info.] |
Thanks. My situation is a bit different. So automation will need to be a bit different.
My plan is to to be able to easily switch between the following few different charging modes:
If i get a faster charger, I might get more fancy. But most of the time I'll just leave it on FREE, and occasionally overide it to NOW. |
Oh and thank again mrd0n. Heaps of good ideas in there for me. Cheers. |
I am having trouble compiling on a windows PC.
I have:
Then I get the following error messages on the command line.
I am not familiar with compiling with python, and am not sure of how to resolve the issue.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: