Author Topic: Logitech harmony ultimate  (Read 139770 times)

Offline ascari

  • Full Member
  • ***
  • Posts: 104
  • Karma: +1/-1
Re: Logitech harmony ultimate
« Reply #570 on: January 12, 2017, 03:33:56 pm »
Hello,

I have install the plugin and it's work, but I have a small question :

I have a Harmony Ultimate Remote, I want to run a scene when I click on the Yellow button for example, it's possible ?

Thank
« Last Edit: January 12, 2017, 03:37:36 pm by ascari »

Offline reneboer

  • Hero Member
  • *****
  • Posts: 1011
  • Karma: +52/-30
Re: Logitech harmony ultimate
« Reply #571 on: January 12, 2017, 05:42:58 pm »
Hi ascari,

Saidly no. the hub does not report any IR commands it is sending out. Only option is to make some IR receiver and have that trigger some scene. There are several options like Kira or home build. You can serach on those.

Cheers Rene
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline francoislegrange

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Logitech harmony ultimate
« Reply #572 on: February 14, 2017, 01:42:44 am »
I was playing around with the binary and thought it would be nice to be able to run a scene that checks the current activity of my Harmony Smart Control, then depending on the result it changes to a different activity.

My use case is to check if nobody is using the tv/speakers and start the airplay activity for the receiver only. I would run this activity when I flip my "party mode" switch on, or when I arrive home to have instant airplay access from my iPhone. It saves me from having to open the HomeWave or Harmony apps, and go straight to whichever media app I want to use.

Here is the code:

Code: [Select]
local handle = io.popen("HarmonyHubControl [email]  [password] [ip address] get_current_activity_id")
local harmonyOutput = handle:read("*all")
handle:close()

local currentActivity = string.match(harmonyOutput, 'Current Activity ID is : (-?[0-9]*)')

luup.log("(HarmonyHubControl) Current activity: "..currentActivity)

-- Check if current activity is -1 (off)
if currentActivity == "-1" then
luup.log("(HarmonyHubControl) Currently off. Turning AirPlay mode on")
-- Start desired activity
os.execute("HarmonyHubControl [email]  [password] [ip address] start_activity [activity ID]")
end

return true

If you need help with creating something similar, let me know and I'll try to help you out.

Hi there huveu

Im trying to do something similar but with a twist

I have a scene called watch foxtel. I want to send commands like changing the channel to 502 using voxcommando.I want the scene to check if the activity (watch foxtel) is already active and ONLY send the commands 5 and 0 and 2.If the activity is not active,change it to the activity and then change commands

Can you help me?