I've been playing with HarmonyHub control. I couldn't find the location where it was included in the Domoticz files so I installed it seperately according to the Domoticz wiki. I know domoticz isn't ready yet for commands but this should be possible in the future
Then I issues the command:
Code: Select all
./HarmonyHubControl email password hub ipaddress password list_devices
This resulted in a list of devices:
Code: Select all
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Devices Controllable via Harmony :
20686775 - Device 1
20779809 - Device 2
20686760 - Device 3
20671327 - Device 4
21160666 - Device 5
20674970 - Device 6
20671404 - Device 7
20672634 - Marantz AV Receiver
I wrote down the device Id of my Marantz receiver 20672634
Then I listed the configuration of my Harmony Hub Ultimate
Code: Select all
./HarmonyHubControl email password hub ipaddress password get_config
And got the following (part of it)
Code: Select all
LOGITECH WEB SERVICE LOGIN : BYPASSED
HARMONY COMMUNICATION LOGIN : SUCCESS
HARMONY COMMAND SUBMISSION : SUCCESS
PARSE ACTIVITIES AND DEVICES : SUCCESS
Logitech Harmony Configuration :
"activity":[{"suggestedDisplay":"Default","label":"Raise Screen","id":"13178772","activityTypeDisplayName":"Default","controlGroup":[{"name":"TransportBasic","function":[{"action":"{\"command\":\"Stop\",\"type\":\"IRCommand\",\"deviceId\":\"20674970\"}","name":
"Stop","label":"Stop"}]}],"sequences":[],"activityOrder":4,"isTuningDefault":false,"fixit":{"20686775":{"id":"20686775","isRelativeInput":true,"Power":"Off"},"20779809":{"id":"20779809","isRelativePower":true,"Power":"Off"},"25078187":{"id":"25078187","isRelati
vePower":true,"Power":"Off"},"20686760":{"id":"20686760","Power":"Off"},"20671327":{"id":"20671327","Power":"Off"},"21160666":{"id":"21160666","isRelativePower":true,"Power":"Off"},"20672634":{"id":"20672634","Power":"Off"},"20671404":{"id":"20671404","Power":"
Off"},"20674970":{"id":"20674970","isManualPower":true}},"type":"VirtualGeneric","icon":"userdata: 0x4454c8","baseImageUri":"https:\/\/rcbu-test-ssl-amr.s3.amazonaws.com\/"},{"suggestedDisplay":"Default","label":"Lower screen","id":"13178753","activityTypeDispl
ayName":"Default","controlGroup":[{"name":"TransportBasic","function":[{"action":"{\"command\":\"Stop\",\"type\":\"IRCommand\",\"deviceId\":\"20674970\"}","name":"Stop","label":"Stop"}]}],"sequences":[],"activityOrder":3,"isTuningDefault":false,"fixit":{"206867
75":{"id":"20686775","isRelativeInput":true,"Power":"Off"},"20779809":{"id":"20779809","isRelativePower":true,"Power":"Off"},"25078187":{"id":"25078187","isRelativePower":true,"Power":"Off"},"20686760":{"id":"20686760","Power":"Off"},"20671327":{"id":"20671327"
,"Power":"Off"},"21160666":{"id":"21160666","isRelativePower":true,"Power":"Off"},"20672634":{"id":"20672634","Power":"Off"},"20671404":{"id":"20671404","Power":"Off"},"20674970":{"id":"20674970","isManualPower":true}},"type":"VirtualGeneric","icon":"userdata:
0x4454c8","baseImageUri":"https:\/\/rcbu-test-ssl-amr.s3.amazonaws.com\/"},{"suggestedDisplay":"ListenToSonos","label":"Sonos","id":"12823332","activit
Then I looked up the commands of the Marantz receiver by scanning on the device ID.
Code: Select all
{"name":"Volume","function":[{"action":"{\"command\":\"Mute\",\"type\":\"IRCommand\",\"deviceId\":\"20672634\"}","name":"Mute","label":"Mute"},{"action":"{\"command\":\"VolumeDown\",\"type\":\"IRCommand\",\"deviceId\":\"20672634\"}","name":"VolumeDown","label":"Volume Down"},{"action":"{\"command\":\"VolumeUp\",\"type\":\"IRCommand\",
\"deviceId\":\"20672634\"}","name":"VolumeUp","label":"Volume Up"}]},
and using the commands
"Mute"
"VolumeDown"
"VolumeUp"
you can assemble the following commands:
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "Mute"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeDown"
./HarmonyHubControl email password hub ipaddress password issue_device_command 20672634 "VolumeUp"
And it works perfectly!