Is there any easy way of checking for an internet connection and handling things differently based on the result? I use hubduino and an esp8266 to read when someone buzzes my apartment door (and separately to buzz them in if I say to), it works great. It opens a virtual contact sensor when the buzzer wire goes live, which tells alexa routines to trigger an announcement in every room that someone is at the door. Because the notification through alexa is cloud triggered, nothing would happen if my internet went out. I have zigbee chimes I could use locally, but they're much less pleasant to hear than the voice notification -- Ideally if the internet was out, it would trigger the chimes, but if it wasn't out, it would trigger alexa. Thoughts on how to do this?