Does the AV device i.e. my AVR amp have to be added into Vera as a device for the HTTP Request Handler to work? Seems not.
I am assuming it does, but I’ve not currently got it added in to Vera as I didn’t really want or need to control it from the UI7 web GUI etc.
I can’t see this user manual, however these commands are working to query the Harmony Hub.
Device ID:184 is the main Harmony device in Vera etc.
List Activities:
http://192.168.1.100/port_3480/data_request?id=lr_Harmony184&cmd=list_activities
List Devices:
http://192.168.1.100/port_3480/data_request?id=lr_Harmony184&cmd=list_devices
List Commands of a Device:
http://192.168.1.100:3480/data_request?id=lr_Harmony184&cmd=list_device_commands&cmdp1=41309507
ID:41309507 Being my Denon AVR amp.
The volume commands for it are listed as:
Function : Volume
Commands : [
Action : Mute
Name : Mute
Label : Mute
,
Action : VolumeDown
Name : VolumeDown
Label : Volume Down
,
Action : VolumeUp
Name : VolumeUp
Label : Volume Up
So now I just need to work out what the Http URL is to control those volume commands ?
Something along the lines of:
luup.call_action("urn:rboer-com:serviceId:HarmonyDevice1", "SendDeviceCommand",{Command="VolumeUp",Duration="0"},184)
But how would I send the device command as a HTTP URL / request ?
Thanks
EDIT:
From the user manual
To issue a device command for device holding button for five seconds;
http://192.168.1.100/port_3480/data_request?id=lr_Harmony184&cmd=issue_device_command&cmdP1=41309507&cmdP2=VolumeUp&cmdP3=5
EDIT 2: Nice the above http command works to increase the volume even if you have not added that device in to the Vera web GUI !