Determining Status of Hub and Automating Action

Hey guys -

randomly devices such as my Vera3 will stop responding to API requests - they will be up in all other regards, but the API stops taking requests until I reboot it. I wanted to know if they was a service in HASS that could be called to get the status of a connected component/hub - and that way I could then create an automation to reboot them. If not, I guess command-line sensor could work. Thanks

I just realized that using the command line sensor in the way I imagined won’t work because when there are logs that would trip the sensor, there is no good was to reset it to 0. The only thing i could do would be to delete the log file, but I dont want to do that… so if there is an event or service that someone know about - it would be awsome.

Nmap or ping?

No, the vera is up - only the API is not responding properly. I think what I will do is write a script to just run a curl against the http endpoint and then send the response either to a file or a sensor - then once the count hits a certain count, I’ll have HASS run a script to reboot the vera over SSH and reset the counter.