>>> Join Us in the Fight Against Air Pollution

AirGradient Forum

"Failed to connect" when adding to Home Assistant

Hi,

I’ve upgraded my AirGradient devices to 3.1.4, but I keep getting this “Failed to connect” error when I try to add them in Home Assistant:

The AirGradients don’t get auto-discovered. The IP addresses I’m trying are definitely correct.

The only possible reason I can think of is that my HA server is on the 192.168.70 network, while my Wifi is 192.168.1. However, I can access the HA web interface from the Wifi on my laptop, so it seems that devices on both networks can see each other.

I’m quite new to HA, but I have successfully connected my Ikea Vindstyrka via Zigbee. Do I need to add anything (like MQTT) to HA to make it work?

Where can I see some debug logs? Any help or suggestions would be appreciated.

Thanks

@graemian I opened an issue here and will let our home assistant developer know.

You can follow the progress there.

Thanks, but I figured out that the issue was my network. My Home Assistant couldn’t connect back to the wifi network.

I changed my wifi router to bridge mode and it’s all working fine now.

I figured this out shortly after writing this post, but I couldn’t see how to delete or update it while it was still in the approval queue.

Great. Thanks for letting us know.

I am having the same problem but am not sure how to switch to bridge mode. I have modem → OpenWRT router → multiple VLANs (so lots of possible places to bridge) → devices. I already have a bridge between the IoT VLAN and the WAN. At the edges of my knowledge, so I’m not sure what to ask. I’ve added other devices successfully and am on firmware 3.1.9. Thanks for your help with this!

Is your AirGradient and HA on the same vlan? You mentioned the WAN, but for what you are doing, the VLAN that the AirGradient is on needs to be able to talk both directions with your HA vlan

Yes, that ended up being the problem. As with @graemian, I discovered the issue after I posted (by accident when I was fixing something else) but couldn’t update until my response was posted. Thanks for the follow up! I’m at the edges of my knowledge – mostly I know just enough to get myself deep into a hole and then have to rely on google to get myself out!