Loxone API - how get, parse answer

Hello,
Hello,
I'm trying to get data from Loxone miniserver API. Using the webviewer I can see the data coming in but I can't get the "value 0".
We also tried using the web component, but there I get an unauthorized response

Thanks

blocks(4)
blocks(3)

Do you have a link to the api documentation ?

Show your full url

Hello,
documentation is on Documentation - Web Services | Loxone
I am sending http://admin:loxone@192.168.0.106/dev/sps/io/Vstup1/state
Thanks

hmmmm...

Have a look here

File Download from a Restricted Area

you may need to structure your request a different way for the web component

Thanks, I tried it. No success so far. I am attaching monitoring from loxone. One image is from PC Firefox and the other from phone. The answers seem the same. The values are displayed on the PC, but the label2 does not change on the phone - that is, no data is received.



For SaveResponse true, wouldn't you want


instead of .GotText?

I don't think you want GotFile, your want GotText and do not set saveresponse

Set your label to responseContent in GotText

1 Like

Thanks. I received answer. I try decode XML.
How can I get value, code, control attributes from <?xml version="1.0" encoding="utf-8"?>

Thanks

Can you post the responseContent here, as "text", not an image, then someone can help decode to get the outputs.

<?xml version="1.0" encoding="utf-8"?>
<LL control="dev/sps/io/Vstup1/state" value="0" Code="200"/>

Quick and d*rty....

or

and then you can

Thanks very much.

Otherwise, you can give an order using the same procedure.
And have you tried this?
http://admin:loxone@192.168.0.106/data/LoxAPP3.json