I am trying to parse a file with XML formatted data , I assume that home assistant doesn’t convert data within files automatically to json like rest sensor .
I hope anyone could give me a lead here
Can you store the file in /config/www? Then you could use a rest sensor grabbing https://yourURL/local/filename.xml and it does convert xml to json.
I do this in my EPG automations:
EPG (Electronic Program Guide) … who wants it in HA? - Share your Projects! / Dashboards & Frontend - Home Assistant Community (home-assistant.io)
1 Like
Thank you Sir,
Tried your way and was able to retrieve the values.
Hope one day HA includes the same XML-JSON converter within file sensor.
1 Like