i want to read data from my Kostal Power Converter into a sensor using the rest interface.
This is the content in my configuration.yaml:
sensor:
- platform: rest
unique_id: Kostal_ID_1
resource: http://192.168.178.51/api/dxs.json?dxsEntries=251658753
headers:
content-type: application/json
scan_interval: 300
name: Kostal-Leistungsdaten
value_template: “{{ dxsEntries[0].value }}”
This is the response from the power converter:
{“dxsEntries”:[{“dxsId”:251658753,“value”:28758.136719}],“session”:{“sessionId”:0,“roleId”:0},“status”:{“code”:0}}
the content in the Sensor is “unbekannt”, which means “unknown”.
the desired value is 27758.136719
Can somebody tell me whats wrong in my configuration.yaml ?
Thank you in advance