From 27db41249748d87f7498eca00fe1ef610237099a Mon Sep 17 00:00:00 2001 From: Oleg Kurapov Date: Tue, 4 Jun 2024 10:45:40 +0200 Subject: [PATCH] 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> --- source/_integrations/binary_sensor.rest.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_integrations/binary_sensor.rest.markdown b/source/_integrations/binary_sensor.rest.markdown index dbf2c7e9cc2..1d6eef7f6a9 100644 --- a/source/_integrations/binary_sensor.rest.markdown +++ b/source/_integrations/binary_sensor.rest.markdown @@ -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 {