Skip to content

Commit

Permalink
Add information about the xmltodict tool (home-assistant#12156)
Browse files Browse the repository at this point in the history
* Add xml2dict tool information

* hyperlink

* Update source/_posts/2020-02-26-release-106.markdown

Co-Authored-By: Franck Nijhof <[email protected]>

Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
arsaboo and frenck authored Feb 22, 2020
1 parent a3d5c06 commit 9e3fb59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/_posts/2020-02-26-release-106.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 9e3fb59

Please sign in to comment.