ESPHome connected using Wireshark shows offline

I created a temperature sensor on ESP32 running ESPHome.
I used Wireshark integration to connect the ESPHome instance to the same LAN when HA runs.
Everything works, I can use the sensors, I can update ESPHome core and I can update my ESPHome YAML.
BUT … the ESP shows OFFILINE in ESPHome dashboard.
Does anybody knows how to get them “nicely” online ?

you have a mdns issue.

You will still be able to visit/program/read logs.

And the add-on you only need to (re-)program the esp, it doesn’t have any functional purpose for HA.

So if everything works, don’t think about it too much :wink:

I also had the same problem with a Wireguard connected remote sensor running on an ESP32. The device was always showing offline within ESPHome even though the sensors worked and could be seen in Home Assistant. The way I resolved it was to put an entry for the devices Wireshark ip address under the wifi section at the begining of the YAML.

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  use_address: 172.27.66.5 

I applied the same configuration, but still showing offline in the ESPHome dashboard. However, everything working well, sensor reporting, updates, logs.

I am confused. What is this Wireshark integration? I don’t see any documentation on it anywhere. The Wireshark I know (and love) doesn’t seem applicable to Home Assistant or esphome normal usage.

Neel Malik, in response to your question, the Wireguard component in ESPHome allows you to quite easily deploy remote sensors and other devices using ESP32 type microcontrollers. For instance you could deploy a smoke or gas detector in another property using a WiFi connection and the Wireguard VPN. It’s something I had been wanting to do for a while and when I realised how straightforward it was I tried it out and it worked first time.

1 Like

still not seeing a single thing (documentation related) for Wireshark. There is this:

Are you talking about this:

That is an integration for Home Assistant that allows using esphome devices at remote locations connected by a Wireguard VPN. That makes sense, just isn’t Wireshark.

2 Likes

neel-m Neel Malik,

You are right ! This whole discussion appears to be titled wrong and should be about Wireguard not Wireshark. :grin:

1 Like