-
-
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
Guide for usage via the ESPHome Dashboard #5
Comments
I would love that as well. |
Edit: see my other comment below. This is how I did this on Dashboard:
Disclaimer: I have not yet installed the firmware to esp32 (need to find a board). But build was ok so "should" work. yaml content:
Option2: Other a bit more hackish option that I did first:
|
Got it working on ESPHome Dashboard with option2 from my above comments! Here are details:
...to
Example of my .yml with these changes: https://pastebin.com/8XeEueZR
Limitations:
Thanks a lot for this great integration! <3 |
Issue was the Arduino framework. Changed it to:
Now the code compiled! :) Lets see if it works ... |
Thanks, looks great! Does anybody know if it is possible to leave such a device "in the car" -- e.g. I could power it from one of the USB ports, and use it as a Wifi gateway? Or would it always leave the car unlocked? |
I had some errors when building an updated version, probably due file caching (I have ESPHome as add-on in supervised HA). Solved by changing package reference files to to refresh every 60seconds, like this:
|
Can you post your complete yaml file? |
At the end, I have not found reliable way of updating remote package code for the build using esphome add-on dashboard. It seems to use old version of the code, what ever I try (clean build files, reference to specific version tag, setting refresh time, etc). There seems to be some esphome issues how files are cached, maybe related to this (old) pull request to esphome esphome/esphome#5443 |
So basically you recommend to compile the firmware with CMAKE and not ESPHome Dashboard? Is there a short tutorial for that since I am not that experience with that ... |
I am also not so experienced with that, I would like to use dashboard to keep things simple. But maybe I will also switch to command line (as descripted on readme). It is probably more reliable way. You can use esphome in a docker or install it locally https://esphome.io/guides/getting_started_command_line But... Now, without changing anything, I was today again able to build using dashboard just fine! I am pretty sure that ESPHome (at least as a add-on) deletes github code "cache" (only) every 24h. So updating firmware once a day might work. Lets see. My current full .yml: https://pastebin.com/Q8MGxavM |
I am running ESPHome as docker. But I get those compile errors with external resources as stated above. And the ESP32 does hang when booting ... -.- Tried two hardware modules laying around ESP32-C3-Mini as well as generic ESP32. |
Hey everyone. As you, I've been trying to make this work in ESPHome dashboard (in my case as a HA addon). The following yaml worked for me:
I included the override to not adding the mac suffix, as it was then showing up in the dashboard as a seperate device, and adopting it tried to install a new firmware to it, and that failed ¯\_(ツ)_/¯. This is my first foray into ESPHome, so I'm new to some of these things. I never got the listener part to work, but opted to install BLE Radar from F-Droid and deduced that a device with a 20 character seemingly random name starting with "S9" and MAC address starting with A recommendation with that app if you're in doubt is to leave the scanning on while driving and check the map. If a device followed you around for the entire drive, it's probably the car. Hope this helps someone out there :-). |
I did get it to work and be adopted, see #70 (comment) |
Can't seem to get this to compile on an ordinary esp32 generic board. Think its a D1 mini clone. Anyone done this successfully with a generic board and able to share the latest yaml? |
It is working well for me on a D1 Mini clone - we have two cars and 2 D1 Mini's. Also, I have a merged testa_ble fork that has the contributed code for Sentry Mode and HVAC switches. https://github.com/mrd0n/esphome-tesla-ble and https://github.com/mrd0n/tesla-ble.git. These contributions are from @Aaneisch and @herrfrei Here is the full YAML from ESPHome pages in Home Assistant. I think the entire firmware can be compiled and flashed from within Home Assistant and without using the command line. (I started with the command line compile/upload, but have since only used home assistant esphome console. Add the appropriate secrets noted below (note the _louie in this example at the end of each secret name because we have two cars)
|
@mrd0n thanks so much, dumped your code into Espoo,e dashboard, made my changes and it works a treat! The only thing I use from teslemetry that’s missing is to vent the windows. Is this an option for this solution? |
@flybrys Yes, it looks like window vent and window close are possible commands over BLE based on this: The relevant code would need to be ported into @yoziru tesla_ble library similar to the work that @Aaneisch and @herrfrei have done for Sentry Mode and HVAC steering wheel heater commands. |
Also threw @mrd0n's code in and it's working a treat - thanks so much! Have been putting off configuring the tesla fleet api so I can charge off excess solar. We're talking months of procrastination here, and this was a quick solution. And local too ❤️ It complained about python not being in a virtual env, but it seemed to compile fine. This is my first esphome project so likely an issue on my end - but I would have though the esphome builder addon would handle that automatically.
etc... occurs a couple of times for different packages. |
Glad you got it working quickly! This solution really is much "better" than one involving the fleet api component. The python environment warning is (as you suggest) related to the virtual python ESPHome setup and can be safely ignored. |
Hi @mrd0n
Here the code that I try to Upload :
|
Hi - I've not run into the firmware compilation becoming too large. I did notice that you have a "light" and "power supply" defined in the YAML. Does the firmware fit when you exclude the |
YES it works. |
Can you do a guide how to build the firmware via the Dashboard ?
The text was updated successfully, but these errors were encountered: