Add to RESTful Sensor availability template like in Template Sensor
availability [template] (optional, default: true)
Defines a template to get the
available
state of the component. If the template returnstrue
, the device isavailable
. If the template returns any other value, the device will beunavailable
. If not configured, the component will always beavailable
.
Reason: my rest sensors receive information from other servers behind the vpn connection. But if something wrong with internet or vpn I have many errors in HA log. With this feature it would be possible use ping sensor for checking connection and disable updates if it isn’t reachable.