maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
391 stars 115 forks source link

http trigger not working #64

Open merlin2105 opened 7 years ago

merlin2105 commented 7 years ago

hi, i have install the Harmony-API on my Synology, it works fine! when i trigger a button over Terminal with: curl --request POST http://192.168.1.100:8282/hubs/harmony/devices/rollos/commands/1-auf it works fine!

i need to trigger it from http for a home bridge Plugin!

When I enter http://192.168.1.100:8282/hubs/harmony/devices/rollos/commands/1-auf in the browser i get an error ! Cannot GET /hubs/harmony/devices/rollos/commands/1-auf

what am I doing wrong?

i can only send the command by http for the plugin :-(

Many Thanks Jürgen

maddox commented 7 years ago

You can't use the url in the browser, the HTTP request required is a POST and browsers use GET when loading a URL.