mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Add mention of XML support to binary_sensor.rest integration (#33073)
* Add mention of XML support to binary_sensor.rest integration * Tiny tweak --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
627b3a3779
commit
27db412497
@ -19,6 +19,9 @@ _Tip:_ If you want to create multiple `sensors` using the same endpoint, use the
|
||||
The JSON messages can contain different values like `1`, `"1"`,
|
||||
`TRUE`, `true`, `on`, or `open`. If the value is nested then use a
|
||||
[template](/docs/configuration/templating/#processing-incoming-data).
|
||||
If the endpoint returns XML with the `text/xml`, `application/xml`, or
|
||||
`application/xhtml+xml` content type, it will automatically be converted
|
||||
to JSON according to this [specification](https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html).
|
||||
|
||||
```json
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user