Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device always offline (initial setup) #172

Open
jtebert opened this issue Dec 14, 2024 · 1 comment
Open

Device always offline (initial setup) #172

jtebert opened this issue Dec 14, 2024 · 1 comment

Comments

@jtebert
Copy link

jtebert commented Dec 14, 2024

I am trying to set this up on a Wemos D1 mini clone and can't get the device to show online in ESPHome. I don't have it connected to my heat pump yet, just running the board its own.

  • I am able to compile and flash to the device through ESPHome in Home Assistant, with no errors (by having it connected by USB to my laptop)
  • Sometimes I can see the device show up in my router's client list (unifi), but it shows the "Wifi experience" as "No experience", despite showing a good connection. Then the device will just disappear.
  • In the Arduino IDE, I tried installing and running the ESP8266 web server example, and I was able to see that page successfully and reliably, so I don't think that I have an issue with the board itself
  • I tried plugging the device into a different power supply, with no change.

Here is my YAML configuration:
hp-test-example-yaml.txt

Any suggestions on what might be going on, or how to debug this further? Not being able to have serial logs makes this trickier.

@ngist
Copy link

ngist commented Jan 4, 2025

I just went through this, it's most likely not related to this project, but rather your home network config or ESP home rather than this code.

ESPHome uses mDNS to located nodes if your home network is blocking mDNS from working then this will happen. There are a few options, 1. reconfigure your network to get mDNS to work, 2. set ESPHome to use ping rather than mDNS, 3. configure the device to use a static IP and assign it a static IP through your router.

See here https://community.home-assistant.io/t/offline-esphome-devices/543534/18

I couldn't figure out the first two so I did the last one, here's some lines from my config to setup the static_ip, i also saw somewhere the power_save_mode might have an effect no idea if this matters.

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.0.110
    gateway: 192.168.0.1
    subnet: 255.255.255.0

  power_save_mode: none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants