Hi
can someone help me to avoid such errors in the logs continuously?
It’s complaining about the rest sensor that pulls data from my inverter. When the sun doesn’t shine, the rest sensor can’t pull ofcourse because the inverter goes offline.
I already added the availability line, to check whether the inverter is online, but the errors stays unfortunately.
logs:
2024-10-20 19:00:30.941 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.2.35/ failed with All connection attempts failed
2024-10-20 19:00:30.941 WARNING (MainThread) [homeassistant.components.rest.util] Empty reply found when expecting JSON data
sensor:
sensor:
- platform: rest
scan_interval: 60
resource: !secret solax_local_ip
payload: !secret solax_local_realtime_payload
method: POST
headers:
X-Forwarded-For: 5.8.8.8
name: "solax_rest_local"
unique_id: solax_rest_local
json_attributes:
- SN
- ver
value_template: >-
{% if value_json['SN'] and value_json is defined %}
Active
{% else %}
Unavailable
{% endif %}
availability: >-
{{ is_state('binary_sensor.192_168_2_35','on') }}