luisiam / homebridge-cmdswitch2

CMD Plugin for HomeBridge (API 2.0): https://github.com/nfarina/homebridge
Apache License 2.0
176 stars 29 forks source link

application/json #51

Open matzZz opened 4 years ago

matzZz commented 4 years ago

how can I set the curl command?

curl -H "Content-Type: application/json" -X POST -d '{"power": true}' http://192.168.178.170/api

aesign commented 4 years ago

Can you elaborate more?