Hi all I am a total newb to this so please bear with me. I have accomplished a few things that show I’m on the track but I have gotten to a point where I can’t Google-fu my way through.
Prerequisites - I have spent a few 5 hrs sessions that shouldn’t have been required. But this is what I have managed.
I have a win11 machine running virtual box to host home assistant server.
I can log into this server using the up address ( however I don’t know how to set it to run secured to do https)
I have loaded esphome into assistant
I know my esp32s3-dev has the sensor plugged correctly as I am able to run test script in Arduino and I get the outputs in serial monitor
I have followed many guides and can’t seem to grasp what’s wrong.
Log into assistant via regular ip , navigate to esphome
Go to setup my esp board I am able to get it to flash the basic package esphome wants to load…
After this point I start to get lost, I have taken sample code for me bme280 sensor and tried to paste it into a manual load for the device. I always get errors usually syntax type stuff like esp home not in file or some other variation.
I have tried looking on interwebs for a pre configured yam file since this is very common sensor… I only ever get copy paste python? Every time I try to run the sample code in Arduino ide I can’t compile due to errors.
I also wonder if I can do ota stuff to load esp32 as I am able to use Arduino to get a ip for it in serial monitor.
My vm of HA is running on the same computer I’m hooking the usb to for the esp32s3 dev. I don’t know if I can command through my vm to install yaml or not but that would be cool to know.
Main ask and hope can someone help me get this thing into ha and reading? I’ve looked all over for a yam to manually load as script after install phone initial package to board. But I cannot find a download of a completed yam and further I know I need to edit it u less it’s formatted for secret info and the correct i2c location as well as some GPIO differences.
Does anyone know how to help I know u guys do this on your own time and I appreciate any help. If more detail need let me know please I think I got the basic info out
Post your full yaml - with your credential redacted. Then maybe someone will have enough information to assist you…
PLEASE ensure any yaml posted uses code tags - accessed by </> in the posting toolbar. Failure to do that will unfortunately result in no one responding to your post.
hi guys thanks for some responses, i have read the to links provided and it doesn’t really help me address my problem.
in my long post i describe beiong able to run sensor test script in arduino ide andview serial output. this output shows my senosr readings so i know its working as well as i2c is setup and registering otherwise i wouldnt get test results back.
from the turtorials online i have hosted my HA server on vm "which is on the same machine the esp32 is plugged into usb for flashing in esp home.
i then type in the ip adress and port to web browser and home assit opens gui
i have already gone in and added esp builder add on.
i thgen click into esphome builder, i click add device i see the esp32 show up on com 4 usb. i then click prepare for first install and esp home completes this task successfully. after that i ak left with my chosen device name added and showing online (although i dont think this is acurate as its not fully setup"
Next i can only adde a program by clicking install project which using code wrriten online for my sensor i try to install. usually this ends up with the warning that the project is preparing and then next step is to access esp home via https to be able to do this update. At this point i dont know how to get secured connection. so i have tried some manual edit option and pasted code to try to create the yam file. this is the code i would like to load after intial install, and to circumvent some questions i know my i2c works, i know esp32s3-dev is on com4 and atleast able to recieve initial payload from esp home. i also have edited code to pull correct gpio pins for sda and scl. here is the code im tryin to use
api and ota are removed as i don’t have a key or whatever to input for either, i cant seem to get the esp32 in home to move past needing to be connected to update, of which when trying man times i have gotten to stages where it asks legacy or modern method when chosing manual. i figured by ultimatly chosing that i could hit edit on my widget and copy past the above into the space and try to install. however theres failure somehow.
last part it seems i could have a better go of doing this from secured connection. i am unable to figure out how to do this? Also is it possible to set this up using my server vm and the board plugged into usb. im sorry if i cant articulate this well i am learning and this project is kind of needed asap as i have peppers growing and i just want a dang read on my conditions
thanks again i hope i did this correct i will post logs if possible once i try further, occasionally while doing all this i get some weird error about unable to reach backup WIFI
edit:when selecting to instal base package by esphomebuilder it brings me to the homebuiilder.io page i select device com port 4 it installs base pack finishes and i click access or whatever and i get this error
An error occurred. Improv Wi-Fi Serial not detected