Home Assistant 2023.7.1
The rest component gives the following error when I modify configuration.yml
The error logs refer to a directory structure that does not exist ie : /usr/src/homeassistant/homeassistant/components/rest/
=================================================================================
Logger: homeassistant.setup
Source: components/rest/init.py:198
First occurred: 15:26:43 (1 occurrences)
Last logged: 15:26:43
Error during setup of component rest
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 288, in _async_setup_component
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/rest/init.py”, line 89, in async_setup
return await _async_process_config(hass, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/rest/init.py”, line 109, in _async_process_config
rest = create_rest_data_from_config(hass, conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/rest/init.py”, line 198, in create_rest_data_from_config
raise HomeAssistantError(“Resource not set for RestData”)
homeassistant.exceptions.HomeAssistantError: Resource not set for RestData
I added the following text ( part of a full 4 sensor array)
rest:
- resource: http://192.168.002.251:3333/api/v1/live-data
- sensor:
- name: “Apricus Hot Water”
value_template: ‘{value_json[0].rawValue}}’
unit_of_measurement: ‘°C’
json_attributes_path: “$[0]”
json_attributes:
- “name”
- “rawValue”
=================================================================================