Hi,
I’m getting my first experience with a REST-sensor, using a XML-API. I’ve read a lot about XML to JSON, the JSON-Path and some more but all my attempts went wrong. So I’d like to start at the root.
Is there any way to get the raw data from the sensor or any error log?
Like
The current value of the sensor is “unavailable”.
Before spending more time in the json-path, I’d like to check, if the XML file is correct and converted to JSON (curl via terminal works, I got the raw XML content).
Can I put the raw content to the value of the sensor?
Hi,
unfortunatly the xml/json-result will be quite more than 255 chars
What you mean by “not error logs”? I know the logs at Settings → System → Logs, only. Are there any more log files?
Should I learn something again today…?
Thanks!
There are two sections on that page. First section shows warnings and errors but debug logs are printed in second section down below with all other information. It is actually full home assistant log and you can download it to your desktop and search through it
Hi, thanks once more for your support!
I didn’t know (or saw) that there is a detailled log for downloading.
First, there was a message about 255 characters… OK. But then I was able to validate the JSON Path and at the end I saw the problem: it was just a character, which was unexpectedly encoded.
Now everything is fine, my JSON-Path works and I’m happy.