Hi everybody. I installed the 2024.5.3 and now I get Rest error fetching data.
When I add the url on the browser the source is working correct. Somehow something is wrong.
Anybody have this issue?
Here are the sensors I get the error.
rest:
- resource: “http://192.168.1.200/data.jsn”
scan_interval: 10
sensor:
-
name: “ELWAXX_Power”
unique_id: “elwaxx_power”
value_template: “{{ value_json.power }}”
unit_of_measurement: “W”
device_class: power
state_class: measurement
-
name: “ELWAXX_TEMP”
unique_id: “elwaxx_temp”
value_template: “{{ value_json.temp1 / 10 }}”
unit_of_measurement: “°C”
device_class: temperature
state_class: measurement
-
name: “ELWAXX_Target”
unique_id: “elwaxx_target”
value_template: “{{ value_json.ww1target / 10 }}”
unit_of_measurement: “°C”
device_class: temperature
state_class: measurement
When I use the 2024.4.3 everything is working correct.
The issue start after the 2024.5.1
Any suggestion or help? Thanks in advance.
P.S. the http://192.168.1.200/data.jsn is working/provide data correct
Thanks francisp. Here is the code.
rest:
- resource: "http://192.168.1.200/data.jsn"
scan_interval: 10
sensor:
- name: "ELWAXX_Power"
unique_id: "elwaxx_power"
value_template: "{{ value_json.power }}"
unit_of_measurement: "W"
device_class: power
state_class: measurement
- name: "ELWAXX_TEMP"
unique_id: "elwaxx_temp"
value_template: "{{ value_json.temp1 / 10 }}"
unit_of_measurement: "°C"
device_class: temperature
state_class: measurement
- name: "ELWAXX_Target"
unique_id: "elwaxx_target"
value_template: "{{ value_json.ww1target / 10 }}"
unit_of_measurement: "°C"
device_class: temperature
state_class: measurement
Here are the log.
Logger: homeassistant.components.rest.data
Source: components/rest/data.py:127
integration: RESTful (documentation, issues)
First occurred: 06:58:09 (30 occurrences)
Last logged: 07:45:43
Error fetching data: http://192.168.1.200/data.jsn failed with All connection attempts failed
Error fetching data: http://192.168.1.200/data.jsn failed with Server disconnected without sending a response.
Logger: homeassistant.components.rest.data
Source: components/rest/data.py:127
integration: RESTful (documentation, issues)
First occurred: 07:47:56 (1 occurrences)
Last logged: 07:47:56
Error fetching data: http://192.168.1.200/data.jsn failed with All connection attempts failed
Is that resource really correct? Typically those should end with .json
but in your case it’s .jsn
.
Does it work from your browser to get the file?