How to read a item value using http

Hi guys,

I would like to read to value of an switch item via http.
The return of the http call should only be the item value, no complicated XML structure or so.
I know that I can write via the “http://openhab.IP:8080/CMD?MySwitch=ON”, but now I need the oposite and the return should only be “ON” if possible.
Does anyone has a suggestion for me?

Thanks a lot.

To directly access an item state, you can access


which returns the state as a plain string.

Thanks … that seems to be the only option I did not try out :slight_smile: