Page 2 of 2

Re: Recent en working solution for Harmony Hub Devices

Posted: Sunday 01 March 2020 12:13
by Alfagek
jpvaneijk wrote: Thursday 28 June 2018 18:02
Some codes working for me:
AV Receiver

Code: Select all

script:///home/pi/HarmonyHubControl/HarmonyHubControl 192.168.2.3 issue_device_command 55207356 Mute
script:///home/pi/HarmonyHubControl/HarmonyHubControl 192.168.2.3 issue_device_command 55207356 VolumeUp
script:///home/pi/HarmonyHubControl/HarmonyHubControl 192.168.2.3 issue_device_command 55207356 VolumeDown
script:///home/pi/HarmonyHubControl/HarmonyHubControl 192.168.2.3 issue_device_command 55207356 ModeStereo
script:///home/pi/HarmonyHubControl/HarmonyHubControl 192.168.2.3 issue_device_command 55207356 ModeDolby/DTSSurround
How Do i get this on a dummy switch.

If i excute them in putty they function okay.

Code: Select all

./HarmonyHubControl 192.168.2.3 issue_device_command 55207356 Mute
System will mute.

But if i copy this under a dummy switch it don't function.

I also put the command in a script file with: exec './HarmonyHubControl 192.168.2.3 issue_device_command 55207356 Mute'.

I know Harmony is in Native now. But i want to mute or change volume on the domotica tablet.

Re: [SOLVED] Recent en working solution for Harmony Hub Devices

Posted: Saturday 12 March 2022 13:30
by manipel
Sorry to bump a "Solved" thread, but I can't get the script to run from a switch witin Domoticz.
Via the command line everything works great, but triggering the same command via script:// or via the domonticz_main exec 'complete command line goes here' does not do the trick. The Domoticz log shows that at least the domoticz_main script is triggered and no error to be seen.

Code: Select all

2022-03-12 13:22:10.812 Status: User: Admin initiated a switch command (185/Volume Mute/Off)
2022-03-12 13:22:11.833 Status: Executing script: /config/scripts/domoticz_main
Anyone solved this one?