Harmony remote + script

Moderator: leecollings

Post Reply
alphawarrior
Posts: 15
Joined: Friday 09 January 2015 10:02
Target OS: NAS (Synology & others)
Domoticz version:
Location: Eindhoven
Contact:

Harmony remote + script

Post by alphawarrior »

Hi everyone,

I'm really new I just start looking but there is still few thing unclear for me e.g ( lua, blocky, dummy switches...)

I have the harmony remote it is recognise in domoticz. Evrything works I mean the on/off to start an activity. But I would like to go further.
I use http://www.evertygo.com/imperihome as main front-end GUI which is very cool and many feature.

I would like to create a buton to start the activity Music already programmed on my harmony and then start the party mode in my Kodi whci is also added in domoticz and works fine.

I have already read few pages regarding the LUA and blocky but could not find a way to do that. I did find the json command for the party mode but how to combine all that in a switch.

Resume
One dummy button which start the activity Music and run the party mode. Please I'm really new I did not figure out how to link a script LUA to a dummy ( I think I do the name has to be same with something like kodi_device...lua) if somebody could help me just to learn that and to put me on the good way I think I will be able to expand that to other stuf I want to do.

Thank you to all of you.
HP NL54 with Xpenology DSM 5.2-5592 Update 3
HarmonyHub
Rpi
alphawarrior
Posts: 15
Joined: Friday 09 January 2015 10:02
Target OS: NAS (Synology & others)
Domoticz version:
Location: Eindhoven
Contact:

Re: Harmony remote + script

Post by alphawarrior »

I find something interesting here http://domoticz.com/forum/viewtopic.php?f=4&t=4676

But how to combine an action from harmony and a json command ?

Please help
HP NL54 with Xpenology DSM 5.2-5592 Update 3
HarmonyHub
Rpi
florabora
Posts: 7
Joined: Monday 11 May 2015 0:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Harmony remote + script

Post by florabora »

Based on the http://www.domoticz.com/wiki/Harmony_Hub_Control I have already made buttons to start operations and which I have edited using this information http://www.openremote.org/display/forum ... armony+Hub

Long story short; I caught a wireless wall switch on / off to make a remote volume control for my amplifier.
The syntax for the On / Off Action is

ON =
script:///home/pi/HarmonyHubControl/HarmonyHubControl [[email protected]] [wachtwoord] [ip_adres harmony] issue_device_command [device_id] VolumeUp

OFF =
script:///home/pi/HarmonyHubControl/HarmonyHubControl [[email protected]] [wachtwoord] [ip_adres harmony] issue_device_command [device_id] VolumeDown

If you switch Domoticz as "Blinds inverted" you have a usable up / down mechanism because both buttons are presented next to each other.
If you want to control the way other things you HarmonyHub via Domoticz you through ./HarmonyHubControl [[email protected]] [password] [ip_address harmony] GET_CONFIG retrieves the full list of features. Perhaps there is anything else that you want to use.
alphawarrior
Posts: 15
Joined: Friday 09 January 2015 10:02
Target OS: NAS (Synology & others)
Domoticz version:
Location: Eindhoven
Contact:

Re: Harmony remote + script

Post by alphawarrior »

ok I see because when I add the Harmony to my hardware I get the activity as devices but not my AV, beamer, tuner TV separately then I will have to use your method which is good thank you. I will give it a try.

The real question should be ''How to create a dummy switch or blocky (not sure if we could trig a blocky from a button...) with the action below.

Start activity "Music" ( which start my AV and my HTPC )
after 10 sec send the command start "party mode" http://10.20.30.10:9090/jsonrpc?request={ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "partymode": "music" } }, "id": 1 }
HP NL54 with Xpenology DSM 5.2-5592 Update 3
HarmonyHub
Rpi
florabora
Posts: 7
Joined: Monday 11 May 2015 0:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Harmony remote + script

Post by florabora »

maybe it's possible by scripting in python and then triggering that script via a dummy switch which is part of the blockly event?
alphawarrior
Posts: 15
Joined: Friday 09 January 2015 10:02
Target OS: NAS (Synology & others)
Domoticz version:
Location: Eindhoven
Contact:

Re: Harmony remote + script

Post by alphawarrior »

Problem it's I'm not really good at scripting yet. However I have never tried a script.
How should I create it:
- by creating Dummy switch with PartyMode and Execute script which will contain:

./HarmonyHubControl [email] [password] [harmony_ip] start_activity [ID from Music]
then
commandArray['OpenURL']="http://10.20.30.10:9090/jsonrpc?request={ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "partymode": "music" } }, "id": 1 }"


what is the proper syntax for using this script? Does this could be lua script ? Or a .sh script ? Please I really don't know if somebody could show me how to do that.
I did look this post http://www.domoticz.com/forum/viewtopic.php?f=17&t=2014
HP NL54 with Xpenology DSM 5.2-5592 Update 3
HarmonyHub
Rpi
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests