Plugin: Harmony Hub Control

Hi @cw-kid,

Just released version 3.11 and this has support for Button Sequences. Very nice functionality I was not aware off.

At this moment you can only initiate the Button Sequences with a luup.call_action. I will look at other options later. It will probably mean you can also create a child device for an activity and configure buttons that can include a Button Sequence. Needs some thinking.

Cheers Rene

I’m sure that will be good news for many users that use sequences in Harmony!

I only had the one that we already discussed but sequences are a powerful tool in my harmony to create Macro style functionality.

I think your Harmony plug in is one of the very best for Vera. I know I’d be lost without it.

@reneboer

Did you look at my previous posts regarding the listing of commands of a device via the API URLs?

It seems to have stopped working for me.

Cheers.

Hi @cw-kid ,

I will look in to the list_device_commands failure, I can reproduce it.

Update: fixed in version 3.12, availble in the ALTUI app store.

Cheers Rene

Updated but the version variable remained at 3.11. Maybe you forgot to update it?

Nice work !

May I ask what this is ?

“Fix for Hue RGB lights control”

I know you can link your Harmony Hub / Remote to a Philips Hue Bridge.

I have used the Java HA-Bridge software running on my file server to emulate a Hue Bridge.

In the HA-Bridge I added some Vera devices for some of my Z-Wave lights and two of my Z-Wave appliance plugs.

I then in the My Harmony software linked my remote to this “Philips Hue Bridge” e.g. to the HA-Bridge and assigned the Home Control buttons on the Elite remote.

So I could then use those buttons on the remote to control those Vera / Z-wave lights and appliance plugs etc.

But what does your Harmony plug-in have to do with the “Hue RGB lights control” ?

Thank you.

P.S Sorry I posted on your Version log thread by mistake, I have deleted that and posted the same question here instead.

Hi @cw-kid,

Since a few versions you can create virtual dimmer devices for Hue lights that are configured on your Harmony Hub. On the Devices tab you see a second multi selection box with those light devices. For the ones you select a virtual dimmer device will be created. It should look a bit like shown here Device Setup · reneboer/vera-Harmony-Hub Wiki · GitHub

Let me know if your lights are not showing.

Cheers Rene

Bummer forgot again indeed. Will fix that over the next few weeks with some other enhancements.

Cheers Rene

Rene

Thanks for the explanation. I do have some Hue lights but I am using the Vera plug in for Philips Hue etc.

I’ll check out your Harmony plug in though and have a look at that side of it as well.

my app/plugin just updated to 3.9, stating it was on 3.6
since then only 1 of my 2 hubs are recognized
both hubs are at v .250
it keeps saying “Hub connection failed. Check IP Address.”
the IP address is correct
the hub is online
i also gave the hub a new IP and tried again
it still will not connect, initially saying it could not retrieve info from the hub
i also did a download and re-sync of the hub
i even tried enabling xmpp, then disabling when it did not help
i also created a new instance of the device and it has the same issue connecting to this hub

i also have a hass.io container I sometimes run for testing
it can connect to both hubs without issue
the container is normally off
so they are not fighting for control

why would one hub work and not the other
and only since the app update

*** Update

the hub in question mysteriously re-connected within the vera harmony app today
i got a notification that it reconnected
its been fine since

Hi @charettepa, good to hear the magic happened.

Hi Rene

Happy New Year to you.

I am trying to run a Sequence however I can’t get it working.

I have tried this command in a web brower

http://192.168.1.1/port_3480/data_request?id=lr_Harmony184&cmd=start_activity&cmdp1=“1444624”

1444624 is the Sequence ID I found in the Variables tab in Vera on the main Harmony device and 184 is its device number.

The browser returns:

{ “status”: “OK”, “msg”: “OK”, “data”: “1444624”, “code”: 200 }

But my Sequence is not run. It should start Spotify on my Fire TV stick.

If I run this “Spotify” sequence from the actual Harmony Elite remote it works fine and launches the Spotify app.

I then tried this command in the Vera - Apps - Develop Apps - Test Luup code (Lua) area

luup.call_action(“urn:rboer-com:serviceId:Harmony1”, “IssueSequenceCommand”,{SequenceID=”1444624”},184)

However it says it failed to test code.

Any idea what I am doing wrong ?

Thanks

EDIT:

I just got the luup.call_action command working in Vera.

Looks like there was something wrong with my quotes formatting.

I can also use the Sequence name rather than its ID number.

However the http command to run a sequence still doesn’t work.

Hi @cw-kid,

Good you got the luup.call_action command working. Looking at the code I forgot to add the sequence command to the http handler. I have some other fix pending, so I’ll add the command to the next release.

Update: V3.16 with the fix is available in the ALTUI App store and pending approval in the Mios App market. The GitHub wiki has been updated as well.

Cheers Rene

2 Likes

Hi @reneboer

Sorry if this has been asked before, I did search but didn’t find exactly what I am looking for.

I want to send a HTTP command to my FireTV stick to bring up a security cam in picture-in-picture, but only send that HTTP command in my Vera scene if the Harmony activity for the FireTV is the current activity ?

My coding isn’t the best, the plug-in help document states you can use this to get the current activity ID.

rc, rs, jb, rarg = luup.call_action("urn:rboer-com:serviceId:Harmony1",
"GetCurrentActivityID",{},184)
if (rc==0) then curActID = rarg.currentActivityID end

The ID of my Harmony hub in my lounge is Vera device ID 184.

I know the activity ID for the FireTV activity its ID number: 42772934

And this is the HTTP command I want to send in my scene, but only when the FireTV activity is the current one.

luup.inet.wget(“http://192.168.0.135:8765/?frontgarden=pip”)

Does anyone know how to code this together ?

Many thanks.

EDIT:

I thought this might work but it does not, no errors either.

local rc = luup.variable_get("urn:rboer-com:serviceId:Harmony1", "CurrentActivityID", 184)
if (rc==42772934)
 then
      luup.inet.wget("http://192.168.0.135:8765/?frontgarden=pip")
 end

This doesn’t work either

local rc = luup.call_action("urn:rboer-com:serviceId:Harmony1","GetCurrentActivityID",184)
if (rc==42772934)
 then
      luup.inet.wget("http://192.168.0.135:8765/?frontgarden=pip")
 end

EDIT 2:

OK this code works and only sends the PIP command to the FireTV stick if the Harmony FireTV is currently active.

if( luup.variable_get("urn:rboer-com:serviceId:Harmony1","CurrentActivityID",184)=="42772934" ) then
   luup.inet.wget("http://192.168.0.135:8765/?frontgarden=pip")
   else
end

Hi @reneboer

I’m on version 3.17 in AltUI on openluup, but it won’t update to the latest release when I click the “Update Now” button at the plugins screen. Is there any other way to update? Can I use a comparable URL as for Vera?

BTW. It says “GitHub.master” at the version column in the plugins screen. Is this normal?

Hi,
The github master is the latest.

Cheers Rene

O ok, but in the variables it still says 3.17. And the activities are not updated realtime (one of the latest features I read).

It seems something is corrupted, the plugin doesn’t react to anything. Can I reinitialize the plugin i some way or downgrade to a previous version or something? I don’t want to uninstall it, if I don’t have to.

You can try to put V4.1 in the version and try an update to see if that makes a difference. Check the startup log file as well to see if any errors occur.

Cheers Rene