Hue labs, dzVents and curl
Posted: Monday 01 February 2021 16:02
I did the things described here in the forum to get a curl thing to enable and disable a hue labs scene. I fail miserably to convert the curl command to a dzVents command. I have this:
The curl command
The dzVents part I made:
I changed brackets and apostrophes but it just doesn’t work. What did I do wrong?
Thx
The curl command
Code: Select all
curl --header "Content-Type: application/json" --request PUT --data '{"status":1}' http://192.168.8.177/api/<myAPI>/sensors/97/state
Code: Select all
domoticz.openURL({
url = 'http://192.168.8.177/api/<myAPI>/sensors/97/state',
method = 'PUT',
headers = { ['Content-Type'] = 'application/json' },
postData = { ['status'] = '1' }
})Thx