Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1918 posts

Uber Geek
+1 received by user: 123


#317632 31-Oct-2024 20:15
Send private message

I want to add an ESP 8266 device in HA, I have successfully flashed the device and it now appears in the ESPHome page in Home Assistant. However, HA doesnt see it and so I cant use it. How do I make HA see it?





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
Ruphus
471 posts

Ultimate Geek
+1 received by user: 181


  #3303926 31-Oct-2024 21:58
Send private message

Following with interest. I have a couple ESP8266 devices from ages ago which I have reporting into HA with MQTT. I'm interested in learning a better, more efficient option for my ESP projects.




huckster
895 posts

Ultimate Geek
+1 received by user: 468

ID Verified
Lifetime subscriber

  #3303929 31-Oct-2024 22:06
Send private message

I'm sure there are many YT clips out there but the basic requirement will be an api key e.g.in your YAML

 

# Enable Home Assistant API
api:  # Add encryption key as desired
  encryption:
    key: abiglongkey123

 

And did you add the ESPHome add-on to HA?

 

EDIT: GZ didn't like that cut'n'paste!


peejayw

1918 posts

Uber Geek
+1 received by user: 123


  #3303952 1-Nov-2024 06:52
Send private message

Where does the encryption key come from?

 

Also, when I go to the ESP integration and click on "Add device" it asks for the host of the ESP node?





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.




fearandloathing
544 posts

Ultimate Geek
+1 received by user: 212

ID Verified
Lifetime subscriber

  #3303980 1-Nov-2024 08:46
Send private message

peejayw:

Where does the encryption key come from?


Also, when I go to the ESP integration and click on "Add device" it asks for the host of the ESP node?



You make it up.
Do the initial flash of device from your esp add in.

fearandloathing
544 posts

Ultimate Geek
+1 received by user: 212

ID Verified
Lifetime subscriber

  #3303985 1-Nov-2024 08:50
Send private message

Example from my config, encryption no longer used api instead, sorry about the formatting.



# WiFi credentials ⬇ #
wifi:
ssid: '${ssid_ssid}'
password: '${ssid_password}'
# Enable fallback hotspot (captive portal) in case wifi connection fails ⬇ #
ap:
ssid: '${device_name}'
password: '${fallback_password}'

# Enable Home Assistant API ⬇ #
api:
# encryption:
# key: '${api_encryption}'
password: '${api_password}'
services:
- service: reset_total_energy
then:
- button.press:
id: button_reset_total

# Web Server ⬇ #
web_server:
port: 80
auth:
username: '${web_username}'
password: '${web_password}'

peejayw

1918 posts

Uber Geek
+1 received by user: 123


  #3304070 1-Nov-2024 12:17
Send private message

Thanks, I have this in my yaml....

 

 

# Enable Home Assistant API

 

api:

 

  encryption:

 

    key: nxkE8Wov1+QtSChQsNSr4pdc5yxJALwLm/bbOvvwCV8=

 

 

 

But when I try to add device, after entering the address I get Can't connect to ESP. Please make sure your YAML file contains an 'api:' line.

 





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


 
 
 
 

Shop now for Lego sets and other gifts (affiliate link).
peejayw

1918 posts

Uber Geek
+1 received by user: 123


  #3304072 1-Nov-2024 12:22
Send private message

Scrub that, the ip address changed after a reboot! All working now, thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


neb

neb
11294 posts

Uber Geek
+1 received by user: 10018

Trusted
Lifetime subscriber

  #3304367 2-Nov-2024 16:00
Send private message

Speaking of ESP32s, for anything working with them this place has an amazing collection of enhanced ESP32s and add-on peripherals.  Look at this for an example.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.