From 9e3fb59d9cb2f1087959cf99ba0a45046fc8a9f0 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sat, 22 Feb 2020 11:07:02 -0500 Subject: [PATCH] Add information about the xmltodict tool (#12156) * Add xml2dict tool information * hyperlink * Update source/_posts/2020-02-26-release-106.markdown Co-Authored-By: Franck Nijhof Co-authored-by: Franck Nijhof --- source/_posts/2020-02-26-release-106.markdown | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/_posts/2020-02-26-release-106.markdown b/source/_posts/2020-02-26-release-106.markdown index 89f37aa4f61a..b73ab713a1ab 100644 --- a/source/_posts/2020-02-26-release-106.markdown +++ b/source/_posts/2020-02-26-release-106.markdown @@ -254,7 +254,13 @@ Experiencing issues introduced by this release? Please report them in our [issue - **UniFi** - Changing tracking settings will no longer disable entities but will remove them completely from the state machine and entity registry. The SSID filter will now mark all wireless clients as `not_home` if they are connected to SSIDs that are not a part of the filter. - ([@Kane610] - [#31762]) ([unifi docs]) -- **Rest** - Many devices continue to use XML for RESTful APIs. This change implements converting XML output to JSON via `xmltojson` so it can work with the existing rest sensor component. As the attributes that usually need to be scraped are deeper in the document, support for passing in a template to find the JSON attributes has been added. JSON APIs that do not have their attributes at the top level can also benefit from this change. - ([@bdraco] - [#31809]) ([rest docs]) +- **Rest** - Many devices continue to use XML for RESTful APIs. This change implements converting XML output to JSON via `xmltojson` so it can work with the existing rest sensor component. + +`xmltojson` tags may be confusing; if you are not familiar with the conversion, please use the [xmltodict](https://xmltodict-debugger.glitch.me/) tool created by [@balloob] to identify the tags to be used to parse the resulting JSON. + +As the attributes that usually need to be scraped are deeper in the document, support for passing in a template to find the JSON attributes has been added. JSON APIs that do not have their attributes at the top level can also benefit from this change. + +- ([@bdraco] - [#31809]) ([rest docs]) Example YAML configuration: