Hi All,
When i’m not connected to Wireguard then there is no json to read and get this error message:
2021-07-31 08:26:52 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://xxx.xxx.xxx.24:78 failed with [Errno 111] Connect call failed ('xxx.xxx.xxx.24', 78)
2021-07-31 08:27:52 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://xxx.xxx.xxx.24:78 failed with [Errno 111] Connect call failed ('xxx.xxx.xxx.24', 78)
2021-07-31 08:28:52 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://xxx.xxx.xxx.24:78 failed with [Errno 111] Connect call failed ('xxx.xxx.xxx.24', 78)
2021-07-31 08:29:52 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://xxx.xxx.xxx.24:78 failed with [Errno 111] Connect call failed ('xxx.xxx.xxx.24', 78)
This is the sensor part:
- platform: rest
name: "Wireguard Sensors"
resource: http://xxx.xxx.xxx.24:78
json_attributes:
- client1
value_template: "OK"
Is there any way to avoid this error message?