Hello
I tried to use the REST commande to recover datas from an API (Kostal).
I put the following commands in the YAML
rest:
scan_interval: 10
verify_ssl: false
resource: "http://192.168.178/api/dxs.json?dxsEntries=16780544"
sensor:
- name: "kostal_piko_type"
value_template: "{{ value_json.dxsEntries]['value'] }}"
json_attributes:
- dxsEntries
but the log push the following message : Error fetching data: http://192.168.178/api/dxs.json?dxsEntries=16780544 failed with
If I put directly the command line through web : http://192.168.1.178/api/dxs.json?dxsEntries=16780544 I obtained the JSON:
{“dxsEntries”:[{“dxsId”:16780544,“value”:“PIKO 5.5”}],“session”:{“sessionId”:0,“roleId”:0},“status”:{“code”:0}}
Could please assist me ?
Thank you
Manuel