I’m using Home Assistant Supervised on Rasbian. I try to install ESPHome integration to control an ESP32 device.
When I try to install ESPHome integration by enter the ip adress of my ESP32 device, i have the message : Impossible de se connecter à ESP. Assurez-vous que votre fichier YAML contient une ligne 'api:'.
If your’s looks like that then you have addons (and integrations! To get the ESPHome addon, you need to add a repo. Click on the three dots at top right in Supervisor and add https://github.com/esphome/hassio. Now you can install the ESPHome addon.
to the .yaml and install that. It does not matter what password you use but I think you need to enable ota: Copy that .yaml configuration into ESPHome and it may work!
Double check the IP address for the ESP32. You should be able to ping the address. You can install “zenmap” https://nmap.org/download.html or use nmap from the command line. This will do a ping sweep of your network:
# nmap -sn 192.168.1.0/24
I’m not sure what the MAC addresses look like for ESP32 but Google all the ones you do not recognise.
pi@raspberrypi:~ $ nmap -sn 192.168.1.47
Starting Nmap 7.70 ( https://nmap.org ) at 2020-06-09 18:15 CEST
Nmap scan report for 192.168.1.47
Host is up (0.15s latency).
Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
I’ll try tomorrow to install Hass.io on another SD card to see if ESPHome installation by add on interface solves the problem…
But I’d like
to keep Rasbian installed and I wish to not have all my zwave devices to remove et include again…
Does the device show as online in the ESPHome Configuration page? There should be a green dot and word online next to it like this one:
This is separate from the Home Assistant integration, so it should show online even if you haven’t completed adding the integration. If it does show online, add
logger:
level: DEBUG
to your configuration. When the device reappears as online, start by clicking Show Logs. You should be able to see if it has connected to the API. It can sometime take awhile for the device to appear or to connect.
When you change from a static IP as mentioned above, you can also view the IP address in the log.
Anhone get this working with the epshome docker container (not hassio)? I’m trying to get it all setup without having a device yet, but it gives me this api error and there is no esphome root config file created. (it does create .esphome/platformio though…)