i have an openhab setup which works very fine with KNX and myopenhab.org. I would like to integrate some scenario with my smartphone events with macrodroid, in order to do this i tested the management of my items with curl :
retrieve state from an item is working fine
pi@raspberrypi:~ $ curl --user mylogin:mypassword https://myopenhab.org/rest/items/mainroom_light/state
set state of an item is modifying the state of my item in the app, but does not turn on the light !
pi@raspberrypi:~ $ curl -X PUT --user mylogin:mypassword --header “Content-Type: text/plain” -d “OFF” https://myopenhab.org/rest/items/mainroom_light/state
Additionnal question, is that possible to pass login/password directly in the URL ?
Thanks for your help !