Build Hash: 63d0d07e
Platform: RPi 2
Plugin/Hardware: Harmony Hub with HarmonyHubControl script
Setup:
/home/pi/domoticz/
/home/pi/HarmonyHubControl/
Harmony Hub at ip: 192.168.0.114
The issue:
I recently picked up on Domoticz again. In the past I had set up hidden switches that call HarmonyHubControl (https://www.domoticz.com/wiki/Harmony_Hub_Control) via os.execute to switch events etc, this system worked.
Now I have updated Domoticz and it doens't work anymore. The switches don't work anymore and I have tried to set up a new script in dzVents that gives me exit 1 or exit 127 codes.
If I open Putty and type:
Code: Select all
./home/pi/HarmonyHubControl/HarmonyHubControl [email protected] PW 192.168.0.114 issue_device_command 32138574 InputHdmi3
The dzVents (test)script I made is as follows:
Code: Select all
return {
active = true, -- set to false to disable this script
on = {
devices = {
182, 183,
},
timer = {'every 5 minutes'},
},
execute = function(domoticz, device)
if device.idx == 182 then
if domoticz.devices(device.idx).state == 'Toggle' then
print ('------------ HK Toggle --------')
elseif domoticz.devices(device.idx).state == 'ARC' then
print ('------------ HK Toggle --------')
end
elseif device.idx == 183 then
if domoticz.devices(device.idx).state == 'On' then
print ('------------ TV On --------')
elseif domoticz.devices(device.idx).state == 'TV' then
print ('------------ TV TV --------')
elseif domoticz.devices(device.idx).state == 'CC' then
print ('------------ TV CC --------')
print( os.execute('./home/pi/HarmonyHubControl/HarmonyHubControl [email protected] PW 192.168.0.114 issue_device_command 32138574 InputHdmi3'))
end
end
end
}
./home/pi/HarmonyHubControl/HarmonyHubControl etc
sudo ./home/pi/HarmonyHubControl/HarmonyHubControl etc
./HarmonyHubControl/HarmonyHubControl etc
sudo ./HarmonyHubControl/HarmonyHubControl etc
Furthermore I have tried with a selector switch and assign the script to a selector level via
Code: Select all
script:///home/pi/HarmonyHubControl/HarmonyHubControl [email protected] PW 192.168.0.114 issue_device_command 32138574 InputHdmi3
I copied the HarmonyHubControl to the scripts folder, no succes, I double checked ownership: Root, and made sure HarmonyHubControl is +x
No succes so far, shilst in the past the system would control the Hub. I'd like that back, any suggestions?