Hello!
I have our HomeAssistant installation running.
It has a small number of devices… yet so far working awesome.
I installed the ESPHome addon.
After baby-steps, I was able to configure an ESP32 board with ESPHome inside HomeAssistant.
HomeAssistant used the secrets to connect it to wifi and everything.
My question: what now?
Should that ESP32 board show up somewhere?
If I go to ESPHome inside HomeAssistant, the entity shows as OFFLINE.
Right now I would be happy to push a “blinking LED” program (script? sketch?) via HomeAssistant.
Ultimately, I want to control a small relay with the ESP32.
Yet baby-steps… how can I push this blinking LED?
Maybe something that I can turn on/off the LED via HomeAssistant?
Yet I am SUPER stuck as to “what now?”?
What is the next step?
Do I put the sketch inside the HomeAssistant and push it to the device? Should it then appear in HomeAssistant?
Post the YAML you used in the ESPhome add-on to flash the device. If done right, and mDNS is working on your network, then it should show up as a discovered device. ESPhome uses an API to allow HA to connect to it (by default). You could alternatively setup MQTT on the ESP device, but I’d say that’s a more advanced setup.
As a general note, ESPhome doesn’t use ‘sketches’ like Arduino. You set the device configurations in YAML instead in the ESPhome add-on for compiling the firmware.
Same concept though, you configure whatever you’re wanting to setup in the config YAML and they’ll show in Home Assistant via the ESPhome integration.
If it’s connected to your WiFi (validated from your network gear, you can manually add the device to the ESPhome integration by providing the IP address.
For the ESPhome add-on, you can add a line to your config to tell it what up to use.
The method you are using only works for ESPHome add-on to reach the device. It does not assign the IP address to the device for the HA integration to contact.
Now, you enter the rabbit hole and think of things youd like to make or do… Theres all sorts of places to get project ideas or just to learn stuff. They can all be easily found by visiting the search box here or Google.
And, there it is. You haven’t told it to do anything yet.
Add the WiFi Signal Sensor recommended by @tom_l.
Here is all you need. Add this to your test3.yaml file:
# Example configuration entry
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
web_server:
port: 80
(I added the web server component. It is in another part of the docs).
After it boots, point your browser to test3.local. You should see your WiFi Signal Sensor value.
Do not use static IP unless you really need it and know what you are doing. You don’t need it.
I never said it would give an IP…I said that OP could add it if the device was connected to WiFi but not showing up as online in the ESPhome add-on as a quick test to see if mDNS is the issue.