toto / homebridge-airrohr

HomeBridge module for the DIY luftdaten.info particulates sensor. See http://luftdaten.info how to build your own
http://luftdaten.info
MIT License
52 stars 12 forks source link

No Response status when sensor can't be reached #31

Open nielsth opened 5 years ago

nielsth commented 5 years ago

Unfortunately my sensor drops off of the Wi-Fi every now and then. The logs show the following when it can't be reached:

Oct 28 19:44:02 raspberry-pi-homebridge homebridge[29182]: [10/28/2019, 7:44:02 PM] [AirRohr] Could not get sensor data: Error: connect EHOSTUNREACH 10.0.0.26:80

At the moment, the sensor in HomeKit doesn't reflect this. Instead just shows values of 0 or the previous values for temperature, humidity and air quality, so there's no way of knowing it's dropped off of the Wi-Fi.

Could this be updated so that a sensor running into errors is given a No Response status in HomeKit?