Hello
After updating to the latest HA, I found my restful sensors broken.
Check config shows -
Package sensors setup failed. Component rest cannot be merged. Expected a dict.
(sensors is my sensors.yaml file which is referenced in configuration.yaml)
I use the following scrape-
rest:
- authentication: basic
username: "xx"
password: "xx"
scan_interval: 10
timeout: 90
resource: http://192.168.39.14/app/config/0/0
sensor:
- name: "hvac_0"
value_template: 'OK'
json_attributes:
- "Result"
template:
- sensor:
# - name: "ctr_type"
# state: "{{ state_attr('sensor.hvac_0','Result')['Point'][0]['Value'] }}"
- name: "runstate"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][1]['Value'] }}"
# - name: "CHIL_S_S"
# state: "{{ state_attr('sensor.hvac_0','Result')['Point'][2]['Value'] }}"
# - name: "CHIL_OCC"
# state: "{{ state_attr('sensor.hvac_0','Result')['Point'][3]['Value'] }}"
# - name: "min_left"
# state: "{{ state_attr('sensor.hvac_0','Result')['Point'][4]['Value'] }}"
- name: "ALM"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][7]['Value'] }}"
- name: "CAP_T"
unit_of_measurement: "%"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][13]['Value']|float|round(0) }}"
- name: "SP"
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][17]['Value']|float|round(1) }}"
- name: "CTRL_PNT"
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][18]['Value']|float|round(1) }}"
- name: "CTRL_WT"
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][19]['Value']|float|round(1) }}"
- name: "OAT"
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.hvac_0','Result')['Point'][20]['Value']|float|round(1) }}"
What has changed in the latest HA which has broken the above (Was working since last few months)