Sensor status issue after migration
I recently move my HA/esphome installation from an unsupported OS to HAos. The migration went very well, with one (annoying) minor exception. One of my sensors in esphome is showing offline, even though I'm getting good data from the sensor. I've validated and installed the image a few times, but still shows offline. Am I missing something here? What controls the status of a sensor?
Posted Mar 21, 2023, 2:38 AM UTC
48
Can you be more specific? Perhaps some screenshots of where it says offline?
Sorry, This should make it more clear. If I click on logs, I'll get output from the sensor like:
[09:43:44][D][sensor:126]: 'chicken_coop_water': Sending state 4.62500 °C with 1 decimals of accuracyIs the device in a location with poor WiFi reception or is battery powered and goes to sleep? I have a couple devices like this that show as offline periodically.
No?
Ok. The online/offline status there relies on mdns packets that are periodically sent.
Honestly though, if it works in HA and you can view the logs, there is no need to worry about it. The status there has zero effect on HA
Success! Just had to add an interface on that VLAN on the hypervisor. Thanks for the help, identifying mdns was key.
ok, I'll check that mdns aspect out. Like I said, it all works fine, it's just the dumb status color that is annoying me :)
Ahh, I just realized what might be the issue. This sensor is on my IoT VLAN which is on another port on my router. The HassOS is on my primary subnet, different VLAN and router port. The old VM had a port on the IoT VLAN. I'm going to add that back, I'll bet that'll fix it.