Hello,
I have read many similar topic, faq, other people’s issues and I have no solution so far. My ESP device is online and ESPhome inside HA fails to find it, HA fails to add it as an integration with entities.
A note:
HA is a VM that is running under Unraid. For clarity: I have a ton of IoT devices and all of them intergrates nicely with HA on my network. I dont believe I have any network issue. This is my very first ESP home device.
I do not have physical access to the usb port, so in ESPhome I have created a device, downloaded the bin file and flashed it from web interface.
My config yaml:
esphome:
name: folia-homero
esp8266:
board: esp01_1m
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
encryption:
key: "[redacted]"
mdns:
disabled: false
ota:
password: "[redacted]"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Folia-Homero Fallback Hotspot"
password: "04EPfc4ZnS02"
manual_ip:
static_ip: 192.168.2.26
gateway: 192.168.1.1
subnet: 255.255.255.0
captive_portal:
dallas:
- pin: GPIO4
sensor:
- platform: dallas
address: 0xd503139794679428
name: "Folia Homerseklet"
Log collected with the web interface via USB connection:
[I][logger:258]: Log initialized
[C][ota:469]: There have been 0 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[V][app:030]: Sorting components by setup priority...
[VV][scheduler:057]: set_interval(name='', interval=60000, offset=11593)
[C][dallas.sensor:032]: Setting up DallasComponent...
[VV][dallas.sensor:255]: Scratch pad: 66.01.55.05.7F.A5.81.66.FA (FA)
[VV][scheduler:057]: set_interval(name='update', interval=60000, offset=9894)
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]: Local MAC: C8:C9:A3:5C:14:75
[V][wifi_esp8266:058]: Enabling STA.
mode : sta(c8:c9:a3:5c:14:75)
add if0
[V][wifi_esp8266:534]: Event: Changed Mode old=OFF new=STA
wifi evt: 8
sleep disable
[D][wifi:386]: Starting scan...
[VV][scheduler:195]: Running interval '' with interval=60000 last_execution=4294896094 (now=556)
[VV][scheduler:195]: Running interval 'update' with interval=60000 last_execution=4294897869 (now=556)
[VV][scheduler:026]: set_timeout(name='0xd503139794679428', timeout=750)
[VV][scheduler:195]: Running timeout '0xd503139794679428' with interval=750 last_execution=571 (now=1321)
[VV][dallas.sensor:255]: Scratch pad: 69.01.55.05.7F.A5.81.66.00 (00)
[D][dallas.sensor:143]: 'Folia Homerseklet': Got Temperature=22.6°C
[V][sensor:076]: 'Folia Homerseklet': Received new state 22.562500
[D][sensor:126]: 'Folia Homerseklet': Sending state 22.56250 °C with 1 decimals of accuracy
scandone
[D][wifi:401]: Found networks:
[I][wifi:444]: - 'IoT' [redacted]▂▄▆█
[D][wifi:446]: Channel: 6
[D][wifi:447]: RSSI: -55 dB
[I][wifi:444]: - 'IoT' [redacted]▂▄▆█
[D][wifi:446]: Channel: 11
[D][wifi:447]: RSSI: -71 dB
[I][wifi:444]: - 'IoT' [redacted]▂▄▆█
[D][wifi:446]: Channel: 6
[D][wifi:447]: RSSI: -75 dB
[D][wifi:449]: - [redacted] [redacted]▂▄▆█
[D][wifi:449]: - [redacted] [redacted]▂▄▆█
[D][wifi:449]: - [redacted] [redacted]▂▄▆█
[D][wifi:449]: - [redacted] [redacted]▂▄▆█
[D][wifi:449]: - [redacted] [redacted]▂▄▆█
[I][wifi:257]: WiFi Connecting to 'IoT'...
[V][wifi:259]: Connection Params:
[V][wifi:260]: SSID: 'IoT'
[V][wifi:263]: BSSID: FA:92:BF:C1:21:24
[V][wifi:283]: Password: [redacted]
[V][wifi:288]: Channel: 6
[V][wifi:294]: Manual IP: Static IP=192.168.2.26 Gateway=192.168.1.1 Subnet=255.255.255.0 DNS1=0.0.0.0 DNS2=0.0.0.0
[V][wifi:299]: Hidden: NO
[V][wifi_esp8266:492]: Event: Changed AuthMode old=OPEN new=WPA2 PSK
wifi evt: 2
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with IoT, channel 6
ip:192.168.2.26,mask:255.255.255.0,gw:192.168.1.1
ip:192.168.2.26,mask:255.255.255.0,gw:192.168.1.1
[V][wifi_esp8266:468]: Event: Connected ssid='IoT' bssid=FA:92:BF:C1:21:24 channel=6
wifi evt: 0
[V][wifi_esp8266:507]: Event: Got IP static_ip=192.168.2.26 gateway=192.168.1.1 netmask=255.255.255.0
wifi evt: 3
[I][wifi:518]: WiFi Connected!
[C][wifi:362]: Local MAC: C8:C9:A3:5C:14:75
[C][wifi:363]: SSID: [redacted]
[C][wifi:364]: IP Address: 192.168.2.26
[C][wifi:365]: BSSID: [redacted]
[C][wifi:367]: Hostname: 'folia-homero'
[C][wifi:369]: Signal strength: -59 dB ▂▄▆█
[V][wifi:371]: Priority: 0.0
[C][wifi:373]: Channel: 6
[C][wifi:374]: Subnet: 255.255.255.0
[C][wifi:375]: Gateway: 192.168.1.1
[C][wifi:376]: DNS1: 0.0.0.0
[C][wifi:377]: DNS2: 0.0.0.0
[D][wifi:527]: Disabling AP...
[C][ota:093]: Over-The-Air Updates:
[C][ota:094]: Address: 192.168.2.26:8266
[C][ota:097]: Using Password.
[C][api:025]: Setting up Home Assistant API server...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb 4 2023, 15:12:34
[C][wifi:504]: WiFi:
[C][wifi:362]: Local MAC: C8:C9:A3:5C:14:75
[C][wifi:363]: SSID: [redacted]
[C][wifi:364]: IP Address: 192.168.2.26
[C][wifi:365]: BSSID: [redacted]
[C][wifi:367]: Hostname: 'folia-homero'
[C][wifi:369]: Signal strength: -59 dB ▂▄▆█
[V][wifi:371]: Priority: 0.0
[C][wifi:373]: Channel: 6
[C][wifi:374]: Subnet: 255.255.255.0
[C][wifi:375]: Gateway: 192.168.1.1
[C][wifi:376]: DNS1: 0.0.0.0
[C][wifi:377]: DNS2: 0.0.0.0
[C][logger:293]: Logger:
[C][logger:294]: Level: VERY_VERBOSE
[C][logger:295]: Log Baud Rate: 115200
[C][logger:296]: Hardware UART: UART0
[C][dallas.sensor:075]: DallasComponent:
[C][dallas.sensor:076]: Pin: GPIO4
[C][dallas.sensor:077]: Update Interval: 60.0s
[D][dallas.sensor:082]: Found sensors:
[D][dallas.sensor:084]: 0xd503139794679428
[C][dallas.sensor:089]: Device 'Folia Homerseklet'
[C][dallas.sensor:089]: Device Class: 'temperature'
[C][dallas.sensor:089]: State Class: 'measurement'
[C][dallas.sensor:089]: Unit of Measurement: '°C'
[C][dallas.sensor:089]: Accuracy Decimals: 1
[V][dallas.sensor:089]: Unique ID: 'dallas-d503139794679428'
[C][dallas.sensor:097]: Address: 0xd503139794679428
[C][dallas.sensor:098]: Resolution: 12
[C][captive_portal:088]: Captive Portal:
[C][mdns:103]: mDNS:
[C][mdns:104]: Hostname: folia-homero
[V][mdns:105]: Services:
[V][mdns:107]: - _esphomelib, _tcp, 6053
[V][mdns:109]: TXT: version = 2022.12.8
[V][mdns:109]: TXT: mac = c8c9a35c1475
[V][mdns:109]: TXT: platform = ESP8266
[V][mdns:109]: TXT: board = esp01_1m
[V][mdns:109]: TXT: network = wifi
[C][ota:093]: Over-The-Air Updates:
[C][ota:094]: Address: 192.168.2.26:8266
[C][ota:097]: Using Password.
[C][api:138]: API Server:
[C][api:139]: Address: 192.168.2.26:6053
[C][api:141]: Using noise encryption: YES
fpm close 3
pm open,type:0 0
[VV][scheduler:195]: Running interval '' with interval=60000 last_execution=4294956094 (now=48802)
[VV][scheduler:195]: Running interval 'update' with interval=60000 last_execution=4294957869 (now=50574)
[VV][scheduler:026]: set_timeout(name='0xd503139794679428', timeout=750)
[VV][scheduler:195]: Running timeout '0xd503139794679428' with interval=750 last_execution=50578 (now=51333)
[VV][dallas.sensor:255]: Scratch pad: 67.01.55.05.7F.A5.81.66.B9 (B9)
[D][dallas.sensor:143]: 'Folia Homerseklet': Got Temperature=22.4°C
[V][sensor:076]: 'Folia Homerseklet': Received new state 22.437500
[D][sensor:126]: 'Folia Homerseklet': Sending state 22.43750 °C with 1 decimals of accuracy
The device is online on my network, I can see it in Unifi Console:
Please suggest anything. Thank you,