Vera - Smarter Home Control Forum

General => AV Control => Topic started by: mzpost on May 20, 2013, 10:07:22 am

Title: Logitech harmony ultimate
Post by: mzpost on May 20, 2013, 10:07:22 am
I decided to try one of these as it looked like it has some interesting new features compared to my trusty harmony 1100. I've not had Chance to have a full play yet but the wifi hub on it has me wondering if this might mean vera can control stuff via IR ?

The wifi hub at its centre lets any IOS or android device send commands via IR and also let's its play direct with Zigbee philips HUE lights.  I'm guessing that potentially therefore it would be possible to send commands out via vera in so fashion ?

Anyone seen it or got any experience if that might be possible ? Having a wifi hub to control IR devices ain't new of course but this works rather nicely with the option of using a regular remote and or your phone , tablet. If vera could pile out a few commands along with a "watch movie" scene that would be more than impressive......yes, I do need to get out more.
Title: Re: Logitech harmony ultimate
Post by: chixxi on May 23, 2013, 07:22:36 am
Well, in general this should be possible. At least there are configurations where the vera sends commands to IR Blasters. Search for "SQ Blaster" or "redeye" in this forum.

Basically this depends on logitech, they would need to provide the information how commands could/should be sent. So you should try to get some developper informations for the device, but that is going to be hrd with logitech I guess.
Title: Re: Logitech harmony ultimate
Post by: mzpost on May 25, 2013, 10:20:07 am
I will try and see what's around, I'm sure given the nature of it there will be something around at some point. It's a excellent device the wifi to IR unit really is powerful it controls everything in the room even stuff out of lie of sight but its clear to see the unit s packed with IR emitters so it must throw out a lot of light (my old harmony 1100 was also quite powerful). The really is a very good product from logitech ( they have their moments then seem to loose (squeezebox was a lost opportunity) but this sees them again with an excellent product. I need to get out of the habit of pointing the remote at things as it no longer matters....

If and when its possible to have vera throw out some commands to this it would be a killer product especially as the Wifi IR unit is available by itself for those wanting to control it with a phone or tablet.
Title: Re: Logitech harmony ultimate
Post by: garrettwp on May 25, 2013, 10:27:46 am
You can either wait for Logitech to have a set of API's (good luck with that) or either you or someone else reverse engineer the api calls.

- Garrett
Title: Re: Logitech harmony ultimate
Post by: aseriesoftubes on May 28, 2013, 04:57:39 pm
If you have a media center PC near your TV, take a look at the instructions here: http://thedigitallifestyle.com/w/index.php/2012/10/06/how-to-control-vera-z-wave-devices-and-run-vera-scenes-from-the-command-line-cmd/. If I'm correctly understanding what you want to do, it seems like this would solve the problem.

I don't have a media center PC, so I bought a $35 Raspberry Pi computer and a $20 MCE remote/receiver and modified the instructions above to suit a Linux environment.  I then programmed my Harmony remote to send the appropriate MCE keypresses when I push one of the Activity buttons (such as "Watch a Movie") on the remote.

The Pi uses very little power, so I leave it on all the time, and the required software is all free (Raspian, LIRC, irexec and wget). I've been running this setup 24/7 for the past 3 months without so much as a hiccup.

Let me know if I can provide more detail.
Title: Re: Logitech harmony ultimate
Post by: zachattac on September 20, 2013, 02:43:10 am
Hi All I bought a harmony smart hub in the hopes of my vera sending IR commands. havent done much traffic sniffing yet but someone has done some work. check out the link below.
cheers Dene
http://petelepage.com/blog/tag/harmony-hub-api/
Title: Re: Logitech harmony ultimate
Post by: mzpost on December 01, 2013, 12:19:30 pm
I will investigate that and give it a go.  The recent software update Logitech have done is fantastic, you could control hue lights before (which of course report back to vera) but the recent change means you can control the lights based on scene commands from the remote I.e dim the lights when selecting watch movie, so in that respect it kind of cuts out the need to run via vera to do that, especially as vera knows the state of the lights anyway.

I'm going to play with those options more, ideally would be nice to have vera still take charge of the lights one a "play movie" scene was selected from the remote but right as I could add in some nice time delays etc but for now it takes things closer.  The harmony ultimate remote and the hub really is a fantastic but if kit especially as it lets anything running the app and the physical controller all sync, so you can turn stuff on with ipad or phone and then make changes or turn if off with the remote. Its one of those things that's just works and I can honesty say I'd not been without it now.

If I could get an infra red input into vera I could add those to the scenes in the harmony and have some very nice trigger of events, yes it would not be two way comms but no different to lightwave etc.

If a anyone wants a really good all in one remote the harmony is certainly worth a look, I think Logitech totally under sell some of its best features.

If they would publish api data for the hub it would be an even better piece of kit.
Title: Re: Logitech harmony ultimate
Post by: RexBeckett on December 01, 2013, 01:24:05 pm
Quote
If I could get an infra red input into vera...
That isn't too hard. See here. (http://forum.micasaverde.com/index.php/topic,14618.0.html)
Title: Re: Logitech harmony ultimate
Post by: mzpost on December 14, 2013, 09:46:47 am
That looks cool, being able to press "watch movie" on the harmony and have vera trigger a scene to take care of the lights etc would be the final true integration for me.  I will have to do some further reading as to how to make the work but a quick read seems to mean its possible.
Title: Re: Logitech harmony ultimate
Post by: RexBeckett on December 14, 2013, 09:57:24 am
Oh it's certainly possible. It is the reason I wrote KiraRx in the first place and it has been doing this for me ever since.

I added a custom device to Harmony and learned some codes from a redundant remote for my required lighting scenes: Off, Low, Quarter, Half and Full. Then I learned these codes from Harmony to KiraRx and gave them the same names. I set up four Vera scenes that are triggered from KiraRx recognizing the named codes.

The final step is to edit the Harmony activities to include the appropriate button on the custom light device and you're done.
Title: Re: Logitech harmony ultimate
Post by: Bboy486 on January 11, 2014, 01:29:47 pm

If you have a media center PC near your TV, take a look at the instructions here: http://thedigitallifestyle.com/w/index.php/2012/10/06/how-to-control-vera-z-wave-devices-and-run-vera-scenes-from-the-command-line-cmd/. If I'm correctly understanding what you want to do, it seems like this would solve the problem.

I don't have a media center PC, so I bought a $35 Raspberry Pi computer and a $20 MCE remote/receiver and modified the instructions above to suit a Linux environment.  I then programmed my Harmony remote to send the appropriate MCE keypresses when I push one of the Activity buttons (such as "Watch a Movie") on the remote.

The Pi uses very little power, so I leave it on all the time, and the required software is all free (Raspian, LIRC, irexec and wget). I've been running this setup 24/7 for the past 3 months without so much as a hiccup.

Let me know if I can provide more detail.

So you were able to have the pi act as the mediator between ir and wifi? So if I understand you right, when you press watch a movie on your Harmony it triggers the pi to run a preset scene setup in Vera?


Sent from my iPad using Tapatalk - now Free (http://tapatalk.com/m?id=1)
Title: Re: Logitech harmony ultimate
Post by: drewying on January 12, 2014, 03:02:53 am
I've actually written a Harmony iOS app that I use.

The only way the Vera will be able to communicate with the Harmony is though XMPP/Jabber. While there are some Lua XMPP libraries out there, what makes it really difficult is that each harmony model has a unique UID it uses so there will need to be some community effort to gather all of those.

I'll play around and see if I can't get a little Vera virtual device hooked up on my end. If I can get something that works I'll post it and maybe we can get a group going to gather all those uids.

Drew
Title: Re: Logitech harmony ultimate
Post by: JPF16 on January 12, 2014, 10:07:48 pm
Awesome I just bought the harmony smart control and decided to look at the forums to see if I could integrate, can't wait to see what it can do
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 15, 2014, 12:51:16 pm
I also just picked a harmony smart control (Logitech 915-000194) and would be interested in contributing to a plug-in.
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 20, 2014, 01:42:38 am
Well, it took a little longer than I hoped, but I've written small C++ executable that can connect to the Harmony Hub, list all available activities and devices, and start an activity (by ID).  It can also get the current activity and list the complete configuration of the Harmony.

I used the pyharmony library as a guide, but (true to python form) dependencies and packaging made that library unwieldy.

You can get the sources from SourceForge here: https://sourceforge.net/projects/harmonyhubcontrol/files/

The Readme files explains how to build and run it.

Next step would be to make a full-fledged Vera plug-in out of it. 
Given that it would be my first, I could use some help/pointers there.
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 20, 2014, 05:48:40 am
Next step would be to make a full-fledged Vera plug-in out of it. 
Given that it would be my first, I could use some help/pointers there.

Fantastic; Looking forward ;-)
Title: Re: Logitech harmony ultimate
Post by: haavard on January 20, 2014, 05:51:19 am
This would be a very useful plugin. I hope it can be created!
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 26, 2014, 12:31:17 pm
Are things progressing ? :)
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 27, 2014, 03:21:39 pm
Indeed.  I've ported the code to BSD sockets to remove the Qt dependency and set up an OpenWRT toolchain to compile the code natively for VeraLite.  This will remove the need to have an intermediate server to process the  commands to the Harmony Hub.  It will also simplify the Lua required for the plug-in, which is great given that this will be my first experience with both Lua and Vera plug-ins.
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 27, 2014, 03:24:29 pm
Indeed.  I've ported the code to BSD sockets to remove the Qt dependency and set up an OpenWRT toolchain to compile the code natively for VeraLite.  This will remove the need to have an intermediate server to process the  commands to the Harmony Hub.  It will also simplify the Lua required for the plug-in, which is great given that this will be my first experience with both Lua and Vera plug-ins.

Sounds great! Keep up the good work :-)
Title: Re: Logitech harmony ultimate
Post by: SirMeili on January 27, 2014, 03:31:45 pm
If this can be made to work (so that I can do things like have the vera start up stuff via harmony and vice versa and the remove be in sync with the activity that it should be on), this will almost guarantee that I buy a Harmony Ultimate (possibly more).

My issue is now that it is possible to have the Vera start up some of my components, but then the remote doesn't know that I'm in that activity, so I still have to wait for it to "start" everything up.
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 27, 2014, 11:56:07 pm
With Harmony Hub, the Hub holds the status, not the remote -- therefore everything is automatically always "in sync".  The iPhone and Android apps are automatically notified by the Hub whenever a new activity is started (either via the remote or through the native iPhone/Android app running on another device or through the HarmonyHubControl app) and all devices update their displays accordingly.

I suspect the same goes for the Harmony Ultimate remote since it also uses a Hub, but I do not have one to confirm.

I find that using the iPad mini to control both scenes on the Vera and Harmony activities is quite convenient -- especially if you map desktop icons to the URL's of your Vera scenes.

The idea is that once the Vera can control the Harmony Hub it will be able to access the last few components of an entertainment system (including the PS3!) so those can be scripted into Vera scenes.  There are, of course, plenty of other ethernet-IR bridges, but the Harmony seems to provide a very polished experience. 
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 31, 2014, 02:02:58 am
Success!

The HarmonyHubControl code has been ported to BSD sockets (to remove the Qt dependency) and cross-compiled with OpenWRT 10.03 (Backfire) to run natively on the VeraLite.  The resulting self-contained binary (located in the attached zip file) is 99.9K in size and runs on the VeraLite exactly as it does on Linux and Windows. 

Also attached is an updated Readme file based on the one posted on SourceForge.  The Readme contains instructions to run the executable.

The next step will be to os.execute the binary from a Lua plug-in, parse the output to populate virtual devices and activities in Vera and build UI to send commands to the Harmony Hub. 

I've been looking at some existing plug-ins and the Wake-On-Lan plug-in seems to do something very similar using the wol executable.  I'm thinking of using that as a starting point. 

Given my (very) limited knowledge of Lua and Vera Plugins I could really use some pointers with this next part.

I could also use some feedback on the command-line output.  Now that the cross-compile environment is set up it's fairly easy to make modifications.
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 31, 2014, 04:19:53 am
Perfect! You are a hero ;-)
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 31, 2014, 04:56:33 am
I just tested it on my Vera; Works just as described :-)

Looking forward to the plugin.

/Martin
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 31, 2014, 11:59:18 am
Hi Martin,

Out of curiosity, what model Vera do you have?  I'm wondering if the binary also works on a Vera3 and older Vera's or if those require a different OpenWRT toolchain.
Title: Re: Logitech harmony ultimate
Post by: garrettwp on January 31, 2014, 12:28:31 pm
If it is works on Vera Lite it will work on Vera 3. They are both on the same platform. Vera 2 and 1 are different platforms.

- Garrett
Title: Re: Logitech harmony ultimate
Post by: flyveleder on January 31, 2014, 12:57:38 pm
Hi,
For me it works on both VeraLite and Vera3

/Martin
Title: Re: Logitech harmony ultimate
Post by: aechelon on January 31, 2014, 01:08:17 pm
Awesome!

I'd like to host the Vera fork of the HarmonyHubControl project on code.mios.com.
I found this thread http://forum.micasaverde.com/index.php/topic,3287.15.html (http://forum.micasaverde.com/index.php/topic,3287.15.html) which indicates that I should "PM @mcvflorin" to setup the required access for SVN to code.mios.com.  That post is from 06/2012.  Is that still the proper way to host a project on code.mios.com?
There's a support link at the bottom of the page, but that goes to the hosting company (support@repositoryhosting.com.)
Title: Re: Logitech harmony ultimate
Post by: garrettwp on January 31, 2014, 01:35:19 pm
MCVFlorin or mcv.andrei would be your best bets.

- Garrett
Title: Re: Logitech harmony ultimate
Post by: Rbcarnevale on January 31, 2014, 07:34:30 pm
Success!

The HarmonyHubControl code has been ported to BSD sockets (to remove the Qt dependency) and cross-compiled with OpenWRT 10.03 (Backfire) to run natively on the VeraLite.  The resulting self-contained binary (located in the attached zip file) is 99.9K in size and runs on the VeraLite exactly as it does on Linux and Windows. 

Also attached is an updated Readme file based on the one posted on SourceForge.  The Readme contains instructions to run the executable.

The next step will be to os.execute the binary from a Lua plug-in, parse the output to populate virtual devices and activities in Vera and build UI to send commands to the Harmony Hub. 

I've been looking at some existing plug-ins and the Wake-On-Lan plug-in seems to do something very similar using the wol executable.  I'm thinking of using that as a starting point. 

Given my (very) limited knowledge of Lua and Vera Plugins I could really use some pointers with this next part.

I could also use some feedback on the command-line output.  Now that the cross-compile environment is set up it's fairly easy to make modifications.

You're great!

Plz, continue!

I've no words to thank you.
Title: Re: Logitech harmony ultimate
Post by: kenray536 on February 05, 2014, 05:13:14 pm
Great work so far!

I'm looking to pick up the Logitech 915-000194 now that I see the plugin is being worked on.

Thank so much for all of your hard work and efforts.

I had previously considering getting one of the iTach products, but I like how a physical remote can also be used with the harmony.

Keep up the great work!
Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on February 07, 2014, 11:31:53 am
I came in here saying I'd kill a man to integrate my Harmony with my Z-Wave stuff.  You have saved me (and my family) the stress of all that prison time.  Thank you so much.  8)

I am in the market for a remote for my new theater room anyways.  This really tips the scale in favor the the Ultimate.   :D
Title: Re: Logitech harmony ultimate
Post by: aechelon on February 07, 2014, 02:48:55 pm
Thanks for the encouragement all! 

Just a quick update: I've been doing some refactoring on the code in preparation for publishing the first cut on code.mios.com. 
Thanks to Andrei for setting up the project.

The binary is down to 67K with no external dependencies and I've started working on the UI. 

Stay tuned.
Title: Re: Logitech harmony ultimate
Post by: haavard on February 09, 2014, 06:51:18 am
I just want to applaud the development of this app.
I have really been thinking about how to solve the AV control in my house.
This could be the best solution! Cant wait to try it.

regards
Title: Re: Logitech harmony ultimate
Post by: Juggler on February 09, 2014, 11:18:19 am
This is great news... very excited to see/hear more.

One question that I think I know the answer too... Will this plugin allow for bi-directional communication, or one-way only? i.e. I'm assuming the plugin will allow MiOS to control the Harmony Hub, can the Harmony Hub in turn send commands to MiOS? Or is some sort of IR bridge required?
Title: Re: Logitech harmony ultimate
Post by: pathduck on February 10, 2014, 03:30:59 pm
Thanks for the encouragement all! 

Just a quick update: I've been doing some refactoring on the code in preparation for publishing the first cut on code.mios.com. 
Thanks to Andrei for setting up the project.

The binary is down to 67K with no external dependencies and I've started working on the UI. 

Stay tuned.

You are amazing. I have been hacking Harmony ultimate by using a rooted android device with tasker to simulate screen presses to be able to control the Harmony app. If this works it will be a HUGE time saver :)
Title: Re: Logitech harmony ultimate
Post by: aechelon on February 12, 2014, 02:04:04 pm
This is great news... very excited to see/hear more.

One question that I think I know the answer too... Will this plugin allow for bi-directional communication, or one-way only? i.e. I'm assuming the plugin will allow MiOS to control the Harmony Hub, can the Harmony Hub in turn send commands to MiOS? Or is some sort of IR bridge required?

Yes, the commands are 1-way.  The Vera can send commands to the Harmony, and the the Harmony can be queried to for the current activity, but since the Vera doesn't have either an IR or Bluetooth receiver, it cannot receive commands from the Vera. 
Title: Re: Logitech harmony ultimate
Post by: haavard on February 12, 2014, 04:13:43 pm
Is there any indication of when a beta could be available?

Regards
Title: Re: Logitech harmony ultimate
Post by: jimpapa on February 12, 2014, 05:28:29 pm
This is one plug in I am eagerly awaiting  :)

 
Title: Re: Logitech harmony ultimate
Post by: aechelon on February 13, 2014, 11:51:55 am
Is there any indication of when a beta could be available?

Regards

I hope to have something ready to beta over the next few weeks.  ;)
Title: Re: Logitech harmony ultimate
Post by: Rbcarnevale on February 15, 2014, 08:27:59 pm
Yeahhh!

I'm waiting for news!!M
Title: Re: Logitech harmony ultimate
Post by: alexzen on February 21, 2014, 03:22:04 pm
Yes !!! Good news !!

Thank you :)
Title: Re: Logitech harmony ultimate
Post by: huveu on February 24, 2014, 09:44:48 am
Thanks for your work on this!

If I wanted to try the binary in Vera, how would I go about running it? I know someone posted saying it worked great, but there were no instructions.
Title: Re: Logitech harmony ultimate
Post by: jimpapa on February 24, 2014, 10:46:44 am
Thanks for your work on this!

If I wanted to try the binary in Vera, how would I go about running it? I know someone posted saying it worked great, but there were no instructions.

aechelon is the developer on this.. and of course runs the binary.  But it is not released yet as he is still working on it.
So we need to wait till he is ready to be able to install and run it
Title: Re: Logitech harmony ultimate
Post by: huveu on February 24, 2014, 02:20:18 pm
aechelon is the developer on this.. and of course runs the binary.  But it is not released yet as he is still working on it.
So we need to wait till he is ready to be able to install and run it

While that is true for a complete plugin. I was interested in seeing if there was a way to run the binary (posted earlier in the thread) from code in a scene.

flyveleder seems to have done it somehow:

I just tested it on my Vera; Works just as described :-)

Looking forward to the plugin.

/Martin
Title: Re: Logitech harmony ultimate
Post by: jimpapa on February 24, 2014, 02:26:24 pm
well.. I'll be darned,  So he did.. Sorry  :)

Title: Re: Logitech harmony ultimate
Post by: huveu on February 24, 2014, 02:34:07 pm
well.. I'll be darned,  So he did.. Sorry  :)

:)
Title: Re: Logitech harmony ultimate
Post by: aechelon on February 24, 2014, 02:42:48 pm
Thanks for your work on this!

If I wanted to try the binary in Vera, how would I go about running it? I know someone posted saying it worked great, but there were no instructions.

aechelon is the developer on this.. and of course runs the binary.  But it is not released yet as he is still working on it.
So we need to wait till he is ready to be able to install and run it

Hi All,

I actually committed the latest snapshot of the binary to http://code.mios.com/trac/mios_lhh yesterday.  In addition to all the previously-available functionality, this version also provides the ability to execute a single command on a particular device.

I've also committed the full Vera development stack (openwrt SDK tar gzip and the source code to cross-compile the binary) since the learning curve to put all that together manually is fairly steep.  Note that the development environment must be hosted on a 32-bit Linux O/S.  I've been using Ubuntu 12.04.

The first cut of the UI is still a little ways off and the whole project could use (a lot) more documentation, but for those of you who want to play with the HarmonyHubControl binary, you can install it manually by SCP'ing it over to your Vera and invoke it directly from your scenes with luup code using os.execute.

The WOL plug-in provides a good example of how to use os.execute.  See http://code.mios.com/svn_public/mios_wake-on-lan/tags/1.52%20UI4/I_WOL.xml

The README file in the trunk provides the full command line syntax for the binary. 

Executing activities is relatively simple.  You first invoke the binary and request a list of activities with parameter list_activities.  Once you know the activity ID you're after, start it with parameters start_activity [ID].  As far as I can tell, the device and activity ID's are fixed, so you should only need to query them once.

I'm will be adding command line to list all the individual commands for a particular device very soon, but if you want to do that right now you can search through the dump from get_config for the command you'd like to invoke.

The individual commands are packaged along with the device ID to which they apply, and they are grouped by device. 
Once you've identified the appropriate command and device ID, you can issue the command directly using parameters:

issue_device_command [DEVICE_ID] [DEVICE_COMMAND]

For example, to turn up the volume on my Denon receiver by 0.5 dB I use the following:

HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] issue_device_command [ my denon receiver's ID ] VolumeUp

Stay tuned for more updates!
Title: Re: Logitech harmony ultimate
Post by: huveu on February 24, 2014, 03:08:20 pm
Hi All,

I actually committed the latest snapshot of the binary to http://code.mios.com/trac/mios_lhh yesterday.  In addition to all the previously-available functionality, this version also provides the ability to execute a single command on a particular device.

I've also committed the full Vera development stack (openwrt SDK tar gzip and the source code to cross-compile the binary) since the learning curve to put all that together manually is fairly steep.  Note that the development environment must be hosted on a 32-bit Linux O/S.  I've been using Ubuntu 12.04.

The first cut of the UI is still a little ways off and the whole project could use (a lot) more documentation, but for those of you who want to play with the HarmonyHubControl binary, you can install it manually by SCP'ing it over to your Vera and invoke it directly from your scenes with luup code using os.execute.

The WOL plug-in provides a good example of how to use os.execute.  See http://code.mios.com/svn_public/mios_wake-on-lan/tags/1.52%20UI4/I_WOL.xml

The README file in the trunk provides the full command line syntax for the binary. 

Executing activities is relatively simple.  You first invoke the binary and request a list of activities with parameter list_activities.  Once you know the activity ID you're after, start it with parameters start_activity [ID].  As far as I can tell, the device and activity ID's are fixed, so you should only need to query them once.

I'm will be adding command line to list all the individual commands for a particular device very soon, but if you want to do that right now you can search through the dump from get_config for the command you'd like to invoke.

The individual commands are packaged along with the device ID to which they apply, and they are grouped by device. 
Once you've identified the appropriate command and device ID, you can issue the command directly using parameters:

issue_device_command [DEVICE_ID] [DEVICE_COMMAND]

For example, to turn up the volume on my Denon receiver by 0.5 dB I use the following:

HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] issue_device_command [ my denon receiver's ID ] VolumeUp

Stay tuned for more updates!

Thanks!! This is exactly what I was looking for  ;D
Title: Re: Logitech harmony ultimate
Post by: huveu on February 24, 2014, 11:28:07 pm
Took me a few minutes to figure this out, learned a few things about the VeraLite (ssh password) and guessed a few things.

I can post all the details tomorrow if anybody else is interested in simple scenes that start activities.

Title: Re: Logitech harmony ultimate
Post by: aechelon on February 25, 2014, 12:21:58 pm
Took me a few minutes to figure this out, learned a few things about the VeraLite (ssh password) and guessed a few things.

I can post all the details tomorrow if anybody else is interested in simple scenes that start activities.

I think a write-up on this would be helpful even after the plug-in UI is available. 

My current thinking for activities in the UI is to list them in the Control panel on main Harmony Hub device and provide a button to start each one (see attachment).

As for the devices, the plug-in will create a Vera device to correspond with each device enumerated by the binary and populate each of those devices with their available commands.
Title: Re: Logitech harmony ultimate
Post by: huveu on February 25, 2014, 01:00:56 pm
I think a write-up on this would be helpful even after the plug-in UI is available. 

True. I'll put something together tonight.

My current thinking for activities in the UI is to list them in the Control panel on main Harmony Hub device and provide a button to start each one (see attachment).

As for the devices, the plug-in will create a Vera device to correspond with each device enumerated by the binary and populate each of those devices with their available commands.

I was thinking the same thing. I'm not familiar with how to create plugins and their devices. I'll try to look into it tonight also, and see if I have time to help with the development of that part (if you are interested).
Title: Re: Logitech harmony ultimate
Post by: aechelon on February 25, 2014, 01:51:37 pm
Quote
(if you are interested).

Most definitely!
Title: Re: Logitech harmony ultimate
Post by: alexzen on March 04, 2014, 03:33:20 pm
can i help you ?

Title: Re: Logitech harmony ultimate
Post by: monkeydance on March 06, 2014, 12:37:16 pm
As someone who is new to the VeraLite product I'm looking to set up some AV components in addition to the lighting scenarios I already have. This project interests me a lot. Is there any reason that the ultimate would be better or worse than other recommended AV/IR controllers? I have multiple harmony remotes and the setup for them is a breeze which I love and this would seem to incorporate fairly well. I also like the fact that I can still use devices to control without having to rely on the VeraLite.

If I'm looking to buy something I'd like to make sure it's sustainable going forward rather than buying multiple times. If you were starting out would you recommend this solution (with app when aechelon gets it up and running) or going with something like the sq blaster plus? It's all a learning curve for me but you all seem to know what this would offer over other methods of control.

I love the fact you guys are working on this as it makes my recent VeraLite purchase seem like the right decision over other HA controllers.
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 06, 2014, 01:13:06 pm
If you were starting out would you recommend this solution (with app when aechelon gets it up and running) or going with something like the sq blaster plus?

In short: Yes. 

The major benefit of the Logitech over other IR solutions is that there is already a large user base with a growing library consisting of a substantial number of supported devices, to which Logitech is adding daily.  It also doesn't hurt the the Harmony Hub supports both IR devices and bluetooth devices such us the PS3.

It's unfortunate that Logitech lacked the foresight to publish an open API, but that hurdle has been overcome now and the Vera plug-in will make usage even easier.

My $0.02.
Title: Re: Logitech harmony ultimate
Post by: monkeydance on March 06, 2014, 01:26:04 pm
That was my thought process as well, but having never dug into the HA scene and only minimal coding or electrical impacts I wasn't sure if I was opening the pandoras box going with something that isn't integrated into Mios like the sqblaster. I might pick up the ultimate now and set it up without the plugin to get the wife and kids on board with using it.

One further question, it shouldn't matter if someone buys the 8 device or the 15 device ultimate that comes with the one should it? I assume not since it's all passing via the plugin and myharmony account eventually, but thought I'd ask.

Keep up the good work.
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 06, 2014, 01:46:07 pm
One further question, it shouldn't matter if someone buys the 8 device or the 15 device ultimate that comes with the one should it? I assume not since it's all passing via the plugin and myharmony account eventually, but thought I'd ask.

Given the $200+ price difference between the devices I'd stick with the 8-device and expand by adding another hub if/when it's required.

The Vera will talk to multiple hubs as well as it talks to just one and even Logitech's native smartphone apps support connecting to multiple hubs.

If and when there's a need to add another hub it's be as simple as adding the device to the Vera and using the multiple hubs in tandem in scenes to perform any given function.

Again, my $0.02.
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 06, 2014, 02:54:11 pm
Also, there's always this hack (http://howto.cnet.com/8301-11310_39-57567913-285/how-to-hack-a-harmony-remote-to-control-more-devices/) to circumvent Logitech's arbitrary device limit.  ;)
Title: Re: Logitech harmony ultimate
Post by: gdeboos on March 11, 2014, 07:46:08 am
this looks very promising.
I have been debating whether or not I should get an iTach but this looks like and even better solution.

I like how with harmony you can set up activities / macros and it remembers devices states.
So only send on / off commands when needed etc.

is this in a usable state at the moment?
The binary talk looked a bit confusing  :-\
Title: Re: Logitech harmony ultimate
Post by: tomgru on March 11, 2014, 10:49:54 am
I think the answer is 'no' to this, but, could you use this to execute scenes from the Harmony remote?
Title: Re: Logitech harmony ultimate
Post by: huveu on March 11, 2014, 10:51:06 am
this looks very promising.
I have been debating whether or not I should get an iTach but this looks like and even better solution.

I like how with harmony you can set up activities / macros and it remembers devices states.
So only send on / off commands when needed etc.

is this in a usable state at the moment?
The binary talk looked a bit confusing  :-\

I've been a bit busy in the last few days and forgot to write up a guide to use it in it's current form. It is usable, but not as a plugin yet. You will have to use things like ssh, scp, and other commands to set it up. Then, each activity or device command will be it's own separate scene with a couple lines of code.

I do have to say that even though it works there is quite a bit of lag between executing a scene and the command action being performed. The problem is that each call is treated separately and the email and password has to be authenticated with logitech (this causes a significant delay). In it's current form, I see this being useful for just starting activities, powering off, or other commands that are not really time sensitive. Anything that requires immediate feedback should be done with the remote or with Harmony's app.

Maybe aechelon can chime in to see if this behavior can be changed. I'm not sure if there is a way to keep an authenticated connection open and just send commands.
Title: Re: Logitech harmony ultimate
Post by: j0nas on March 17, 2014, 07:25:44 am
I think the answer is 'no' to this, but, could you use this to execute scenes from the Harmony remote?

Unfortunately, no. I would also like this possiblity though.

The best and simplest way of achieving it would be if it was possible for the Hub to invoke URLs, which it currently will not: http://forums.logitech.com/t5/Harmony-Hub-Based-Remotes/Is-it-possible-for-the-Harmony-Smart-to-invoke-a-URL/m-p/1187733#M8157
Title: Re: Logitech harmony ultimate
Post by: jorisdekloris on March 26, 2014, 02:47:06 pm
Any news on this?
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 26, 2014, 04:48:04 pm
Any news on this?
I've only had a few hours here and there, but the plug-in is coming along.

I think the answer is 'no' to this, but, could you use this to execute scenes from the Harmony remote?
Executing scenes directly with the binary is actually very straightforward. 
I'll try to put a write-up on this together this evening.

I don't even think you'll need to ssh into the Vera.  You should be able to use the UI to upload the binary and call it directly using os.execute from custom luup code in your scene.

Maybe aechelon can chime in to see if this behavior can be changed. I'm not sure if there is a way to keep an authenticated connection open and just send commands.
Sending multiple commands through a single connection is supported in the API but the binary doesn't expose that through the command line.  I'll add that to the wish list.
Title: Re: Logitech harmony ultimate
Post by: huveu on March 26, 2014, 09:48:49 pm
Executing scenes directly with the binary is actually very straightforward. 
I'll try to put a write-up on this together this evening.

I'm really sorry that I didn't write this up. If you don't do it tonight, I'll work on it tomorrow.

I don't even think you'll need to ssh into the Vera.  You should be able to use the UI to upload the binary and call it directly using os.execute from custom luup code in your scene.

I tried to execute it after uploading it through the ui, but it didn't work. Maybe I missed something.

Sending multiple commands through a single connection is supported in the API but the binary doesn't expose that through the command line.  I'll add that to the wish list.

This would be awesome. It would make sending multiple commands quicker and more usable.
Title: Re: Logitech harmony ultimate
Post by: bds42 on March 26, 2014, 11:50:47 pm
Really excited to try this out...I'll be glad to beta test any setup steps that either of y'all come up with. 

Thanks for your work!
Title: Re: Logitech harmony ultimate
Post by: huveu on March 27, 2014, 08:31:01 am
Here is my very rough outline of what needs to be done. I wrote it up in just a few minutes before heading out to work. Let me know if you see any errors, or if you need more info on any of the steps.
Title: Re: Logitech harmony ultimate
Post by: jorisdekloris on March 27, 2014, 12:55:06 pm
Nice!
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 27, 2014, 01:04:06 pm
Very nice write-up!

Running the binary after uploading through the UI doesn't work because it needs execute permissions (chmod +x HarmonyHubControl).  Beyond that you make a very good point -- the user will need to run the binary via the command line to retrieve scene IDs and commands, and that requires ssh access (which is not a bad thing to have in general).

Thanks for putting that together, I'll add it to the README!
Title: Re: Logitech harmony ultimate
Post by: jorisdekloris on March 27, 2014, 01:06:08 pm
Just to be sure - this won't work on pre Vera 3 versions right?
Title: Re: Logitech harmony ultimate
Post by: aechelon on March 27, 2014, 01:07:05 pm
Correct.  The binary is Vera3/VeraLite only.
Title: Re: Logitech harmony ultimate
Post by: huveu on March 27, 2014, 01:19:32 pm
Very nice write-up!

Running the binary after uploading through the UI doesn't work because it needs execute permissions (chmod +x HarmonyHubControl).  Beyond that you make a very good point -- the user will need to run the binary via the command line to retrieve scene IDs and commands, and that requires ssh access (which is not a bad thing to have in general).

Thanks for putting that together, I'll add it to the README!

Thanks! Feel free to make any modifications you deem necessary.
Title: Re: Logitech harmony ultimate
Post by: huveu on March 28, 2014, 10:22:03 pm
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.
Title: Re: Logitech harmony ultimate
Post by: huveu on March 29, 2014, 12:43:47 pm
Hey aechelon, I just noticed that Harmony added a sleep feature to their app (15, 30, 60, 90, and 120 minutes options). Any idea of how to call these from the binary?
Title: Re: Logitech harmony ultimate
Post by: silencery on March 30, 2014, 05:05:55 am
Thanks for putting this together!

Unfortunately, on executingthe HarmonyHubControl binary, i'm getting the following errors:

LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : FAILURE
ERROR : swapAuthorizationToken : Communication failure

It looks like it's having a hard time connecting to the hub (the IP address has been triple checked), so I tried to get a response from the machine on port 5222.  Here's the result from telnet:

<?xml version='1.0' encoding='iso-8859-1'?><stream:stream from='HarmonyOne_Pop@qa1.com' to='ab903454-7bee-4410-9eea-bb5355bb667e' version='1.0' id='connection-failure' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'><stream:error><resource-constraint xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams' xml:lang='en'>MAX_CLIENTS=4</text></stream:error></stream:stream>Connection closed by foreign host

Anyone running into any similar situations?
Title: Re: Logitech harmony ultimate
Post by: bds42 on March 30, 2014, 01:20:35 pm
I'm assuming you can ping the IP of the Harmony hub just fine?


Sent from my iPad using Tapatalk
Title: Re: Logitech harmony ultimate
Post by: huveu on March 30, 2014, 07:21:57 pm
Thanks for putting this together!

Unfortunately, on executingthe HarmonyHubControl binary, i'm getting the following errors:

LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : FAILURE
ERROR : swapAuthorizationToken : Communication failure

It looks like it's having a hard time connecting to the hub (the IP address has been triple checked), so I tried to get a response from the machine on port 5222.  Here's the result from telnet:
...
Anyone running into any similar situations?

Hmmm, I have no idea why it's doing that. To rule out a bug with the binary in vera you could try one of the other libraries for controlling the harmony remote from your computer, like https://github.com/petele/pyharmony/. I'm not sure how technical you are, but you will need to get python working and run this from the terminal/command prompt. That said, I haven't tried pyharmony, so I'm not sure if it still works.
Title: Re: Logitech harmony ultimate
Post by: silencery on March 30, 2014, 08:22:44 pm
Thanks for the tips guys.  Based on the telnet response, it looks like there's a 4 client max limit to the hub, but I don't see that documented anywhere (maybe I missed it?).  Even so, I'm not sure how I could have hit the limit since I only have one other client connecting (Android app).

The good news is, the binary finally started working but its intermittent.  A few updates:

Yup, totally pingable. Here are the connectivity stats:
--- 192.168.3.117 ping statistics ---
765 packets transmitted, 743 packets received, 2% packet loss
round-trip min/avg/max = 1.078/2.567/399.187 ms

There is a bit of packet loss, so that might have something to do with it, but i'm not sure how this would tie into the MAX_CLIENTS error.

Interestingly enough, even when the binary isn't working, the android app always works. My best guess would be the official Android App is better with working on 'fuzzy' connections whereas the binary may not be forgiving enough on lossy signal.  I'll see if i can provide the Hub a better wifi signal in the interim.

I do have a python box online, and the pyharmony test i setup worked.
Title: Re: Logitech harmony ultimate
Post by: bds42 on March 30, 2014, 09:49:02 pm
Just tried this tonight... it worked great the first time!  I have two Harmony hubs and I could talk to each just fine.

Thanks again to aechelon for all the work on creating this and to huveu for putting together the steps to allow me to get this up and running in the few spare minutes I had today!
Title: Re: Logitech harmony ultimate
Post by: huveu on March 30, 2014, 10:03:31 pm
Just tried this tonight... it worked great the first time!  I have two Harmony hubs and I could talk to each just fine.

Thanks again to aechelon for all the work on creating this and to huveu for putting together the steps to allow me to get this up and running in the few spare minutes I had today!

Great! Did you have any issues with any of the steps?
Title: Re: Logitech harmony ultimate
Post by: bds42 on March 30, 2014, 10:10:48 pm
Nope... I previously had setup ssh and scp so that wasn't an issue.  DHCP on my router had the IPS of the hubs so those were easy to find. 

Everything I've done so far has been from the command line on the Vera3.  I can start activities and do an 'all off' which is mainly what I'm looking for... A way to turn off the TVs when *some people* leave them on....

I'm just setting up my first multiswitch to start playing with some LUA.  I'll post back if I run in to anything but I don't expect to.


Sent from my iPad using Tapatalk
Title: Re: Logitech harmony ultimate
Post by: CudaNet on March 31, 2014, 02:36:32 pm
Subscribed  :)

I placed my order for one yesterday based on the progress made thus far. If this works out then I'll be purchasing more for the rest of my home. I will honestly say this, I would not have ordered one due to Logitech's stance on keeping the API closed to the public. Thanks to Aechelon and all those who contributed to the plugin development - it's greatly appreciated.
Title: Re: Logitech harmony ultimate
Post by: silencery on March 31, 2014, 04:13:13 pm
This is a little off topic, but hopefully someone can help. Has anyone here been using the Ultimate remote with powering vera scenes?  Is this possible?

I moved recently from a Harmony 650 to a basic Harmony Smart Control (non-touchscreen) and except for the ability to control vera and non-backlit buttons, it's pretty close to perfect. I'm curious if upgrading to the Harmony Ultimate instead if it can have this type of ability.

Thanks!
Title: Re: Logitech harmony ultimate
Post by: huveu on March 31, 2014, 04:49:14 pm
This is a little off topic, but hopefully someone can help. Has anyone here been using the Ultimate remote with powering vera scenes?  Is this possible?

I moved recently from a Harmony 650 to a basic Harmony Smart Control (non-touchscreen) and except for the ability to control vera and non-backlit buttons, it's pretty close to perfect. I'm curious if upgrading to the Harmony Ultimate instead if it can have this type of ability.

Thanks!

I wish the answer was positive, but it isn't. There is no way to do what you are asking, and upgrading to the Ultimate wouldn't make a difference.

There are a couple of threads on Logitech's forum from people asking for the ability for the hub to make http requests as custom commands (like this one http://forums.logitech.com/t5/Harmony-Remotes/Make-HTTP-Request-from-activity/td-p/1159253). They haven't agreed to do it, but it would solve our problem.

An alternative could be to poll for the current activity in luup and make changes whenever an activity change is detected. The responsiveness would depend on the polling interval, and I'm not sure if so many connections could cause issues with the Harmony hub.

edit: I just posted on that thread to see if we get some kind of response from logitech. It might help if more people chime in.
Title: Re: Logitech harmony ultimate
Post by: silencery on March 31, 2014, 06:11:23 pm
On the old Harmony 650, i got it to work as an experiment but it was really just a bad hack. 

I had setup a fake scene (light controls) with a fake device in the Harmony (like lutron light controller or something) and assigned the IR commands to trigger commands on an eventghost server (the HTPC). Eventghost would then handle the wget commands to trigger scenes or devices in vera.

While it worked, I didn't really like this method on the 650 since it didn't show anything on the display so it wasn't user friendly.  However, if the Ultimate remote can show more details and have the ability to custom name scene buttons, this type of long workaround could actually be usable.
Title: Re: Logitech harmony ultimate
Post by: silencery on April 03, 2014, 10:24:39 pm
@aechelon,

Can you help confirm which fork of pyharmony your latest binary is based on? I'm still running into intermittent connectivity issues even after adding an AP near the hub.

The symptoms are similar (hanging session), so I'm wondering if the issues i'm running into are similar to the ones described by petele  here: http://petelepage.com/blog/tag/pi/

I don't seem to get the same problems when running pyharmony (petele fork) on my test python box, but that could be due to something else.

Thanks a ton!
Title: Re: Logitech harmony ultimate
Post by: CudaNet on April 04, 2014, 11:27:57 am
Got my Hub on Wednesday and set everything up through their site. I wasn't able to upload the binary until yesterday evening - followed the instructions (appreciate the write-up huveu) and was able to list my activities (Watch TV, power off -1) and devices. No issues whatsoever. This morning I was doing a screen capture of the device ID's and noticed when I polled for activities that only the power off (-1) was available. Not sure why that was - any ideas what causes this ?

Once I get my new TV (Monday) I'll do further testing using LUA code.
Title: Re: Logitech harmony ultimate
Post by: kenray536 on April 07, 2014, 08:40:56 pm
Excited to see all of this progress! I'm running the smart remote, touch remote, and hub.

Looking forward to the plugin someday. Keep up the great work!
Title: Re: Logitech harmony ultimate
Post by: silencery on April 08, 2014, 04:20:35 pm
This is a little off topic, but hopefully someone can help. Has anyone here been using the Ultimate remote with powering vera scenes?  Is this possible?

I moved recently from a Harmony 650 to a basic Harmony Smart Control (non-touchscreen) and except for the ability to control vera and non-backlit buttons, it's pretty close to perfect. I'm curious if upgrading to the Harmony Ultimate instead if it can have this type of ability.

Thanks!

I wish the answer was positive, but it isn't. There is no way to do what you are asking, and upgrading to the Ultimate wouldn't make a difference.

There are a couple of threads on Logitech's forum from people asking for the ability for the hub to make http requests as custom commands (like this one http://forums.logitech.com/t5/Harmony-Remotes/Make-HTTP-Request-from-activity/td-p/1159253). They haven't agreed to do it, but it would solve our problem.

An alternative could be to poll for the current activity in luup and make changes whenever an activity change is detected. The responsiveness would depend on the polling interval, and I'm not sure if so many connections could cause issues with the Harmony hub.

edit: I just posted on that thread to see if we get some kind of response from logitech. It might help if more people chime in.

Just wanted to report back that I did wind up picking up an Ultimate to try this on.  The workaround requirements are ridiculously high and probably overly complicated: you need a windows-based HTPC in order to run eventghost to send HTTP commands to vera, but it works beautifully. 

Switch and scene names are programmed into the remote display (i.e. Front door lock, Set Alarm, Kitchen Light, etc) and I've got it setup to flip binary devices on or off and set loadlevels for dimmer devices. 

With this setup, I've just about reached my holy grail of remotes. Multimedia and vera control rolled into one device.  The only thing missing is the ability to read status off vera and report it back to the remote, but i'm not holding my breath on that one :)
Title: Re: Logitech harmony ultimate
Post by: silencery on April 10, 2014, 03:48:36 am
I've added a short youtube sample of this in action here:
https://www.youtube.com/watch?v=qUgWobfnkKI

Don't mind the stock music :)
Title: Re: Logitech harmony ultimate
Post by: haavard on April 10, 2014, 04:07:08 am
Wow. That looks nice!
Title: Re: Logitech harmony ultimate
Post by: papreston on April 10, 2014, 11:38:25 am
I've also had very good luck using event ghost.  Not a perfect setup but working well for now. Along with XBMC and Media Monkey. I can load a playlist. Switch music from the living room to the bedroom and run very scenes or control devices all from one screen. I have found the Harmony sequence to be very useful. Just wish you could copy sequences from one activity to another.

Sent from my SAMSUNG-SGH-I747 using Tapatalk

Title: Re: Logitech harmony ultimate
Post by: Elkhorn on April 11, 2014, 05:42:46 pm
I went with a refurbished Harmony Ultimate from Amazon. It's fulfilled by Amazon and states it's a "Retail Boxed. Factory Refurbished by Logitech. 90 Day Warranty". For a price difference of $216 compared to $344 I decided to take a chance.

The one I purchased was from seller, PrimeDeal
http://www.amazon.com/gp/product/B00BQ5RY1G/ref=olp_product_details?ie=UTF8&me=&seller=

I've been up and running for 4 days and it's working great.

Thanks to aechelon for making this happen and thanks to huveu for the write-up.
Title: Re: Logitech harmony ultimate
Post by: TomBear on April 13, 2014, 09:07:08 am
Very nice write-up!

Running the binary after uploading through the UI doesn't work because it needs execute permissions (chmod +x HarmonyHubControl).  Beyond that you make a very good point -- the user will need to run the binary via the command line to retrieve scene IDs and commands, and that requires ssh access (which is not a bad thing to have in general).

Thanks for putting that together, I'll add it to the README!

So how can i send commans through UI (Luup?)?
Title: Re: Logitech harmony ultimate
Post by: huveu on April 13, 2014, 11:52:15 am
So how can i send commans through UI (Luup?)?

You need to create scenes that run luup code. See the last step of the guide I wrote on post 68:

Create scenes for any command you would like to use. Put one of the following in the luup tab for the scene (remember to hit "save lua" before closing the scene):
   Start activity luup (-1 to turn off):
   os.execute("HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] start_activity [activity id]")
   Device command luup:
   os.execute("HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] issue_device_command [device id] [device command]")
Title: Re: Logitech harmony ultimate
Post by: TomBear on April 14, 2014, 01:37:51 am
So how can i send commans through UI (Luup?)?

You need to create scenes that run luup code. See the last step of the guide I wrote on post 68:

Create scenes for any command you would like to use. Put one of the following in the luup tab for the scene (remember to hit "save lua" before closing the scene):
   Start activity luup (-1 to turn off):
   os.execute("HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] start_activity [activity id]")
   Device command luup:
   os.execute("HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] issue_device_command [device id] [device command]")

Thanks. Got it working now.
Title: Re: Logitech harmony ultimate
Post by: silencery on April 15, 2014, 01:44:05 am
Got my Hub on Wednesday and set everything up through their site. I wasn't able to upload the binary until yesterday evening - followed the instructions (appreciate the write-up huveu) and was able to list my activities (Watch TV, power off -1) and devices. No issues whatsoever. This morning I was doing a screen capture of the device ID's and noticed when I polled for activities that only the power off (-1) was available. Not sure why that was - any ideas what causes this ?

Once I get my new TV (Monday) I'll do further testing using LUA code.

I had to swap out the Ultimate I bought due to a faulty volume button.  After putting in the new hub, I started seeing this exact same behavior as well.  Luckily, I was able to get the activities out by switching to each one individually and running the bin with the get_current_activity_id attribute.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on April 18, 2014, 01:56:06 pm
Well. my 900 died today (won't stay on, white screen, tried everything), so I ended up ordering a Harmony Ultimate and hub today. I didn't really want to spend the money right now (especially after buying a netatmo yesterday), but no one in the house can operate the HT equipment except me without a harmony remote.

The only benefit is that I will eventually be trying this out to see how it works. I had planned on it eventually, but wanted to wait since i had other urgent projects. This just moved up the list though.
Title: Re: Logitech harmony ultimate
Post by: mda on April 19, 2014, 11:34:32 pm
...I was doing a screen capture of the device ID's and noticed when I polled for activities that only the power off (-1) was available.

Same problem here. I have 3 harmony hubs. 2 of them have only 2 activities and those list the activities fine. The 3rd one has 8 activities and only lists power off.

Code: [Select]
# HarmonyHubControl [username masked] [password masked] [vera ip masked] list_activities
LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : SUCCESS
HARMONY COMMAND SUBMISSION     : SUCCESS
PARSE ACTIVITIES AND DEVICES   : SUCCESS
Activities Available via Harmony :

-1 - PowerOff

@aechelon  Please let me know if there is anything i can do to help debug. Thanks.
Title: Re: Logitech harmony ultimate
Post by: huveu on April 20, 2014, 08:17:47 am
...I was doing a screen capture of the device ID's and noticed when I polled for activities that only the power off (-1) was available.

Same problem here. I have 3 harmony hubs. 2 of them have only 2 activities and those list the activities fine. The 3rd one has 8 activities and only lists power off.

Code: [Select]
# HarmonyHubControl [username masked] [password masked] [vera ip masked] list_activities
LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : SUCCESS
HARMONY COMMAND SUBMISSION     : SUCCESS
PARSE ACTIVITIES AND DEVICES   : SUCCESS
Activities Available via Harmony :

-1 - PowerOff

@aechelon  Please let me know if there is anything i can do to help debug. Thanks.

Please run the get_config command and post the output.
Title: Re: Logitech harmony ultimate
Post by: aechelon on April 22, 2014, 12:50:19 pm
Hi Everyone,

Sorry for the delay in responding to all the posts... I've been a little busy getting married.

@silencery regarding the pyharmony code, I only used the petele description of the protocol as a guideline. 
To actually get the C version working I had to use wireshark with my own hub to fish out the complete protocol. 

In the event that anyone is interested in extending the binary to support other models I've posted the full openwrt toolchain used to build the binary in the plugin repository (http://code.mios.com/trac/mios_lhh/browser/development).  That is really only feasible do with the actual hardware on-hand though.


@mda I'm guessing the configuration parser is choking on something while parsing the configuration for your 3rd harmony.  I'd like to debug the parser with your configuration.  If you could post the output of the get_config command for that hub that would be very helpful.

Regarding the plug-in, I've got it listing and starting activities based on the output of the binary and I've started on having it
create virtual devices on the vera but it's still pretty rough.
Title: Re: Logitech harmony ultimate
Post by: Simian on April 22, 2014, 02:59:42 pm
I've tried using your toolchain under Ubuntu 13.04, but I get quite a few errors when attempting to run 'make'. Deleting the contents of the tmp folder fixes the linking problems, but it still errors out unless I take the HarmonyHubControl folder out of the packages folder (which is counterproductive since it doesn't compile anything after running its checks). Could you please tell me exactly what your build environment is (OS/version)? Thanks!
Title: Re: Logitech harmony ultimate
Post by: aechelon on April 22, 2014, 03:05:33 pm
Could you please tell me exactly what your build environment is (OS/version)? Thanks!

Hi Simian,
I used a vanilla Ubuntu 14.04 LTS 32-bit image. I tried 64-bit first, but the OpenWRT toolchain really didn't like that and making a 32-bit VM was quicker than figuring out why 64-bit wasn't happy.
Title: Re: Logitech harmony ultimate
Post by: aechelon on April 22, 2014, 03:31:18 pm
Could you please tell me exactly what your build environment is (OS/version)? Thanks!

Hi Simian,
I used a vanilla Ubuntu 14.04 LTS 32-bit image. I tried 64-bit first, but the OpenWRT toolchain really didn't like that and making a 32-bit VM was quicker than figuring out why 64-bit wasn't happy.

Also, don't forget to make clean before calling make from the top level  ;)
Title: Re: Logitech harmony ultimate
Post by: Simian on April 24, 2014, 09:17:02 am
Ubuntu 14.04 32-bit was what I needed to make it work. Thanks! Wasn't able to make it work with the Harmony Link though, but I'm glad I finally got the build environment figured out.
Title: Re: Logitech harmony ultimate
Post by: aechelon on April 24, 2014, 12:36:23 pm
Ubuntu 14.04 32-bit was what I needed to make it work. Thanks! Wasn't able to make it work with the Harmony Link though, but I'm glad I finally got the build environment figured out.

Glad to hear it! 

I'm in the process of extending the cross-compilation environment to include a few more packages (zlib, openssl, and qt4) for use in this and other plug-ins.  I'll post a new snapshot once I have everything linking and running.
Title: Re: Logitech harmony ultimate
Post by: RdP on May 02, 2014, 06:47:16 am
...I was doing a screen capture of the device ID's and noticed when I polled for activities that only the power off (-1) was available.

Same problem here. I have 3 harmony hubs. 2 of them have only 2 activities and those list the activities fine. The 3rd one has 8 activities and only lists power off.

Code: [Select]
# HarmonyHubControl [username masked] [password masked] [vera ip masked] list_activities
LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : SUCCESS
HARMONY COMMAND SUBMISSION     : SUCCESS
PARSE ACTIVITIES AND DEVICES   : SUCCESS
Activities Available via Harmony :

-1 - PowerOff

@aechelon  Please let me know if there is anything i can do to help debug. Thanks.

Please run the get_config command and post the output.

Same problem here: --> see output below....
LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : SUCCESS
HARMONY COMMAND SUBMISSION     : SUCCESS
PARSE ACTIVITIES AND DEVICES   : SUCCESS
Activities Available via Harmony :

-1 - PowerOff
8766774 - Apple TV kijken

I have 4 activities defined !!!!

see attached the output of the get_config command...

Thanks,
Rien
Title: Re: Logitech harmony ultimate
Post by: RdP on May 02, 2014, 08:21:04 am
Hi,

I know what is causing the issue with the activities not being listed !!!

3 of my activities had custom icons attached and one had the default icon.

The one with the default icon, was the only one which was listed !!!! I recreated the activities with the custom attached icons and leave the icons default and now all activities are listed correctly !!!!

I guess all other who encounter this issue have custom icons attached :-)

I posted my config in a previous post, I assume this will not be too hard to solve
Look for a string named "imageKey":"Activity\/5019995_da64cba3-2d1d-3570-3f08-1407c56e92a5.png" which is only in the definition with custom icons attached in the config file.

I hope this can be solved soon :-)

Thanks,

Rien
Title: Re: Logitech harmony ultimate
Post by: huveu on May 02, 2014, 04:50:33 pm
Please re-upload the get_config output. The one above is empty.
Title: Re: Logitech harmony ultimate
Post by: RdP on May 02, 2014, 05:08:04 pm
Please re-upload the get_config output. The one above is empty.

When I try to reply or adjust a message with an attachment, my post isn't posted for some reason.

Can I email the .txt file ?
Title: Re: Logitech harmony ultimate
Post by: huveu on May 02, 2014, 05:09:57 pm
Please re-upload the get_config output. The one above is empty.

When I try to reply or adjust a message with an attachment, my post isn't posted for some reason.

Can I email the .txt file ?

Try sending it to me as a private message.
Title: Re: Logitech harmony ultimate
Post by: RdP on May 02, 2014, 05:18:00 pm
Here it is. There was something seriously wrong with the file ::)
Title: Re: Logitech harmony ultimate
Post by: aechelon on May 02, 2014, 05:19:46 pm
Here it is. There was something seriously wrong with the file ::)

Thanks for posting that!
Title: Re: Logitech harmony ultimate
Post by: Reylas on May 06, 2014, 03:34:13 pm
Is there any possibility of getting this to work on a Vera 2?  Is it just the fact that you do not have one or is there a hardware reason it would not work?

Title: Re: Logitech harmony ultimate
Post by: aechelon on May 06, 2014, 03:42:30 pm
The hardware should support it, however the cross-compilation toolchain for Vera2 is different from Vera3 (presumably because the two have a different architectures). 

As far as I know MCV does not release the cross-compilation toolchains, however since the underlying O/S is OpenWRT (at least for Vera3/VeraLite) it was possible generate a toochain.

To get this going on Vera2 you would need a working cross-compilation toolchain.  Given that, the code for the binary is POSIX-compliant, so it should just compile.

Title: Re: Logitech harmony ultimate
Post by: Reylas on May 06, 2014, 04:32:38 pm
Best I can find on a Vera2 :  Backfire (10.03, r21639)

I will dig more and see if I can find anything else that would identify the toolchain used.
Title: Re: Logitech harmony ultimate
Post by: aechelon on May 06, 2014, 05:09:36 pm
The wiki  (http://wiki.micasaverde.com/index.php/Fix_OpenWRT) suggests it's actually a modified version of Kamikaze, not Backfire.  The Vera3/VeraLite runs Backfire.
Title: Re: Logitech harmony ultimate
Post by: Reylas on May 06, 2014, 05:32:12 pm
I will check my vera 2 when I get home, but that line is from the output of a vera 2.

I wonder if that wiki is for the old vera 1?

Title: Re: Logitech harmony ultimate
Post by: Reylas on May 06, 2014, 06:28:26 pm
I can confirm that my vera 2 is running Backfire 10.03 R21639.

Title: Re: Logitech harmony ultimate
Post by: Reylas on May 06, 2014, 06:47:25 pm
So I took the plunge just to see how it would work on my Vera 2.   Unfortunately, it works great up until the command submission.   I get success on web login, communication login, and command submission, but it 'times out' after that.   After waiting 3-5 mins, it reports back as 'killed'

So I need to find the differences on a Vera 2 running the same version of OpenWRT to see if a compile would change things.

Thanks,
Title: Re: Logitech harmony ultimate
Post by: wllunn on May 12, 2014, 04:54:50 pm
Bump.  VeraLite plugin for Harmony Hub.

How it coming?
Title: Re: Logitech harmony ultimate
Post by: wllunn on May 12, 2014, 06:01:31 pm
I've been following this thread for a while now.  Very interested in the progress of the plugin.

Hats Off to aechelon!

Purchased a USBUIRT last week before I noticed the referrals to Kira for Transmit and receive. (Should have gone that route, I have a Harmony 1100  I don't want to put out to pasture. )

The goal it to have a single remote to control everything. (Who doesn't have this as a goal?)  (See EVERYTHING below)
As I've found the right configuration I've moved items to Vera and away from Harmony Hub.(Their Blog doesn't not have an ETA for communicating with Vera)  However, the Binary mentioned in this thread would work if I could program Vera correctly, been avoiding going down that road.

I've been interested in home automation for about a decade now and have just retired my X-10 stuff.  Been able to do so much more with Vera.

This story sounds like some many I've been reading in the blogs, there is always that one last elusive bit of control ! (here comes the matrix referral) 
"... Control is an illusion".  Was that Matrix? not sure.

Any-who, I digress.   Would be willing to pay $ to have a Harmony Hub plugin.  Is home automation a hobby or an addiction !  ;)

Thanks again for all the hard work everyone!  Can't wait to see what comes next.

EVERYTHING:
Vera-lite UI5 w/USBUIRT controls:
    8xGE Dimmers
    Mimo-Lite Garage door controller w/Eco-Link tilt sensor
    D-Link DCS-5222l PTZ camera
    Sony STR-DE898 AV Receiver
    Sony BDP-cx960 Blue-Ray
    Sharp Aquos LC-80LE650U 80" LED
    Samsung UN46F6300AF 46: LED

Harmony Hub
    XBOX 360
    XBOX ONE

Dedicated Windows 8 W/WMC & windows UIRT (we call it the house server)
   (Gonna try loading Home Control to connect to Vera.  Seems like I could control the XBOX-es from there.)
   (Dabbled with XMBC for a bit, got the plugin to report status to Vera, but its just HTPC like WMC, so sticking with WMC for now.)

Android Tasker w/Autovera plugin for Vera and Autonotification (really neato stuff here)  (Hats off to Joaomgcd in google community !)
https://plus.google.com/u/0/communities/110193399489813640793 (https://plus.google.com/u/0/communities/110193399489813640793)
Complete 2-way communication android <--> Vera, don't even have to be on home network!

 
   
Title: Re: Logitech harmony ultimate
Post by: aechelon on May 14, 2014, 05:50:30 pm
Bump.  VeraLite plugin for Harmony Hub.

How it coming?

Slow progress.  Getting married seriously diminished available time for recreational coding!  :) 

I also wish I had a spare Vera to use for development...
As it stands I basically have to take the one that runs the house offline to do any serious debugging.
Title: Re: Logitech harmony ultimate
Post by: wllunn on May 17, 2014, 05:36:39 pm
Congratulations on getting Married!  We are going on 9 years this July 4th. (she says its another diamond anniversary, i didn't know there was so many. ;) )

I hope your spouse encourages you on your tech-y adventures like mine does.  (14k Watt Generac, heated wiper blades, Gamer loft, quad-copter, Home-automation). And so far, I've not needed any stitches!

I've been thinking seriously about how to crowd fund a Vera unit for you.  Anyone have some ideas?  I'd be willing to contribute $30.

My story so far:
The excellent write-up by huveu earlier in this post (Page 5 ??) pulls it all together and has solved my immediate problem. (Have Vera tell Harmony Hub to manipulate the AV gear with Luup commands at scene start-up using HarmonyHubControl binary)
Still don't have a way for Harmony 1100 to initiate scenes, need to get Kira or GC100 I guess, whats the best choice? (Next pay day maybe)
Note to WMC users, PowerControlMCE has only a web interface for Micasaverde z-wave control so can't use WMC to communicate with Vera. After I connected Vera using their instructions, the WMC portion stopped working and locks up WMC.  But the web interface works.
Note to 1100 users, Logitech has conveniently omitted support for XBOX one on the 1100 ! :(
Note to USBUIRT users, the av gear interface in Vera is not so good, some commands work, some don't.  Harmony Hub does a superior job at sending the right commands.

'Til next time.

Title: Re: Logitech harmony ultimate
Post by: jorisdekloris on May 19, 2014, 07:44:12 am
I would be willing to donate some ? as wel


Sent from my iPhone using Tapatalk
Title: Re: Logitech harmony ultimate
Post by: nomar383 on May 27, 2014, 03:53:54 pm
Congratulations on getting Married!  We are going on 9 years this July 4th. (she says its another diamond anniversary, i didn't know there was so many. ;) )

I hope your spouse encourages you on your tech-y adventures like mine does.  (14k Watt Generac, heated wiper blades, Gamer loft, quad-copter, Home-automation). And so far, I've not needed any stitches!

I've been thinking seriously about how to crowd fund a Vera unit for you.  Anyone have some ideas?  I'd be willing to contribute $30.

My story so far:
The excellent write-up by huveu earlier in this post (Page 5 ??) pulls it all together and has solved my immediate problem. (Have Vera tell Harmony Hub to manipulate the AV gear with Luup commands at scene start-up using HarmonyHubControl binary)
Still don't have a way for Harmony 1100 to initiate scenes, need to get Kira or GC100 I guess, whats the best choice? (Next pay day maybe)
Note to WMC users, PowerControlMCE has only a web interface for Micasaverde z-wave control so can't use WMC to communicate with Vera. After I connected Vera using their instructions, the WMC portion stopped working and locks up WMC.  But the web interface works.
Note to 1100 users, Logitech has conveniently omitted support for XBOX one on the 1100 ! :(
Note to USBUIRT users, the av gear interface in Vera is not so good, some commands work, some don't.  Harmony Hub does a superior job at sending the right commands.

'Til next time.

I have my harmony 650 setup with my HTPC to accept keypresses and convert those to http requests to the vera over the network. So on my 650 it shows 2 buttons for example: Kitchen Lights On and Kitchen Lights Off. When one is pressed, the keypress is recognized by AutoHotKey and triggers a script to send the http reuest over the network to the vera. Takes about a half second from pressing the button to the action being performed.

I don't know if you are interested in this as a solution, but here are the resources I used and I could post my example code:

Blog that describes the basics:
http://windowsmediacenter.blogspot.co.uk/2012/10/how-to-control-vera-z-wave-devices-and.html

Forum Post:
http://forum.micasaverde.com/index.php?topic=16026.0

How to hide cmd files when running:
http://www.thegreenbutton.tv/forums/viewtopic.php?p=4458&sid=f681d211939bff34e9905584f5ff150d#p4458

Ortek VRC-1100 extra buttons to use:
http://wiki.xbmc.org/index.php?title=VRC-1100

Autohotkey key guide:
http://www.autohotkey.com/docs/Hotkeys.htm
http://www.autohotkey.com/docs/KeyList.htm

Title: Re: Logitech harmony ultimate
Post by: aechelon on June 02, 2014, 02:28:04 am

Congratulations on getting Married!  We are going on 9 years this July 4th. (she says its another diamond anniversary, i didn't know there was so many. ;) )
...
I've been thinking seriously about how to crowd fund a Vera unit for you.  Anyone have some ideas?  I'd be willing to contribute $30.


Thank you all for the continued encouragement!  A crowdsourced development Vera would be extremely kind and generous. 

I've managed to fix the configuration parser so that it can properly contend with custom icons.  This is the issue RdP reported back on page 8 of this thread. 

The attached zip file contains a binary with this fix.  That binary has also been committed to the repository.

Title: Re: Logitech harmony ultimate
Post by: sota on June 02, 2014, 05:57:19 am
Aechelon, I just tried this and it is now correctly listing all my activities correcty, many thanks! I notice that it takes a long time to execute any command - about 45 to 60 seconds - is this normal?
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 02, 2014, 09:39:01 am
Aechelon, I just tried this and it is now correctly listing all my activities correcty, many thanks! I notice that it takes a long time to execute any command - about 45 to 60 seconds - is this normal?

The delay is really dependent on your Internet connection speed.  Logitech (in their infinite wisdom) decided that it would be a good idea to have any client to the Harmony authenticate with one of their servers before authenticating with the Harmony itself.  At the moment the binary performs this authentication each time it is run.

I've been considering a couple of options to make the authentication less frequent (or bypass it altogether).

One option would be to store the authentication key returned by the Logitech servers and attempt to use the stored key first, only falling back to contacting the Logitech servers in the event of an authentication failure.  This option is attractive because it could be implemented fairly quickly, particularly if the burden of generating the file that contains the key is on the user, but it would require the authentication key to be written somewhere on the file system and may lead to inconsistent timing if/when the key changes. 

The good news is that in my testing I have not seen the key change (yet), however Logitech could easily modify that behavior with a future firmware update.


Another option would be to break the binary into 2 apps in a client/server model, whereby the server would authenticate and remain connected to the Harmony for extended periods of time.  The user would then submit commands to the server via the client application.  This model requires more time to implement and would necessitate extra user documentation to configure the server, but in the long run it would be more robust.
Title: Re: Logitech harmony ultimate
Post by: huveu on June 02, 2014, 01:06:11 pm
Looking forward to any of the two ideas. Getting rid of the delay when running a command would be a huge improvement.

I'll try to setup an ubuntu vm sometime this week to give option one a try.
Title: Re: Logitech harmony ultimate
Post by: sota on June 03, 2014, 03:25:00 am
Well, my internet connection is 125Mbs so that shouldn't be the problem! What I notice when executing a command is that the first two stages, Web Service Login and Harmony Communicaton Login show Success almost immediately, but then there is a delay of up to a minute before Harmony Command Submission shows Success.

So it would appear that the authentication is completing promptly, or does the Harmony Command Submission phase involve authentication as well?
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 03, 2014, 04:40:09 pm
As it turns out, the first option (which involved caching the Authentication Token) was actually trivial to implement.

In the process I also found a deficiency in the socket code which shaved off additional few seconds per connection and I decreased the wait time required to flush the socket during a read operation from 1 second to 0.3 seconds.

I've done some rudimentary testing and haven't seen any detrimental side-effects to the stability of the app. 
Functionality remains unchanged. 
Performance for most operations is 2-10x faster. 

Once the Authorization token has been cached querying the list of activities and devices on my setup takes ~1.5 seconds.  Starting an activity or issuing device commands takes less than a second.

I'll file these optimizations in the "I should have done that weeks ago" category...

As usual, the latest sources along with the pre-compiled binary have been committed to the mios repository and the attached zip file contains the latest binary.

Enjoy!
Title: Re: Logitech harmony ultimate
Post by: sota on June 03, 2014, 05:16:32 pm
OK, I can see that Web Services Login is bypassed after the first run, but I'm still seeing delays of 50 - 60 seconds on any get or list commands. Start_activity is almost immediate, so that's good but I don't understand why I'm seeing such a delay on the other comands. The Harmony Hub is just a few feet from the access point, so it should have a good connection.
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 03, 2014, 05:40:22 pm
If start_activity is quick, then there must be some issue with retrieving your Harmony's configuration.

How many activities do you have in your configuration?
Are the activities particularly heavy?
How long does it take to run get_config?
Would you mind posting the results of option get_config?
Title: Re: Logitech harmony ultimate
Post by: sota on June 04, 2014, 04:02:28 am
I have just three activities which are relativley straightforward. It takes about one minute to run get_config, see the attched file for the output.

Thanks.
Title: Re: Logitech harmony ultimate
Post by: mzpost on June 10, 2014, 03:31:57 pm
I see Logitech have upgraded the android app and now they control sonos as well (although the picture they have on their website suggests a little more indepth sonos control that I've seen that app do.

This product just gets better and better, vera integration would make it 100% the best remote there is (I think it already is a fantastic solution).
Title: Re: Logitech harmony ultimate
Post by: RdP on June 10, 2014, 03:58:46 pm
It's not only the app, but also the firmware of the hub !!!

On the Logitech forum I read some issues with the new firmware, has anyone of you already upgraded the firmware and checked if the harmonyhubcontrol tool still works ?

B/R,

Rien
Title: Re: Logitech harmony ultimate
Post by: mzpost on June 10, 2014, 04:34:08 pm
I'm a little behind on vera apps for it but having just had a tweak to get sonos working I can confirm the hub firmware and apps etc are as good as ever. Realise this is not a Logitech forum so will have a hunt in the AppStore .
Title: Re: Logitech harmony ultimate
Post by: huveu on June 10, 2014, 04:48:31 pm
It's not only the app, but also the firmware of the hub !!!

On the Logitech forum I read some issues with the new firmware, has anyone of you already upgraded the firmware and checked if the harmonyhubcontrol tool still works ?

B/R,

Rien

My hub upgraded last night. So far it seems to be working fine with the simple luup calls (start_activity, issue_device_command, get_current_activity_id).
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 11, 2014, 01:19:47 am
As others have mentioned, the Harmony's protocol is unchanged by the new firmware (v14.3) and Logitech has added some useful features.

Highlights for the upgrade include:

Full release notes from Logitech, here (http://forums.logitech.com/t5/MyHarmony-com/Harmony-Release-Notes-UPDATED-June-9th/td-p/1039103)
Title: Re: Logitech harmony ultimate
Post by: RdP on June 11, 2014, 05:11:29 am
Thank you Aechelon,

I upgraded my hub too, and everything seems to be working just fine. I don't have one of those new supported devices, so I don't know what the effect or possiblilities will be in combination with the vera interfacing.

I really like what you did to the performance, it's at least 10 times faster in my environment (average response time is 1 second)

And also thanks for the custom image support, this does now also work as expected.

Best regards,

Rien
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 11, 2014, 04:36:37 pm
I really like what you did to the performance, it's at least 10 times faster in my environment (average response time is 1 second)

And also thanks for the custom image support, this does now also work as expected.

Glad it's all working as expected!
Title: Re: Logitech harmony ultimate
Post by: aechelon on June 11, 2014, 04:40:33 pm
I have just three activities which are relativley straightforward. It takes about one minute to run get_config, see the attched file for the output.

Your configuration looks very straightforward.  I can't imagine what's going on with your setup.  Is there a similar delay when you first connect to the harmony via the smartphone app?
Title: Re: Logitech harmony ultimate
Post by: sota on June 13, 2014, 03:52:08 am
Not that I've noticed, but I have been very busy with work so no time for testing. I intend to try deleting activities and devices one by one to track down the source of the problem. I have confirmed that your app works fine with the latest Harmony firmware upgrade, but the delay is still there.

Pat
Title: Re: Logitech harmony ultimate
Post by: Bric on June 20, 2014, 09:10:43 am
Hi,
I have the Harmony hub too.
It seems that there are still problems and delays to vera control harmony hub...
Any news?

I am very interested in this too.

I was looking for another solution , and only found global cache (need cables and blasters) , SQ blaster remote (need cables and blasters), and the revolve (i am not sure if it's compatible with vera)

Am i right ?

Title: Re: Logitech harmony ultimate
Post by: aechelon on June 25, 2014, 12:00:27 am
Another firmware update (v14.3.0.1) from Logitech today. 
This latest revision adds support for controlling Nest thermostats.

The protocol remains unchanged. 

Release notes can be found here (http://forums.logitech.com/t5/MyHarmony-com/Harmony-Release-Notes-UPDATED-June-24th/td-p/1039103)

 
Title: Re: Logitech harmony ultimate
Post by: Bric on July 03, 2014, 09:27:00 pm
Hi, Sorry this question, but i am very noob yet at vera, plugins etc..
I have just instaled some lighting micro modules.
I have veralite and harmony hub.

I have just downloaded the last harmonyhubcontrol.
How can i run it at vera?

Can someone help me?

Thanks.
Title: Re: Logitech harmony ultimate
Post by: huveu on July 04, 2014, 08:35:21 am

Hi, Sorry this question, but i am very noob yet at vera, plugins etc..
I have just instaled some lighting micro modules.
I have veralite and harmony hub.

I have just downloaded the last harmonyhubcontrol.
How can i run it at vera?

Can someone help me?

Thanks.

Post 69 of this thread has step-by-step instructions on how to get this working.
Title: Re: Logitech harmony ultimate
Post by: Bric on July 04, 2014, 01:43:39 pm

Hi, Sorry this question, but i am very noob yet at vera, plugins etc..
I have just instaled some lighting micro modules.
I have veralite and harmony hub.

I have just downloaded the last harmonyhubcontrol.
How can i run it at vera?

Can someone help me?

Thanks.

Post 69 of this thread has step-by-step instructions on how to get this working.

Thank you very much !!!
Working perfect

Title: Re: Logitech harmony ultimate
Post by: Bric on July 05, 2014, 08:54:50 pm
Hi,
I can start an activity on Harmony with vera. Working great.

is there anyway to configure buttons like volume up / down, channel etc... on vera mobile?
I think that we need some kind of harmony plugin to do this. am i right?

The square blaster hd app  works with harmony hub?

i want now to use only 1 app to control lighting and home theater.
What my best option?


PS:
I have too: 
harman kardon 3700 receiver
wd tv live streaming

Both accept network commands.
How can i reserach or discover wich commands i have to send by network with vera to make they work?
Title: Re: Logitech harmony ultimate
Post by: RdP on July 06, 2014, 09:14:56 am
I will investigate that and give it a go.  The recent software update Logitech have done is fantastic, you could control hue lights before (which of course report back to vera) but the recent change means you can control the lights based on scene commands from the remote I.e dim the lights when selecting watch movie, so in that respect it kind of cuts out the need to run via vera to do that, especially as vera knows the state of the lights anyway.

I'm going to play with those options more, ideally would be nice to have vera still take charge of the lights one a "play movie" scene was selected from the remote but right as I could add in some nice time delays etc but for now it takes things closer.  The harmony ultimate remote and the hub really is a fantastic but if kit especially as it lets anything running the app and the physical controller all sync, so you can turn stuff on with ipad or phone and then make changes or turn if off with the remote. Its one of those things that's just works and I can honesty say I'd not been without it now.

If I could get an infra red input into vera I could add those to the scenes in the harmony and have some very nice trigger of events, yes it would not be two way comms but no different to lightwave etc.

If a anyone wants a really good all in one remote the harmony is certainly worth a look, I think Logitech totally under sell some of its best features.

If they would publish api data for the hub it would be an even better piece of kit.

Hi,

Any good experiences with this already ?

AS far as I have seen is that the Hue, Sonos and Nest config is not stored in the Hub, at least not in a way as a normal controllable device. If I use the get_config option of the HarmonyHubControl tool there is no data found which could be related to the Sonos, Nest or Hue. In my opinion that is a missed opportunity and not consistent.

Anybody other experiences ?

/Rien
Title: Re: Logitech harmony ultimate
Post by: garrettwp on July 06, 2014, 11:42:04 am
Hi,
I can start an activity on Harmony with vera. Working great.

is there anyway to configure buttons like volume up / down, channel etc... on vera mobile?
I think that we need some kind of harmony plugin to do this. am i right?

The square blaster hd app  works with harmony hub?

i want now to use only 1 app to control lighting and home theater.
What my best option?


PS:
I have too: 
harman kardon 3700 receiver
wd tv live streaming

Both accept network commands.
How can i reserach or discover wich commands i have to send by network with vera to make they work?

Even if it was in the plug in, the developer of the app would need to add support for the plugin. Vera mobile would be the least likely app to support 3rd party plugin's.

- Garrett

Title: Re: Logitech harmony ultimate
Post by: Bboy486 on July 14, 2014, 01:56:40 am
Is this still in development ? Is there a wiki with the features?


Sent from my iPad using Tapatalk
Title: Re: Logitech harmony ultimate
Post by: huveu on July 14, 2014, 12:37:46 pm

Is this still in development ? Is there a wiki with the features?


Sent from my iPad using Tapatalk

I assume it is since aechelon has not said otherwise. Currently you can use the binary to start activities and issue device specific commands. Look a few pages back for detailed instructions.
Title: Re: Logitech harmony ultimate
Post by: Bric on July 15, 2014, 05:17:13 pm
Hi,
I'm trying to issue specific device commands but i cannot do that.

When i send command  list_devices on ssh, it only returns me 1 device.
Another issue is that when i start an activity and send command get_current_activity_id, it gives me the wrong activity running.

What am i supposed to do ?

obs: sometimes it returns me 2 devices.   (I have 8 devices)
Title: Re: Logitech harmony ultimate
Post by: silencery on July 19, 2014, 03:12:00 am
which version did you install?  The latest one aechelon posted should fix this issue (usually caused by custom activity/device icons)
Title: Re: Logitech harmony ultimate
Post by: Bric on July 19, 2014, 10:56:13 pm
which version did you install?  The latest one aechelon posted should fix this issue (usually caused by custom activity/device icons)

I don t know.  How can i see wich version is installed?
Is there a way to do that?
Or i have to search wich one i downloaded?
Title: Re: Logitech harmony ultimate
Post by: Bric on July 21, 2014, 06:15:39 pm
Ok, this has nothing to do with harmony, but how can i create a scene like this:

Turn on home theater at any activity - This is ok.
Turn on selected lights ONLY if it's after a selected hour (like after 6pm ou 6:30 pm)
Title: Re: Logitech harmony ultimate
Post by: CudaNet on July 21, 2014, 06:36:16 pm
You can't, you simply have to verify that you have installed the latest binary. Please have a look at page 9.

which version did you install?  The latest one aechelon posted should fix this issue (usually caused by custom activity/device icons)

I don t know.  How can i see wich version is installed?
Is there a way to do that?
Or i have to search wich one i downloaded?
Title: Re: Logitech harmony ultimate
Post by: CudaNet on July 21, 2014, 06:52:02 pm
Since it sounds like you want to use Harmony to perform these functions, you need to:

[1] Decide what will trigger the scene.
[2] Once the scene is triggered, use LUUP to check

A. If it's night (is_night function) activate your light(s) and Home Theater device(s).

else

B. Just activate your Home Theater device(s)

Optionally you can utilize the day or night plugin which provides a (+) or (-) factor as I advise against using just a specific time...

Hope that helps

Ok, this has nothing to do with harmony, but how can i create a scene like this:

Turn on home theater at any activity - This is ok.
Turn on selected lights ONLY if it's after a selected hour (like after 6pm ou 6:30 pm)
Title: Re: Logitech harmony ultimate
Post by: Bric on July 21, 2014, 07:25:25 pm
Since it sounds like you want to use Harmony to perform these functions, you need to:

[1] Decide what will trigger the scene.
[2] Once the scene is triggered, use LUUP to check

A. If it's night (is_night function) activate your light(s) and Home Theater device(s).

else

B. Just activate your Home Theater device(s)

Optionally you can utilize the day or night plugin which provides a (+) or (-) factor as I advise against using just a specific time...

Hope that helps

Ok, this has nothing to do with harmony, but how can i create a scene like this:

Turn on home theater at any activity - This is ok.
Turn on selected lights ONLY if it's after a selected hour (like after 6pm ou 6:30 pm)

Thanks for help , but i'm very noob at mios.
I have a scene at ui5 that have this:

turn light 1 on
turn light 2 50% dimmered
and the loop code like: harmonyHubControl loginxxx passwordxxx  start_activity_xxxxx
ok?

But how can have this same scene only turning lights if for example its 6:01 pm   -  6:01am ?
I don t know if i can maintain my scene , and edit loop code, or i have to create a new one.
Title: Re: Logitech harmony ultimate
Post by: CudaNet on July 22, 2014, 02:02:48 pm
Send me a PM with the device Id's for light 1 and light 2, the Harmony activity ID (start_activity [ID]) and let me know which lights can be dimmed.

Since it sounds like you want to use Harmony to perform these functions, you need to:

[1] Decide what will trigger the scene.
[2] Once the scene is triggered, use LUUP to check

A. If it's night (is_night function) activate your light(s) and Home Theater device(s).

else

B. Just activate your Home Theater device(s)

Optionally you can utilize the day or night plugin which provides a (+) or (-) factor as I advise against using just a specific time...

Hope that helps

Ok, this has nothing to do with harmony, but how can i create a scene like this:

Turn on home theater at any activity - This is ok.
Turn on selected lights ONLY if it's after a selected hour (like after 6pm ou 6:30 pm)

Thanks for help , but i'm very noob at mios.
I have a scene at ui5 that have this:

turn light 1 on
turn light 2 50% dimmered
and the loop code like: harmonyHubControl loginxxx passwordxxx  start_activity_xxxxx
ok?

But how can have this same scene only turning lights if for example its 6:01 pm   -  6:01am ?
I don t know if i can maintain my scene , and edit loop code, or i have to create a new one.
Title: Re: Logitech harmony ultimate
Post by: Bric on July 30, 2014, 06:12:15 pm
Hi guys,

I suceeded to list devices, and issue comands to them.

But i'm having a trouble with a device.
My tv box.

I noticed that when i issue a command like Harmonyhubcontrol email password ip issue_device_command xxxx 5

The "5" is for the number 5 on my tv box.
Everytime i issue this command, the tv box understand as twice.  in this case , it goes to channel 55.
If i input 8 , the tv box goes to channel 88.

The same happens with the directions commands.  if i send command to directionRight, it goes 2 times to the right.

Anyway to understand what's happenning or fix it?


Title: Re: Logitech harmony ultimate
Post by: mdamen on August 05, 2014, 05:34:37 pm
Sorry to "hijack" this thread. I have been following along. I have developed a Logitech Harmony Ultimate plug-in for Tasker.
More information about Tasker can be found here: http://tasker.dinglisch.net/ (http://tasker.dinglisch.net/)
My plug-in currently allows you to start start activities based upon Tasker triggers and also stop the current running activity. I am currently fiddling around with the other options such as controlling individual devices. But because documentation lacks from Logitech side, I am forced to do reverse engineering.

For those interested, my plug-in can be found here: https://play.google.com/store/apps/details?id=com.mysterydroid.harmonytaskerplugin (https://play.google.com/store/apps/details?id=com.mysterydroid.harmonytaskerplugin)

What options are you guys looking for? I will try to focus my reverse engineering work on that first. Maybe this helps for the Micasa plugin as well.
Title: Re: Logitech harmony ultimate
Post by: Clmcm400 on August 09, 2014, 03:32:04 pm
That plugin is awesome... I actually found it because you had commented on someone's youtube vid that was using tasker and clicking through the harmony app like I was.  I left you a review and hope you can cash out with the plugin... I registered here to give you some kudos and to tell others to try it. :)

I think there is a decent market there with Harmony owners.  I would second the individual device control... but also the 'help' feature that logitech has would be nice as well.  I am not sure how that would be implemented, since its a menu based thing on the remote, but perhaps a help like feature where it tries to correct the current activity, maybe by turning off then back on?  Those good with tech can look and tell when the logitech missed the input or missed turning a device on... my girlfriend, not so much.  :)

...fyi... the mammal question on the registration sucks, lol.  I got frustrated cause its blue whale >.<

Update (couple hours later):  I have two hubs... one per level.  I cannot add them both.  I can add each one independently, but if I try to add the second one, it overwrites the first.  Help!
Title: Re: Logitech harmony ultimate
Post by: becktech on August 16, 2014, 10:49:05 pm
Bump.  VeraLite plugin for Harmony Hub.

How it coming?

Slow progress.  Getting married seriously diminished available time for recreational coding!  :) 

I also wish I had a spare Vera to use for development...
As it stands I basically have to take the one that runs the house offline to do any serious debugging.


I am willing to pay the lions share of a Dev Vera for you if that is what is needed to further the project for plugin.  PM me
Title: Re: Logitech harmony ultimate
Post by: DeltaNu1142 on August 17, 2014, 07:27:59 am
I've only just found this thread, and I'm excited about the possibilities...  lazy subscribing. I've always used Harmony remotes (880, mostly) and I have a hub sitting idle in the box because I never found much use for it. This could be great.

Of course...  I'm still on a Vera 2, and I'm not interested in upgrading until (if) the next hardware version comes out, so I'll be watching from the sidelines until then.
Title: Re: Logitech harmony ultimate
Post by: Clmcm400 on August 17, 2014, 08:00:41 pm
So I finally had the time to test HHC... the following is SUPPOSED to be the format:
 HarmonyHubControl [my harmony login email]  [my harmony login password] [my harmony hub's ip address] [command]

However, to get mine working, I have to enter:
 HarmonyHubControl\ \  user pw ip start_activity #

I HAVE to do it with the backslashes and the weird spacing, or else it won't run.  If I type it as above in putty, it'll work.  If I try it with LUUP in a scene, no dice.  I am guessing it wont work in LUUP because of the weird formatting issues I have.  What did I screw up?

Thanks.

UPDATE:  Figured it out.  Copy ending up getting some extra garbage parameters.  :)  Once I re-upped properly, everything started working.
Title: Re: Logitech harmony ultimate
Post by: gertc on August 26, 2014, 09:48:36 am
Tried HarmonyHubControl today. Alas, I'm still on Vera2, and as others have reported it times out:
HarmonyHubControl  **** **** **** list_activities
LOGITECH WEB SERVICE LOGIN     : SUCCESS
HARMONY COMMUNICATION LOGIN    : SUCCESS
HARMONY COMMAND SUBMISSION     : SUCCESS
Killed

Don't want to buy a Vera3 - but I do hope that Vera4 (or whatever it will be called) is released soon.
Title: Re: Logitech harmony ultimate
Post by: gertc on August 27, 2014, 06:45:56 am
Strange - but good news:

I downloaded your cross-compilation chain, and compiled it myself on my Ubuntu 14.04 computer. I wanted to investigate why it timed out - but no need to investigate anything: just typing 'make' was enough, now it does run successfully on vera2!
Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 11:19:47 am
Just found this thread....I have a Vera3 (UI7) and a Harmony Ultimate.   I've managed to install the HarmonyHubControl in Vera and I can successfully get information back through ssh from my hub.   So, I understand how I can have Vera control devices now that the Harmony controls.   

However, what I wanted to do was have an activity in the Harmony control a Vera (Z-Wave) device.   (i.e. press "Play XBox" on the Harmony remote and have Vera turn off the lights in that room - in addition turning on the projector, receiver and Xbox as it already does.)

Am I missing something? 

Title: Re: Logitech harmony ultimate
Post by: aechelon on September 05, 2014, 11:30:02 am
Just found this thread....I have a Vera3 (UI7) and a Harmony Ultimate.   I've managed to install the HarmonyHubControl in Vera and I can successfully get information back through ssh from my hub.   So, I understand how I can have Vera control devices now that the Harmony controls.   

However, what I wanted to do was have an activity in the Harmony control a Vera (Z-Wave) device.   (i.e. press "Play XBox" on the Harmony remote and have Vera turn off the lights in that room - in addition turning on the projector, receiver and Xbox as it already does.)

Am I missing something? 



HarmonyHubControl gives the Vera the ability to control any devices registered with the Harmony.  What you are asking is for is the opposite (the ability for the Harmony to control devices registered with the Vera).  This could be done by having the Vera poll the current activity on the Harmony and trigger a scene (via luup code) when a specific Harmony activity is started, however polling is generally error-prone -- and the Vera would need to do the bulk of the work.

Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 11:41:51 am
Is there a better way to do it then?  It seems like if the Vera is constantly polling the Harmony waiting for an activity press, it's going to tie up a lot of processor time.
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 05, 2014, 11:51:39 am
Is there a better way to do it then?  It seems like if the Vera is constantly polling the Harmony waiting for an activity press, it's going to tie up a lot of processor time.

Well, ideally you would want to use some device that the Vera can "see" and the Harmony can control to signal the beginning of an activity.

For example, you could use the power state or input selection on an internet-connected receiver (e.g. Denon) to have Vera trigger a scene.  The harmony could then toggle the power state of the receiver (or switch its input) and the Vera would respond to that event by triggering a scene.
Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 01:17:22 pm
Well, ideally you would want to use some device that the Vera can "see" and the Harmony can control to signal the beginning of an activity.
For example, you could use the power state or input selection on an internet-connected receiver (e.g. Denon) to have Vera trigger a scene.  The harmony could then toggle the power state of the receiver (or switch its input) and the Vera would respond to that event by triggering a scene.

That seems viable, as my Denon receiver (AVR-X3000) is network connected.   So, how do I have Vera watch the Harmony activity for change on the Denon input to "Game"
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 05, 2014, 01:37:05 pm
That seems viable, as my Denon receiver (AVR-X3000) is network connected.   So, how do I have Vera watch the Harmony activity for change on the Denon input to "Game"

The easiest to get this going is to use the Program Logic Event Generator (http://rts-services.com/Vera/Plugin/PLEG/) and trigger a scene based on a device property (your Denon's Input).  See attachment.

From the PLEG the documentation page:
Quote
Any combination of triggers, schedules and or device properties can be used for your Program Logic Event Generator device using the Inputs tab for the device.
Next you create an arbitrary set of complex Condition expressions for your Program Logic Event Generator device using the Conditions tab based on these input variables.
Next you create a one or more scenes, and/or notifications that are triggered when the Named condition from the Program Logic Event Generator is Fired. Notifications are done in the Program Logic Event Generator device using the Notifications tab.
Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 02:04:41 pm
Ok, I've installed PLEG and the needed PLC.   Now I guess the piece of the puzzle that I'm missing is how I get a device controlled by the Harmony (in this case the Denon Receiver) to show up in the Vera UI.   I know I can influence the device using the HarmonyHubControl through SSH, but I how do I see those devices in the UI?  Do I need to create virtual devices in the UI?
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 05, 2014, 02:16:52 pm
Ok, I've installed PLEG and the needed PLC.   Now I guess the piece of the puzzle that I'm missing is how I get a device controlled by the Harmony (in this case the Denon Receiver) to show up in the Vera UI.   I know I can influence the device using the HarmonyHubControl through SSH, but I how do I see those devices in the UI?  Do I need to create virtual devices in the UI?

That part is easy.  Install the Denon plugin for Vera.
Title: Re: Logitech harmony ultimate
Post by: huveu on September 05, 2014, 03:11:32 pm
Nice! I just got a Denon X2000 yesterday to replace my old receiver that didn't have network functionality.

The way I would approach it would be to trigger a scene on input or power changes. The scene would have code that gets the current activity from Harmony, and then triggers whichever scene you want to associate with the given activity. This could provide for finer control, as some activities might all share the same input in the receiver.

Here is an old post I made that checks the current activity and performs some other action:

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.

(With the new Denon receiver this is no longer necessary as it is always waiting for Airplay, and turns on automatically when used from another device)
Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 03:18:13 pm
Ok, I've installed PLEG and the needed PLC.   Now I guess the piece of the puzzle that I'm missing is how I get a device controlled by the Harmony (in this case the Denon Receiver) to show up in the Vera UI.   I know I can influence the device using the HarmonyHubControl through SSH, but I how do I see those devices in the UI?  Do I need to create virtual devices in the UI?

That part is easy.  Install the Denon plugin for Vera.
Almost there... :) 

So I've installed the Denon plugin and it can communicate with my receiver.   

I've created the Device Property "p1" which shows Device Name = AVR-X3000USA and Device Variable = Input

I'm assuming that now I have to create a Condition statement that says basically says "If p1 = Game do something" right?   
What's the syntax for this? 

And then I can have a scene to shut off the lights based on the trigger of PLEG meeting this condition statement?   
Title: Re: Logitech harmony ultimate
Post by: huveu on September 05, 2014, 03:30:52 pm
Almost there... :) 

So I've installed the Denon plugin and it can communicate with my receiver.   

I've created the Device Property "p1" which shows Device Name = AVR-X3000USA and Device Variable = Input

I'm assuming that now I have to create a Condition statement that says basically says "If p1 = Game do something" right?   
What's the syntax for this? 

And then I can have a scene to shut off the lights based on the trigger of PLEG meeting this condition statement?

You condition should just say:

p1 = "Game"

Click on the actions tab, and click edit for the condition you just created. That will allow you to do whatever you want with your devices (just like a normal scene), click finish.

Then close the pleg popup, and hit save.
Title: Re: Logitech harmony ultimate
Post by: DCJetsetter on September 05, 2014, 03:36:25 pm
I thought it was that simple and that was actually the condition I created

p1 = "GAME"

However, oddly enough, I can't seem to save a condition in the UI7 interface.  Everywhere else in the interface changing a property is auto-saved.  There is no "SAVE" button. 
Here I make a change and doesn't stick.    I click "OK" and then "Back" to get back and when I go back into "Conditions", c1 is blank again. :(   What's up?
Title: Re: Logitech harmony ultimate
Post by: huveu on September 05, 2014, 03:37:56 pm
Unfortunately I don't have UI7. You might want to look at the PLEG sub-forum:

http://forum.micasaverde.com/index.php/board,48.0.html
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 05, 2014, 03:44:07 pm
Unfortunately I don't have UI7. You might want to look at the PLEG sub-forum:

http://forum.micasaverde.com/index.php/board,48.0.html

The UI7 interface looks slick, but it's stuff like this that keeps me loyal to UI5.
Title: Re: Logitech harmony ultimate
Post by: reneboer on September 11, 2014, 06:50:14 pm
I got the Harmony Ultimate because it could to some level talk to the Vera as discussed here. To make things simpler I created this plugin. (sounds so simple when typing this, for me it was not!)

It basically makes it possible to control Harmony activities using scenes as usual. I also added notifications on activity changes.

In the Settings tab you must map five of the six buttons with the matching activity ID, button 1 is Off (-1). You have to use the ssh command line to figure those out. In the UI you will see the Current activity listed as 1-6. I did this to get the buttons to display as expected.
You can also set a polling interval. The pluging will then do a GetCurrentActivity every number of seconds you specify. Zero is no polling. I did implement a lower limit of 10 seconds so you cannot enter between 1  to 9 as I think that would overload your setup.

You are not limited to the five activities (+Off), but other activities will not be usable in scenes without LUA and there won't be notifications. unless someone knows how to trigger a notification on any change of a value (i.e. without knowing its value).

I want to use the http request option to get those activities so you do not need to ssh to the Vera, but my limited Vera coding knowledge has me stumpt. So any help is appriciated. I can get the GetCurrentActivityID to indeed return the activity ID. But for ListActivities I just see OK.
So this works:
http://192.168.xx.xx:3480/data_request?id=lu_action&DeviceNum=93&serviceId=urn:rboer-com:serviceId:Harmony1&action=GetCurrentActivityID

this does not:
http://192.168.178.38:3480/data_request?id=lu_action&DeviceNum=93&serviceId=urn:rboer-com:serviceId:Harmony1&action=ListActivities

More functions are implemented, but I have not realy found use for them yet. Hence not sure they truely work.

To do's are to port the HarmonyHubControl into LUA and the plugin as that can give better control and make things more BAU.

I am running UI6 so it works on that. UI7? No idea but there isn't much fancy stuff in this plugin.

If you have suggections or improvements, please send them over.

Oct 21 update: See http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691 (http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691) for the latest version.
Title: Re: Logitech harmony ultimate
Post by: haavard on September 14, 2014, 02:54:11 am
Hi reneboer.

I have tried to install your plugin as this seams like the way for me to get this to work. Thank you for your work on it.
I do however get the following error when I try run it. I get this error after reloading the UI:
Harmony Control : CMD: Failed sending command to Harmony Hub - get_current_activity_id

Any thoughts on how to get past this?
----------------------------------------------------
I think I managed to get it to do something...
I will play with it some more :)

Title: Re: Logitech harmony ultimate
Post by: flyveleder on September 16, 2014, 02:35:29 pm
I am getting same error msg. as haavard; Any clue ?

I have double-checked : IP address, hub email, hub pass.

Thanks,
Martin
Title: Re: Logitech harmony ultimate
Post by: reneboer on September 16, 2014, 06:29:00 pm
Hi,
It took me a while but I managed to turn this in a 'normal' plug in. This 1.3 version is pure LUA. The HarmonyHubControl program is no longer needed. This version is also quite a bit faster.

I also added a HTTP request handler to it so you can use the commands that return a lot of data, but you can also do the basic controls. In the settings you can disable the HTTP handler.
 
To get the curent activity:
http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=get_current_activity_id

cmd can be the same as for the HarmonyHubControl (list_activities, list_commands, list_devices, get_config, list_device_commands, get_current_activity_id, start_activity, issue_device_command)

To specify the activity or device ID add &cmdp1=[ID], e.g
http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=start_activity&cmdp1=1

To specify the device command add &cmdP1=[command], e.g
http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=issue_device_command&cmdP1=21133494&cmdP2=VolumeUp

If you like reading JSON output rather then plain text add &format=json

To handle json I included the hue_json.lue from the Phillips Hue plug in as that seems to work best with this.

@flyvelder, @haavard, Not sure why you got the error. For the first version to work you have to install the HarmonyHubControl binary as described in the thread. With this 1.3 version that is no longer needed.

PS: if you look in the code you will notice something interesting (or worrying, pick your choice) about the authentication.

I'll be off line for the next couple of days, trying not to think HARMONY, HUB or ULTIMATE. Whish me luck.

Oct 21 update: See http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691 (http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691) for the latest version.
Title: Re: Logitech harmony ultimate
Post by: huveu on September 16, 2014, 09:56:21 pm
This is very cool. Do you have any plans to allow for more activities, and configurable activity names in the near future?

I currently have 12 activities in my harmony smart control  ;D
Title: Re: Logitech harmony ultimate
Post by: reneboer on September 17, 2014, 04:55:59 am
Hi Huveu,
Thanks. I will look at making this look nicer in the future, maybe some basic device control like Mute/Unmute. Suggestions are welcome.

For now you have to use LUA in your scenes if you want to control mode then 5 activities and the Vera Dashboard will only show the status of those 5. As far as I know you cannot dynamically create the dashboard view as all that is defined in the static json file (D_Harmony1.json). So adding more would mean it is always more. You can add more by digging in the D_Harmony1.json and L_Harmony1.lua files, the others won't need to be changed.

The LUA to use in a scene would be looking like:
luup.call_action("urn:rboer-com:serviceId:Harmony1","StartActivity", "{newActivityID=ActivityID}", PlugDeviceID)

Use http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=list_activities to find the value for ActivityID
In the plugin settings you will find the PlugDeviceID that your Vera uses for the plugin.

Have fun, Rene.
Title: Re: Logitech harmony ultimate
Post by: flyveleder on September 17, 2014, 07:23:15 am
Great work Rene! Much appreciated!

Works just like announced.

Brgds,
Martin
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on September 17, 2014, 10:05:21 am
Thanks to everyone for all of their input and hard work. I am very interested in this topic and have been following it from the beginning. I'm pretty new to luau and the more technical workings of micasaverde, so much of this thread has been over my head.

I am excited about what I thought would be the ease of Rene's plugin, but unfortunately that seems to still be over my head. I downloaded the zip file and uploaded all of the contents to my vera lite under the develop apps>luup files section. I was expecting to see a new app in the My Plugins, but I see nothing. Have I done something wrong or not done enough?

Any help in installing/setting this up would be much appreciated. Thank you in advance!
Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 10:11:23 am
Thanks to everyone for all of their input and hard work. I am very interested in this topic and have been following it from the beginning. I'm pretty new to luau and the more technical workings of micasaverde, so much of this thread has been over my head.

I am excited about what I thought would be the ease of Rene's plugin, but unfortunately that seems to still be over my head. I downloaded the zip file and uploaded all of the contents to my vera lite under the develop apps>luup files section. I was expecting to see a new app in the My Plugins, but I see nothing. Have I done something wrong or not done enough?

Any help in installing/setting this up would be much appreciated. Thank you in advance!

After you upload all the files, you have to click on "Create device" in the same Apps -> Develop Apps section. In there you only need to set two fields:
Code: [Select]
Description: Harmony Remote (or whatever name you want)
Upnp Device Filename: D_Harmony1.xml

Click on the create device button and reload vera.

After that go into the new device (plugin) and set your harmony's ip, email, password in the Settings tab. I believe you also have to set "Enable HTTP Request Handler" to yes. This will allow you to make the calls Rene mentioned to get activity ids.
Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 10:18:46 am
Hi Huveu,
Thanks. I will look at making this look nicer in the future, maybe some basic device control like Mute/Unmute. Suggestions are welcome.

For now you have to use LUA in your scenes if you want to control mode then 5 activities and the Vera Dashboard will only show the status of those 5. As far as I know you cannot dynamically create the dashboard view as all that is defined in the static json file (D_Harmony1.json). So adding more would mean it is always more. You can add more by digging in the D_Harmony1.json and L_Harmony1.lua files, the others won't need to be changed.

The LUA to use in a scene would be looking like:
luup.call_action("urn:rboer-com:serviceId:Harmony1","StartActivity", "{newActivityID=ActivityID}", PlugDeviceID)

Use http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=list_activities to find the value for ActivityID
In the plugin settings you will find the PlugDeviceID that your Vera uses for the plugin.

Have fun, Rene.

I've added all my activies and renamed the labels for each. I'm also going to be unavailable for the next few days, however, I plan to look at the MultiSwitch plugin's implementation to see how he was able to implement customizable labels.
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 17, 2014, 10:24:28 am
Stellar work Rene!

I spent a little time looking into creating Vera devices dynamically based on the device list returned by the Harmony, and then populating those devices with buttons based on the device commands listed for each device.  That should be much easier with this version.
The WEMO plug-in does something similar with its auto-configuration option. 

Re: the authentication, that's pretty funny! Must be a new development with their server.
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on September 17, 2014, 10:30:23 am
Thanks to everyone for all of their input and hard work. I am very interested in this topic and have been following it from the beginning. I'm pretty new to luau and the more technical workings of micasaverde, so much of this thread has been over my head.

I am excited about what I thought would be the ease of Rene's plugin, but unfortunately that seems to still be over my head. I downloaded the zip file and uploaded all of the contents to my vera lite under the develop apps>luup files section. I was expecting to see a new app in the My Plugins, but I see nothing. Have I done something wrong or not done enough?

Any help in installing/setting this up would be much appreciated. Thank you in advance!

After you upload all the files, you have to click on "Create device" in the same Apps -> Develop Apps section. In there you only need to set two fields:
Code: [Select]
Description: Harmony Remote (or whatever name you want)
Upnp Device Filename: D_Harmony1.xml

Click on the create device button and reload vera.

After that go into the new device (plugin) and set your harmony's ip, email, password in the Settings tab. I believe you also have to set "Enable HTTP Request Handler" to yes. This will allow you to make the calls Rene mentioned to get activity ids.

Thank you so much! Now I've got the plugin and was able to turn off my current activity. now to figure out the rest so I can turn them back on.
Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 10:39:21 am
Stellar work Rene!

I spent a little time looking into creating Vera devices dynamically based on the device list returned by the Harmony, and then populating those devices with buttons based on the device commands listed for each device.  That should be much easier with this version.
The WEMO plug-in does something similar with its auto-configuration option. 

Re: the authentication, that's pretty funny! Must be a new development with their server.

Full auto-configuration would be really nice.
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on September 17, 2014, 10:41:25 am
Hi Huveu,
Thanks. I will look at making this look nicer in the future, maybe some basic device control like Mute/Unmute. Suggestions are welcome.

For now you have to use LUA in your scenes if you want to control mode then 5 activities and the Vera Dashboard will only show the status of those 5. As far as I know you cannot dynamically create the dashboard view as all that is defined in the static json file (D_Harmony1.json). So adding more would mean it is always more. You can add more by digging in the D_Harmony1.json and L_Harmony1.lua files, the others won't need to be changed.

The LUA to use in a scene would be looking like:
luup.call_action("urn:rboer-com:serviceId:Harmony1","StartActivity", "{newActivityID=ActivityID}", PlugDeviceID)

Use http://[veraIP]:3480/data_request?id=lr_Harmony&cmd=list_activities to find the value for ActivityID
In the plugin settings you will find the PlugDeviceID that your Vera uses for the plugin.

Have fun, Rene.

I've added all my activies and renamed the labels for each. I'm also going to be unavailable for the next few days, however, I plan to look at the MultiSwitch plugin's implementation to see how he was able to implement customizable labels.

You've been so helpful already, but could you explain to me how you changed the label names on the activity buttons?
Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 11:13:44 am
You've been so helpful already, but could you explain to me how you changed the label names on the activity buttons?

Open D_Hamony1.json and look for the original names (TV, Radio, VCR...). There are two sections, one for the actual buttons, and another for the notification descriptions.

For the labels in the Settings tab, open J_Harmony.js. Do the same as above.
Title: Re: Logitech harmony ultimate
Post by: DeltaNu1142 on September 17, 2014, 11:30:54 am
I am getting same error msg. as haavard; Any clue ?
I have double-checked : IP address, hub email, hub pass.
I received this error as well. However...  I'm running a Vera 2, and I've had absolutely zero success connecting to IP devices... cameras, AVR, now Harmony. I think I have a bigger problem.
Title: Re: Logitech harmony ultimate
Post by: tomgru on September 17, 2014, 12:33:16 pm
Looks like this just got easier...
http://www.logitech.com/en-us/product/harmony-ultimate-home?wt.ac=HPB1-CTA1-ultimatehome

Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 01:05:54 pm
Looks like this just got easier...
http://www.logitech.com/en-us/product/harmony-ultimate-home?wt.ac=HPB1-CTA1-ultimatehome

That's interesting. However, it doesn't mean that they will open up their API...
Title: Re: Logitech harmony ultimate
Post by: DeltaNu1142 on September 17, 2014, 01:48:07 pm
Looks like this just got easier...
http://www.logitech.com/en-us/product/harmony-ultimate-home?wt.ac=HPB1-CTA1-ultimatehome
Meh... after 10 years or so of using Logitech AV/integration products, I'm suspicious.
Title: Re: Logitech harmony ultimate
Post by: natekinkead on September 17, 2014, 02:48:55 pm
I just wrote an in-depth analysis of the Harmony's new Z-Wave home automation integration.  My question is... is it too little, too late, too much?  Let me know your thoughts... http://kinkeadtech.com/2014/09/logitech-harmony-gets-z-wave-home-automation-late/
Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on September 17, 2014, 02:58:57 pm
I'm going to be really happy if there's a way to integrate this with Vera.

Very disappointed if not.   :(
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 17, 2014, 03:33:29 pm
I'm going to be really happy if there's a way to integrate this with Vera.

Very disappointed if not.   :(

I think taking Rene's work to its natural conclusion and having a fully automated configuration of Harmony Devices on Vera, combined with the use of Vera scenes, provides a more flexible solution than using the Harmony alone.  That said, having another avenue is seldom a bad thing.
Title: Re: Logitech harmony ultimate
Post by: shward1 on September 17, 2014, 03:46:51 pm
The link to vera binary doesn't seem to be working, can someone please attach it to a message?
Title: Re: Logitech harmony ultimate
Post by: flyveleder on September 17, 2014, 04:00:55 pm
It's not needed anymore
Title: Re: Logitech harmony ultimate
Post by: huveu on September 17, 2014, 04:03:32 pm
The link to vera binary doesn't seem to be working, can someone please attach it to a message?

Even though the binary works, you should look at Rene's plugin (http://forum.micasaverde.com/index.php/topic,14928.msg193655.html#msg193655). It should be easier to setup, provides more functionality, and it will probably get updated to support the rest of the features discussed in the last few posts in this thread.
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 17, 2014, 04:19:15 pm
The link to vera binary doesn't seem to be working, can someone please attach it to a message?

Looks like the repository hosting site (code.mios.com) went down for a bit.  It's back up now, so if you really want the binary you can get it from http://code.mios.com/trac/mios_lhh.  However, as others have said, you won't need the binary if you use version 1.3 of Rene's plug-in.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on September 17, 2014, 06:13:28 pm
I get this when I try and turn on one of my activities, not sure what I'm doing wrong (if anything).

Harmony Control : CMD: Failed sending command start_activity to Harmony Hub - errorcode=503, errormessage=RF link lost
Title: Re: Logitech harmony ultimate
Post by: tyfoon on September 18, 2014, 02:36:25 am
It seems they are adding zwave support via an extra hub: Logitech extends Harmony line to control more of your home http://www.engadget.com/2014/09/17/logitech-extends-harmony-to-control-your-home/
Title: Re: Logitech harmony ultimate
Post by: DeltaNu1142 on September 18, 2014, 05:39:24 am
Hopefully it's executed better than when Monster did it. The remote hardware was essentially the same as Logitech. (manufactured by Logitech?)
Title: Re: Logitech harmony ultimate
Post by: oTi@ on September 18, 2014, 08:32:10 am
Meh... after 10 years or so of using Logitech AV/integration products, I'm suspicious.
890 anyone?

http://forums.logitech.com/t5/Harmony-Remotes/Logitech-89X-Z-wave-compatiblity-primary-secondary/m-p/267678#M17701
Title: Re: Logitech harmony ultimate
Post by: jorisdekloris on September 18, 2014, 09:41:43 am
I know, for curtain, i've configured the IP, e-mail and password in the right way but still recieve an error. I've also set the HTTP Request Handler to YES.

Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub

Any ideas?
Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on September 18, 2014, 11:59:48 am
I'm going to be really happy if there's a way to integrate this with Vera.

Very disappointed if not.   :(

I think taking Rene's work to its natural conclusion and having a fully automated configuration of Harmony Devices on Vera, combined with the use of Vera scenes, provides a more flexible solution than using the Harmony alone.  That said, having another avenue is seldom a bad thing.

Yeah you're probably right on that.   :)
Title: Re: Logitech harmony ultimate
Post by: reneboer on September 22, 2014, 12:50:19 pm
Hi All,

Thanks for the suggestions. I will have a look at those other plugins. I did see that multi switch rewrites some files to allow changing button names etc. Smart.

@huveu, thanks for your help to others. Not sure what you mean with 'Full auto configuration' though. Can you eleborate?

I do not have much time this week, but next the misses is out so will have plenty of time then  ;D

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: DeltaNu1142 on September 22, 2014, 12:55:32 pm
Yesterday I remembered why I'd boxed up my Harmony Link 6 months ago. It stopped responding to the app. I connected via USB to my PC and reset it, updated firmware, and still no response from the app. It gets an IP address and I can ping it, but if doesn't do anything else.
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 22, 2014, 03:13:26 pm
@huveu, thanks for your help to others. Not sure what you mean with 'Full auto configuration' though. Can you eleborate?

Hi Rene,

Full auto-configuration would involve having the plug-in automatically create/update/delete virtual child devices based on the configuration retrieved from the Harmony.  Each child device would represent one of the devices listed in the Harmony's configuration. 

In turn, each child device's UI could also be generated/updated dynamically (using a simple layout with a button grid) to reflect the functions enumerated by the Harmony for that device.

I found code to generate devices dynamically (I think from the the Wemo plug-in) a while ago.  I can fish that out and send it your way if you like.
Title: Re: Logitech harmony ultimate
Post by: papreston on September 24, 2014, 12:33:37 pm
Just wanted to say thanks for all the hard work on this.  I got it running under the new UI7. Took some doing and I had to uninstall pleg but it's working well now.  Thanks again!!!
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on September 25, 2014, 11:54:12 am
I am lost, have read many of the threads and keeping seeing reference to mios app but can;t find any app in the mios app store?

Called Logi this am to see if the new home control hub for the ultimate (due to be released in dec) would allow integration with Vera.
They told me it will not

Would love to be able to send commands out of Vera to my harmony ultimate hub to control my av stuff....

Is there an app that I am missing??
Title: Re: Logitech harmony ultimate
Post by: aechelon on September 25, 2014, 12:01:26 pm
I am lost, have read many of the threads and keeping seeing reference to mios app but can;t find any app in the mios app store?

...

Is there an app that I am missing??

The app is not in the store.  Version 1.3 was posted by Rene in Reply #189 of this thread on September 16, 2014.  You'll have to install the app by hand (there are a quite a few forum posts on how to do that.)

The MCV staff created a repository on code.mios.com/trac/mios_lhh for Harmony-related development at my request, but I've never looked into how apps make it to the store. 

It would be nice to get this up there.
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on September 25, 2014, 12:12:59 pm
Thanks very much...

I will have to give it a shot...

I can only imagine the work that went into making this possible and have nothing but thanks and appreciation for the efforts...i do wish it was a simple app folks like myself that are not as savvy on the back end of things though.

Seems to be so many "almost there" options darn it...
Title: Re: Logitech harmony ultimate
Post by: SirMeili on September 25, 2014, 01:17:48 pm
Called Logi this am to see if the new home control hub for the ultimate (due to be released in dec) would allow integration with Vera.
They told me it will not

This boggles my mind. Why would they NOT want to give people advanced functionality. Sure, make it work by itself for the average joe, but allow those that want to tie it into existing systems. This is where companies like Phillips withe Hue API really shine, IMHO.

Would love to be able to send commands out of Vera to my harmony ultimate hub to control my av stuff....

Note that the app (v1.3) does let me know when activities change. However, I have yet to get it to be able to start or change an activity from the Vera. I get an error (posted above) about losing the RF connection or something or other. I'm not 100% sure this app can even do any of that. If it can, then I suppose mine is broken in some way.

In case my post was just overlooked above, here is the error I get when trying to "start" and activity:
Code: [Select]
Harmony Control : CMD: Failed sending command start_activity to Harmony Hub - errorcode=503, errormessage=RF link lost
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on September 25, 2014, 01:30:20 pm
I totally agree...makes no sense at all...

Was a lover of my old 890 PRO, zwave was what really set them apart from all in one remotes...
Hard to believe they are FINALLY offering Zwave again after all these years but no integration.

Maybe someone can hack that new hub and make life easier for us that work so hard to make things so easy in our homes and offices  LOL

Safe to say I am totally addicted to home automation at this point.
Amazon makes it all too easy...
My past time is finding new things to order, projects are stacking up  LOL

Thanks for the info on the app...will probably just go the Global Cache IP2IR iTach route for simplicity...

I really just want my photobeam (gonna install this weekend) for my front gate to trip a remotec zwave switch. That switch will then trigger a scene in Vera to blast ir so my TV will turn on to the correct input to display my gate cam feed on my 65" in the living room.  Something I have always wanted...

Lets see the UPS guy try to leave a notice without pressing the gate call button then  LOL

Wish me luck!!
Title: Re: Logitech harmony ultimate
Post by: reneboer on September 26, 2014, 07:59:32 am
Hi aechelon, huveu,

Ok, see what you mean. That does require some thinking as I do not see a point trying to rebuild the harmony app using the Vera (not so nice) UI. No current IOS or Android app will show these plugins as they only do standard (if there is an exception, please let me know) so you can only access them with a browser anyway (and UI6 responsiveness is crappy on Android at best). I think creating child devices per device is sure an option, just not sure on what to put on those yet looking at the limited UI real-estate or how to have the user specify the commands that should go on those child devices.

At the moment I am working on some minor improvements and the possibility to specify your own button text. Hope to release that as v 1.4 by the end of next week.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: tigra on September 28, 2014, 04:57:13 pm
I'm in the same boat with the poster who asked about Harmony activity triggering the vera scene instead of the opposite. There was follow up discussion about polling the harmony hub and associated response delays but consider this:

1. When multiple iOS clients connect to harmony hub and one of them triggers the activity the other clients reflect the change instantly. I suspect that all clients maintain uninterrupted Jabber session and get push-notifications about the activity transitions. Is it possible to run a daemon on vera acting like smart phone app client for harmony and presenting itself like scene controller on the other end?

2. Harmony hub is capable of controlling various network connected AV units via IP. What if daemon runs on vera simulating the protocol of one of the AV units and mapping the AV commands to scenes. This would allow adding scene calls to harmony activities disguised as AV commands and get instant notifications without maintaining Jabber session.

I'll research this some more but it would be interesting to hear other thoughts in case I miss something.
Title: Re: Logitech harmony ultimate
Post by: huveu on September 29, 2014, 08:18:16 am
I'm in the same boat with the poster who asked about Harmony activity triggering the vera scene instead of the opposite. There was follow up discussion about polling the harmony hub and associated response delays but consider this:

1. When multiple iOS clients connect to harmony hub and one of them triggers the activity the other clients reflect the change instantly. I suspect that all clients maintain uninterrupted Jabber session and get push-notifications about the activity transitions. Is it possible to run a daemon on vera acting like smart phone app client for harmony and presenting itself like scene controller on the other end?

2. Harmony hub is capable of controlling various network connected AV units via IP. What if daemon runs on vera simulating the protocol of one of the AV units and mapping the AV commands to scenes. This would allow adding scene calls to harmony activities disguised as AV commands and get instant notifications without maintaining Jabber session.

I'll research this some more but it would be interesting to hear other thoughts in case I miss something.

Where did you read about #2?
Title: Re: Logitech harmony ultimate
Post by: tigra on September 29, 2014, 10:31:42 am
Where did you read about #2?

To be honest it was the case of confident speculation at the time. Like there's no way they're not doing that... but it turned out to be accurate:
http://forums.logitech.com/t5/Harmony-Hub-Based-Remotes/Harmony-Release-Notes-UPDATED-September-25th/m-p/1042729

Quote
Scan and add Wi-Fi devices in your network
Hub based remote users will now be able to automatically detect certain devices in their Wi-Fi network and add them to their account. Roku, Sonos, Philips hue, and certain smart TV models can be easily added through this mechanism. Users will be guided during the remote setup process
Existing users can perform the scan by using the 'Scan for devices' option from the Devices section

Furthermore I turned my attention to lowest hanging fruit (Philips hue), found published IP protocol details and sniffed local traffic when harmony hub is looking for it. Harmony uses UPnP multicast to detect the local hue hubs and then talks to them via RESTfull/JSON requests. This should be possible to implement right in Vera so it plays as hue hub and maps on/off requests for the hue bulbs into on/off scenes. Challenges are these:

1. have a UPnP multicast listener (address 239.255.255.250 port 1900) running on vera for at least the duration of pairing
2. make Vera's web server service additional URLs at the standard port 80 for hue's SOAP part (/lights /groups /config etc)

In worst case scenario this can be resolved with a cheap Arduino + Ethernet shield.
I'll keep looking into this, but as @aechelon recently learned having family (congrats btw) may affect one's availability for all-night coding binges.
Title: Re: Logitech harmony ultimate
Post by: Bric on October 02, 2014, 12:51:39 pm
Hi Everyone !

I saw that logitech is releasing the new Harmony HOME Hub.

I have some questions to you guys:

1- As i saw, the new Harmony Home Hub basically the same as harmony hub (the older), but with some little enhancements to control Hue, Nest , Smarthings etc... 
It doesn't have a zwave chip inside.
Am i right ?

2- If we get the new Harmony Home Hub, is still possible to use this plugin to work with Vera. Am i right?

3- Logitech said to release this year,  a "Hub extender". Probably this will contain a zwave chip inside.
What do you know about this? Would be easy to make the Harmony hub with extender to send commands to Vera?
Or do you think it would be only made to control smarthings?
In this case i think is possible to do some work , and make it work with micasaverde vera. Am i right?

Tks !
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 02, 2014, 02:26:11 pm
I saw that too and was very happy and wondered what it meant for existing Harmony Ultimate owners like myself...Upon calling Harmony, I was told a separate hub will be available end of year probably that will allow Ultimate owners to have the Zwave capabilities.  When I asked if any of these new products would allow integration with 3rd party items like Vera. I was told NO. :-(  So, as usually, up to the community to prove them wrong ;-)
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 03, 2014, 06:29:25 pm
Hi,

Here is version 1.4 of the plug in. In this version you can set the button names for up to 12 buttons. It also includes icons for a bit of a nicer look. There is also a short installation & user guide.

It runs on my UI6 vera light. I looked at UI7 compatibility as the wiki's have been updated with UI7 info, but I am not knowledgeble on all that to figure it out without having a UI7 unit. I read the JavaScript API has changed dramatically. This v1.4 does use a lot more JavaScript functionality so I have no idea this will work on UI7 or not. I have not yet found a way in there to detect the UI version. So no idea if you need to start over for UI7 or can make a UI5/6+7 version in a single file. Same is true for the Static JSON. I see it changed for UI7, but still have to grasp what that means.

Next to-do would be the child devices for the devices you have on your Harmony Hub. Hope to have that in a week or two. That would again be a nice learning experiance and finding other plug-ins that show great programming. I found plenty out there.

As before, suggestions are more than welcome. Maybe at one point i can apply to have this in the official MCS app library.

Oct 21 update: See http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691 (http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691) for the latest version.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 03, 2014, 10:23:52 pm
Hi Rene,

First...WOW...very excited about the possibility of making this work...thanks so much for the effort...truly!!

I followed your instructions and even learned more about my Vera along the way :-)

My question is this...how long should the :loading activities from Harmony Hub. Please wait..." message appear before Activities are typically displayed? 

I saw the green Harmony Remote Icon flash in the beginning as mentioned.

Mine has been idle for some time now...just making sure I didn't miss a step or something along the way?

Thanks again!!

Title: Re: Logitech harmony ultimate
Post by: reneboer on October 04, 2014, 05:23:34 am
Hi Shawn,

it should take about 5 seconds. It does on mine with 5 activities. Can you try the HTTP command list_activities and see what you get then?

Cheers.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on October 04, 2014, 07:25:41 am
I love the new version and the additions, but I still get this when I try and start an activity from the Vera. Any idea how to get past this?

Code: [Select]
Harmony Control : CMD: Failed sending command start_activity to Harmony Hub - errorcode=503, errormessage=RF link lost
Title: Re: Logitech harmony ultimate
Post by: SirMeili on October 04, 2014, 07:45:48 am
I love the new version and the additions, but I still get this when I try and start an activity from the Vera. Any idea how to get past this?

Code: [Select]
Harmony Control : CMD: Failed sending command start_activity to Harmony Hub - errorcode=503, errormessage=RF link lost

Ok, so this seems to happen when I have my TV set to send commands from the Remote instead of the hub. If I change it to not use the remote to send commands, I do not get this error anymore.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 05, 2014, 06:11:36 am
Hi Shawn,
Not sure why it does not work for you. When opening the Activities Tab the icon should turn blue before green indicating there is communication with the Hub.

I attached an updated LUA file that has debugging on and I fixed a small issue with the issue_device_command as that always showed an error result.

If you can look at the log file output. ssh into your Vera, enter the below commands to look at the log file :
cd /tmp/log/cmh
tail -f L*log | grep armony

and you will see the debug output of the plug-in. Try some commands and see what happens.

Can you control your Hub with the Harmony IOS or Andriod app?

You can send me a private message with the logs if you do not want them on the forum.

Let me know how it works.
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 05, 2014, 05:47:21 pm
Rene,

GREAT NEWS!!
(RE:no activity list showing on Harmony Controller Device)

Not sure what I did or didn't do originally but after I did a full backup to Vera from a few days ago, then started over with your instructions...
All is well my friend!!   :-)

2 Way communication and updating between devices...

FRIGIN AWESOME!!  Had given up on this Harmony Remote /Vera solution and had just received my GC-100 from Amazon this week. Before I was able to configure the GC, I received email about your post. So glad I tried!! This is an amazing app and I would be happy to support your efforts.  We can't count on Logi to work with Vera...it's thanks to folks like you.

I did go back and delete my previous posts as they were more like mud in the post as it was probably something I missed. 

Thanks for your efforts with the app and my mistake...!!!
Title: Re: Logitech harmony ultimate
Post by: gtallan on October 05, 2014, 05:55:12 pm
I discovered the binary here for controlling the hub a few months ago, now I find this plugin which is really really nice - thank you do much for your work on this (both to aechelon and reneboer).

While the hub and smart remote are rather nice, I too am skeptical about Logitech. I suspect they want to try to lock their users in, and thus will not integrate with any other home control hubs which overlap or compete. This is probably also the reason they don't respond to the several requests for generic http control methods.

Furthermore I turned my attention to lowest hanging fruit (Philips hue), found published IP protocol details and sniffed local traffic when harmony hub is looking for it. Harmony uses UPnP multicast to detect the local hue hubs and then talks to them via RESTfull/JSON requests. This should be possible to implement right in Vera so it plays as hue hub and maps on/off requests for the hue bulbs into on/off scenes. Challenges are these:
...

I like the way you're thinking. Getting control in this direction, from Harmony to Vera, would be incredibly useful (it's so irritating that logitech clearly won't enable it themselves). My initial "solution" of sorts was to put an aeon smartswitch on the TV, so vera can detect the load of it being switched on, but it's a pretty rudimentary form of control!

Graham
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 06, 2014, 05:03:29 am
Hi Shawn,
Glad it is working. I did learn that when you install a new plugin you should hit reload at least twice, let your Vera sit for about ten minutes and only then continue.

Making this taught me a lot about making plugins and I will now cleanup a couple of the others I made and then add the child devices on this one. then I'm going to think about UI7 or a second box. Keep you posted.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 06, 2014, 09:36:42 am
Awesome!! Looking forward to it...devices are hungry for attention LOL

Can tell how cool it is to finally see my dream come to life by my own hands (and your help).  Sounds silly but I remember once being at a huge house and the doorbell rang...just then, the tv switched to the cam input and you could see the person at the front door. Always impressed me...

Your Harmony app has allowed me to take that and run with it...

Now, when someone approaches my gate and stops, not just opens and drives through such as a family member would, the gate photo beam is tripped, I am sent a voice alert through Vera Alerts  and the NVR sends me a feed of the gate cam over my mobile apps.

What makes that so much better is your app, now the living room AV rack comes to life when beam is tripped. The TV comes on, goes to the gate Cam for all to see before they even have time to press the call  button. AWESOME!!

Thanks so much!!

Keep up the great work my friend!!
Title: Re: Logitech harmony ultimate
Post by: Bric on October 08, 2014, 07:36:28 pm
Hello !
I have the Harmony hub , and suceeded to make vera control some activities on Harmony hub.

I'm making a change here. The harmony hub will go to my parents house, and i bought the new Harmony Home hub.

Anyone have tested it?
I tryed now to run scp and putty, and the connection is refused.

Anyone have tryed with the new logitech's "home"hub?
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 08, 2014, 08:00:48 pm
Congrats on the new purchase!! Just Harmony Ultimate owner here...do tell, how do you like it...??
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 09, 2014, 09:01:38 am
Hi Bric,
In the new Home Hub they may have made the token process work. In my current plug in I ignore it as it just adds delays.

Can you try to use putty. Use raw mode on port 5222 and then paste the command below:
<iq type="get" id="guest">
  <oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" />
</iq>

You should get this showing the current activity:
<iq/><iq id="89fcbea8-28e4-496c-8fef-f8c8d481ae9b" type='get'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity' errorcode='200' errorstring='OK'><![CDATA[result=-1]]></oa></iq>

Let me know if you get something else.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Bric on October 09, 2014, 11:28:59 am
Congrats on the new purchase!! Just Harmony Ultimate owner here...do tell, how do you like it...??

Thanks!
I have just installed it yesterday. Can't say so much.
The setup process is on smartphone now. Just have to plug at pc to configure the wifi settings.
Some things are strange.
I have 2 bridged routers.  If my smartbphone changes the wifi network it take a while to connect because it tries to connect "by cloud" and after some time it connects normally.
If i am at 3g or 4g happens the same.  but i couldnt connect this way.

I don't know yet if logitech allow connections outside the home network.
They don't say anything about. If someone can help....

I only have vera and aeotec micro modules, so nothing is compatible with this new hub.

Title: Re: Logitech harmony ultimate
Post by: Bric on October 09, 2014, 11:32:42 am
Hi Bric,
In the new Home Hub they may have made the token process work. In my current plug in I ignore it as it just adds delays.

Can you try to use putty. Use raw mode on port 5222 and then paste the command below:
<iq type="get" id="guest">
  <oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" />
</iq>

You should get this showing the current activity:
<iq/><iq id="89fcbea8-28e4-496c-8fef-f8c8d481ae9b" type='get'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity' errorcode='200' errorstring='OK'><![CDATA[result=-1]]></oa></iq>

Let me know if you get something else.

Cheers Rene.

Tks for trying help me !!!
I am very noob at ssh scp etc.. haha
Yerterday i tried the classic way ( as for harmony hub) and i got 2 Sucedeed messages when i tryed to list_activities.
But nothing happened.  Didn't show me any activities.  At least for 1 minute.
Then i had to go sleep and turned pc off.

That's the only thing i could do.

I didn't understood very well your post. 
It seems i will get an error code if i do what you said. is this?

Title: Re: Logitech harmony ultimate
Post by: Bric on October 09, 2014, 05:04:52 pm
Guys,

Very sorry to bother you!
I was making a mistake with the hub ip adress and vera ip.

IT WORKS PERFECT with the new Harmony Home Hub.
It's the same thing.
Suceeded right now to list activities, start activities , and turn off.

As i changed my hub, i need now to change all the codes for activities. 


As i saw, the new hub seems (not sure about that) to allow connection outside home network.
Sometimes i get a message that is connecting by cloud.
May be this is a good new to do much more thing between vera and harmony home hub.
Anyone has any idea about?

Title: Re: Logitech harmony ultimate
Post by: cubs2b23 on October 10, 2014, 12:02:19 pm
Just wanted to get some clarification before I jump into another purchase for my planned home theater room.  I can use this plug-in with the smart control or the home control, correct?  Since we are all using the Vera, is there really any advantages to buying the home control kit?
Title: Re: Logitech harmony ultimate
Post by: Bric on October 11, 2014, 06:39:29 pm
Just wanted to get some clarification before I jump into another purchase for my planned home theater room.  I can use this plug-in with the smart control or the home control, correct?  Since we are all using the Vera, is there really any advantages to buying the home control kit?

I think may be, it will be possible to do some more things in the future, with the home hub.
Logitech says it's possible to acess the hub outside home network now.  i couldn t do this yet.
i changed mine to home hub because the older one went to my parents house. only because of this.  And is the new model, with some more features (actually i don't use them - i don't know in the future), and at same price.
i think is this.
Title: Re: Logitech harmony ultimate
Post by: cubs2b23 on October 11, 2014, 08:21:00 pm
Does anyone know what the dedicated "home automation" buttons can do on the home remote? Like can I get them to run a scene in Vera instead of just a single switch/outlet?
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 18, 2014, 06:21:25 pm
Hi All,

Here is version 1.5 of the Harmony plug-in. On popular demand I added support for child devices that can be used to control your Hamony devices. Next to UI5/6 i also have it working on UI7. There are no UI7 specific files as the js file does work on both (still). I may create a UI7 specific one later. As the JSON files are generated when configuring the buttons I generate them based on the system you are running.

I also put the icon files on a web server so you do not need to copy those to your system anymore and they also show when accessing your Vera remotely.

It was a steep learning curve as I have not done any serious programming for years (decades even).

Use this to control you home (or gate  ;)) or to learn a bit of what I learned on programming on Vera (not that I am any reference by far).

See post http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691 (http://forum.micasaverde.com/index.php/topic,14928.msg198691.html#msg198691) for the latest version.

Have fun.

Cheers Rene

Title: Re: Logitech harmony ultimate
Post by: huveu on October 18, 2014, 11:51:21 pm
This is great!

However, I found two issues:
- Activity buttons are not working
- HTTP Handler is not working

The good news is that I was able to debug the code and fix it. Both were minor issues in L_Harmony.lua.

Line 546 (added tonumber to maxActBtn):
Code: [Select]
if ((actID > 0) and (actID <= tonumber(maxActBtn))) thenLine 1125 (changed from Yes to 1):
Code: [Select]
if (srv == "1") then luup.register_handler ("HTTP_Harmony", "Harmony") end
Title: Re: Logitech harmony ultimate
Post by: huveu on October 19, 2014, 01:23:45 am
You are awesome btw!!!
Title: Re: Logitech harmony ultimate
Post by: huveu on October 19, 2014, 10:05:50 am
Made another small change.

My receiver has some commands that have spaces in the name (i.e. Volume Down, Power Off) that were not working. Using the command label doesn't work in these cases. I changed lines 358, 386, and 402 to use the command itself.

Code: [Select]
json.decode(confg.device[i].controlGroup[j].funct[x].action).command
I'm not sure why the action is not already an object ???. I had to json.decode again to be able to access the command itself.

L_Harmony.lua is attached and contains this change on top of the two from yesterday.
Title: Re: Logitech harmony ultimate
Post by: narkotic on October 19, 2014, 12:25:41 pm
Is there any possibility of this being compiled for DOS?
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 20, 2014, 05:16:30 am
Hi huveu,
Thanks for working out some of the quirks. there is always something you miss your self. I will update the package with your fixes. The actID mapping I realized later, that can now be removed completely. I'll do that tonight.

narcotic, this is all Vera specific. There is an other utility by aechelon you can find here https://sourceforge.net/projects/harmonyhubcontrol/files/ (https://sourceforge.net/projects/harmonyhubcontrol/files/) that may help you.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: narkotic on October 20, 2014, 12:14:48 pm
Thanks for the response, I feared that and honestly surprised I cannot find anyone online that has already compiled this one! I'm not a software developer (well it's been years anyway) so I've asked a dev friend if he can compile it for me.
Title: Re: Logitech harmony ultimate
Post by: aechelon on October 20, 2014, 06:18:41 pm
Rene,

Let me start with an emphatic: "Amazing Work!"

I have been keeping up with the thread from a distance as I had been too swamped to try the plugin until last night. 

The instructions are excellent.  I have installed the plug-in and it seems to be communicating perfectly with the Harmony.  It has listed my activities, added devices, and listed button information for the devices.

I have configured buttons for both the activities and devices through the various settings tabs, however for some reason I'm not seeing the buttons show up even after refreshing my browser, reloading the UI, and rebooting the Vera. 

I'm still on UI5 and I have a suspicion that maybe the issue.

Any words of wisdom?
Also, have you looked into getting the plug-in uploaded to the apps portal?

Keep up the great work!
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 21, 2014, 06:24:16 am
Hi All,

With help of huveu (thanks a million, aren't these cummunities great!) I managed to fix the problems with commands that have a space in the label. Both the I_Harmony.lua and J_Harmony.js are updated for this. The attached 1.5.1 version has all the right files, remove the device created with an older version first.

Latest news (Oct 23) is that several have it running on UI5 (i have it running on UI6 & UI7), but it does seem you have to start all over with the 1.5.1 version. I will see if I can avoid that for future versions. I am looking to get it on the app market, but I will probably make a true UI7 version and keep a UI5/6 version too. Note that on UI7 it does not save the IP address using the settings, you have to go into the advanced settings for that. Looking into that too, but that is a one time thing only.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: SirMeili on October 21, 2014, 09:00:07 am
I've been running this on my Vera3 which currently only has plugins running (I'm preparing to slowly move things over from the veraLite). The vera lite runs an older version (I think 1.3) and I don't get this problem.

Every morning I awake to this:

Code: [Select]
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub

A simple "reload" fixes the issue, but it won't report any changes on the harmony until this restart. I'm thinking that for some reason it is failing once and then not trying again. Could there be "failure" retry if it fails? Maybe fail 5 times at the regular poll rate (1 minute for me), then try again every 30 minutes or so?

Edit: I also cannot view the "settings", "Activites" or "Devices" tabs. I just get the loading bar with the loading text and nothing ever comes up. I  believe this is new as of 1.5.

I am not home, but when I get home, I will completely remove the plugin and all it's files and try a reinstall.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 21, 2014, 09:53:33 am
Hi SirMeili,

It shows that error when opening the IP connection to the Harmony Hub fails. I will keep mine running for some days without reloading and see if I get the same issue. It will try to connect again on the next poll loop, so if it is just a network glitch I would expect it to clear automatically. Not sure if the Vera runs out of resources or so.

I'll keep you posted.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 21, 2014, 10:47:00 am
Hi Rene,

Thanks so much for keeping this going and improving on an already great device!!  Question, I was going to go ahead with the new version...prior to doing so, should I be removing any of the older files or anything of that nature...?

Just wanted to check before moving forward ;-)

Title: Re: Logitech harmony ultimate
Post by: reneboer on October 21, 2014, 03:33:09 pm
Hi Shawn (in nice and warm Florida? better than cold and stormy Holland!)

It is best to delete the current device that was created with the old files, upload the new files and create the device again.

I did that on both systems and they are (still) running without a problem.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on October 21, 2014, 04:31:55 pm
Indeed my friend...not bad at all here...for a change!!
We are about to be mosquito free (winter)...they are vicious in FL!!!

Will just deleting the device remove the files as well or should I go in manually and remove?

Wishing you warm weather and great health!!
Title: Re: Logitech harmony ultimate
Post by: Bric on October 21, 2014, 10:14:53 pm
Hi!

Just to share some news of Harmony Home Hub , and ask a question.
This new hub can accept remote connection.
You can start activities, and make anything that you do inside your home, even being outside.

The commands are a bit slower than when you are at Home Wifi, but can be done.
One thing that i couldnt do before (even with harmonyhub plugin for vera), is to turn activity on (this was possible).
But if i wanted to record a movie or anything in the channel 570 , for example, the harmony plugin by vera wasn t capable to send quikcly enough the command 5 , command 7 , and command 0 for tv decoder.
In my case , always the decoder went to channel 5 , then channel 7 , and finnaly channel 0.
all because of delay in sending commands.
Now it's possible to do that directly on Harmony Home hub acess. But, still works better if you have the channel at favorites, because
there is a delay too, sending separetely the commands 5 , 7  , 0.
Some tries i did failed.


Now, how can i acess a favorite channel with The harmony plugin and vera ?
Wich command i have to send?
 
Title: Re: Logitech harmony ultimate
Post by: Camiel on October 22, 2014, 03:20:00 am
Hi,

I?m experiencing the same issues as SirMeili, the plugin is running great but after a while I see:

Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub

I?m running it on UI5 .622 (Vera-Lite).

@Reneboer, thanks for the great plugin!!
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 22, 2014, 05:00:20 am
Hi,

If you have some issues can you try to delete the device and then delete all D_Harmony*.json and .xml files, re-upload all files from the 1.5.1 version and start from scratch? Please let me know how that works out on a UI5 Vera. If that does the trick I may need to look how the D_Harmony*.xml files get created when updating the buttons after a software change.

On UI6 or UI7 I am not seeing the error message after two days. But my UI7 unit is not running much more yet and my UI6 unit I reload once a week using a scene to keep it running well.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: mpalensh on October 24, 2014, 12:23:18 am
I just want to say.... thank you so much to everyone who's put in the time to make this work!  I've installed the devices for three harmony hubs, and it's working great!   ;D
Title: Re: Logitech harmony ultimate
Post by: Peter on October 24, 2014, 06:23:19 am

First I have to say, "Great plugin Rene Boer"
I only have the latest version installed last week, end so far I have no problems.

I saw  the code below in this post, I still have to use all the code to check the last status and to carry out a command?

Or is there with this plugin a simple way to check te actual activity en run a scene?

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.

Title: Re: Logitech harmony ultimate
Post by: huveu on October 24, 2014, 09:27:17 am

First I have to say, "Great plugin Rene Boer"
I only have the latest version installed last week, end so far I have no problems.

I saw  the code below in this post, I still have to use all the code to check the last status and to carry out a command?

Or is there with this plugin a simple way to check te actual activity en run a scene?

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.

The code from my old post is for aechelon's binary file. A similar implementation could be necessary depending on what you are trying to achieve.

If you want to get the current scene and not rely on the polling the plugin is already doing, then you will need the code. If not, you can just check the plugin's stored current activity and do whatever you need. This can be done in a normal scene, or in a PLEG condition if you are already using that.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 24, 2014, 10:22:57 am
First I have to say; you are all too kind  ;D

You can use the Harmony Control main device to trigger a scene in the standard way. You add the trigger to the scene for the Harmony Control device and select Harmony Activity is changing to you can select the activity. When that activity is then chosen on your Vera interface it will trigger the event.

If you set the Current Activity poll Interval to lets say 30 seconds, your Vera will look for a change in the activity on your hub every 30 seconds, and if that matches the activity it will also run the scene. So you if a normal scene can do want you want to on an activity change, you do not need any coding.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Peter on October 24, 2014, 12:18:10 pm
Thank you Rene an huvea,

But what i wanted to do, is something like this.

code:

harmonyOutput = luup.inet.wget("http://192.168.1.1:3480/data_request?id=lr_Harmony&cmd=get_current_activity_id")

currentActivity = string.match(harmonyOutput, "currentactivityid : 1234567")

-- Check if current activity is 12345567 (watch tv)
if currentActivity == "currentactivityid : 2345567" then

   -- Start desired activity
   luup.inet.wget("https://www.runhttpwgetcommand")
else

-- Start desired activity2
   luup.inet.wget("https://www.runhttpwgetcommand2")

end
Title: Re: Logitech harmony ultimate
Post by: huveu on October 24, 2014, 07:19:35 pm
Peter, what you want is something like this:

Code: [Select]
local deviceId = 77
local currentActivity = luup.variable_get("urn:rboer-com:serviceId:Harmony1", "CurrentActivityID", deviceId)

if currentActivity == "10201895" then
local lul_settings = {}
lul_settings["newActivityID"] = 10312256
luup.call_action("urn:rboer-com:serviceId:Harmony1", "StartActivity", lul_settings, deviceId)
end

return true

There is no need to use the http handler as everything is available directly from the plugin. That said, I'm not sure in which scenarios you would really need this instead of what Rene suggested.
Title: Re: Logitech harmony ultimate
Post by: Peter on October 25, 2014, 05:22:30 am
Thanks Huveu,

For your time en help.
I had it figured out myself in the meantime. I used  luatest (also a very good plugin).
This help a starter like me with lua a lot further.

Peter
Title: Re: Logitech harmony ultimate
Post by: Peter on October 25, 2014, 11:39:11 am
I have now almost the same problem, with a fres install with the last version.
So the problem is not old install files. I use also UI5.

"Harmony Control : CMD: Failed sending command get_config to Harmony Hub"

I found the probleem the mac-adress and the ip-adress have changed to that of my nas spontaneously at the advanced tab.

How is this possible?

I've been running this on my Vera3 which currently only has plugins running (I'm preparing to slowly move things over from the veraLite). The vera lite runs an older version (I think 1.3) and I don't get this problem.

Every morning I awake to this:

Code: [Select]
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub

A simple "reload" fixes the issue, but it won't report any changes on the harmony until this restart. I'm thinking that for some reason it is failing once and then not trying again. Could there be "failure" retry if it fails? Maybe fail 5 times at the regular poll rate (1 minute for me), then try again every 30 minutes or so?

Edit: I also cannot view the "settings", "Activites" or "Devices" tabs. I just get the loading bar with the loading text and nothing ever comes up. I  believe this is new as of 1.5.

I am not home, but when I get home, I will completely remove the plugin and all it's files and try a reinstall.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 27, 2014, 06:09:12 am
Hi Peter,

I have no idea how the IP address would change. It is only set via the Settings tab. Maybe on UI5 it sometimes pulls the wrong one from another device when opening the Settings tab. I have not experienced this my self and I do have about 8 other IP devices my Vera communicates with.

Let me know if that happens again and I'll research some more.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on October 30, 2014, 10:13:43 am
I've been running this on my Vera3 which currently only has plugins running (I'm preparing to slowly move things over from the veraLite). The vera lite runs an older version (I think 1.3) and I don't get this problem.

Every morning I awake to this:

Code: [Select]
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub

A simple "reload" fixes the issue, but it won't report any changes on the harmony until this restart. I'm thinking that for some reason it is failing once and then not trying again. Could there be "failure" retry if it fails? Maybe fail 5 times at the regular poll rate (1 minute for me), then try again every 30 minutes or so?

Edit: I also cannot view the "settings", "Activites" or "Devices" tabs. I just get the loading bar with the loading text and nothing ever comes up. I  believe this is new as of 1.5.

I am not home, but when I get home, I will completely remove the plugin and all it's files and try a reinstall.

I went ahead and deleted all the files from the harmony plugin on my veraLite (it was the first version, 1.3 I think) then installed all the new files and created the new plugin. I now get this error daily on that Vera as well. As with my other vera, a "reload" of the Luup engine fixes it.
Title: Re: Logitech harmony ultimate
Post by: maguerrero on October 30, 2014, 05:16:00 pm
Hellow to everybody. Newbie with vera plug in, but trying to learn with all the great post in this forum.
Just ordered a Harmony Home Hub and would like to know if plug in for Harmony Ultimate will work with it.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 31, 2014, 06:31:48 am
Hi SirMeili,

Can you look at the IP address & MAC when it is in error to see if you have the same issue as Peter did (i.e. do not reload first)? I am not able to reproduce this, so no idea why it fails opening a socket connection to you Hub. If more UI5 users would have the issue I think more would tell us (I would hope). Also not sure if it is because of some other plugin.

Hi maguerrero, I did see some earlier posts from people that used this with the Home Hub.


BTW; I am nearly done with a new version that has proper UI7 look and feel and uses the api as recommended. Not simple to do as there are hardly any examples and the documentation is very limited and not clear at all.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on October 31, 2014, 10:32:12 am
Hi SirMeili,

Can you look at the IP address & MAC when it is in error to see if you have the same issue as Peter did (i.e. do not reload first)? I am not able to reproduce this, so no idea why it fails opening a socket connection to you Hub. If more UI5 users would have the issue I think more would tell us (I would hope). Also not sure if it is because of some other plugin.

Hi maguerrero, I did see some earlier posts from people that used this with the Home Hub.


BTW; I am nearly done with a new version that has proper UI7 look and feel and uses the api as recommended. Not simple to do as there are hardly any examples and the documentation is very limited and not clear at all.

Cheers Rene.

Actually, for some reason today, it did not do it. Sometimes if my Vera restarts due to another issue before I wake up (rare), it would fix it (as a restart fixes it), but this time no other restarts besides the normal nightly heal.

For me, I don't mind that it does fail, but it would be nice if it retried a few times (maybe 10, 15 30 and 60 minutes later?). I've had other plugin's do similar things, but once the devs add in it retrying, it was all good.
Title: Re: Logitech harmony ultimate
Post by: tomgru on November 01, 2014, 02:18:54 pm
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks
Title: Re: Logitech harmony ultimate
Post by: huveu on November 01, 2014, 04:10:16 pm
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks

Correct
Title: Re: Logitech harmony ultimate
Post by: tomgru on November 01, 2014, 04:19:49 pm
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks

Correct
Awesome... fun new toy!
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 03, 2014, 01:05:01 pm
Hi SirMeili,

Can you look at the IP address & MAC when it is in error to see if you have the same issue as Peter did (i.e. do not reload first)? I am not able to reproduce this, so no idea why it fails opening a socket connection to you Hub. If more UI5 users would have the issue I think more would tell us (I would hope). Also not sure if it is because of some other plugin.

Hi maguerrero, I did see some earlier posts from people that used this with the Home Hub.


BTW; I am nearly done with a new version that has proper UI7 look and feel and uses the api as recommended. Not simple to do as there are hardly any examples and the documentation is very limited and not clear at all.

Cheers Rene.

Actually, for some reason today, it did not do it. Sometimes if my Vera restarts due to another issue before I wake up (rare), it would fix it (as a restart fixes it), but this time no other restarts besides the normal nightly heal.

For me, I don't mind that it does fail, but it would be nice if it retried a few times (maybe 10, 15 30 and 60 minutes later?). I've had other plugin's do similar things, but once the devs add in it retrying, it was all good.

And, it did it again today and once again a restart of the LUUP engine fixes it. Could it be because I have 2 Vera's that are trying to connect to it?

Either way, I think adding a "retry" feature if it fails would be nice. I think once it fails, that is it and you have to restart the LUUP engine to get it to work.

Edit: I should note that I just checked my other Vera and it had NOT failed today. So maybe it is running two of them. I need to swap over to the Vera3 anyways, so I may do that this week while I'm on vacation after I put the halloween decorations up.
Title: Re: Logitech harmony ultimate
Post by: huveu on November 03, 2014, 02:51:10 pm
SirMeili, did you look at the IP Address field when you are getting the error like Rene suggested?

I know you replied to his post, however, you didn't mention anything about that.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 03, 2014, 10:35:03 pm
SirMeili, did you look at the IP Address field when you are getting the error like Rene suggested?

I know you replied to his post, however, you didn't mention anything about that.
I seem to remember it being correct when I did check it but that could have been after a restart. I will make sure to check it next time it happens and report back.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 04, 2014, 05:58:39 pm
Hi SirMeili,

I have it running on two VeraLite's (one UI6 other UI7) for over a week now no problems. One polls each 60 seconds, the other each 30 secs.

On the retry, the polling is a scheduled activity that will always keep running unless you set the poll interval to zero. Hence it will always retry the next poll if one failed. I just looked at the code again and I cannot find a situation where that would not happen unless the code crashes. Not sure if you can look at the Vera log and see what happens.

Cheers Rene.

PS: new UI7 version is ready, just figuring out a way so I can have it support an upgrade from v1.5 without starting from scratch. this version will go on the app market, if they accept it.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 05, 2014, 06:09:06 pm
It happened again, this time I know what caused the network interuption (I had to restart my network equipment). I noticed later that the error message was on the vera. I haven't been home to try and reproduce it, but before restarting I checked the IP and mac address and they were correct.

I will say that the time between the network outage and me checking the vera was a while. Perhaps the plugin still works, but the message never goes away. I will say that after the restart, it checked and selected the correct activity that was active. If I can reproduce, I will do so and try and monitor the logs as I think that at least on 1.5.622, once it fails, it fails and never checks again.
Title: Re: Logitech harmony ultimate
Post by: hmspain on November 05, 2014, 10:39:02 pm
Hi All,

With help of huveu (thanks a million, aren't these cummunities great!) I managed to fix the problems with commands that have a space in the label. Both the I_Harmony.lua and J_Harmony.js are updated for this. The attached 1.5.1 version has all the right files, remove the device created with an older version first.

Latest news (Oct 23) is that several have it running on UI5 (i have it running on UI6 & UI7), but it does seem you have to start all over with the 1.5.1 version. I will see if I can avoid that for future versions. I am looking to get it on the app market, but I will probably make a true UI7 version and keep a UI5/6 version too. Note that on UI7 it does not save the IP address using the settings, you have to go into the advanced settings for that. Looking into that too, but that is a one time thing only.

Cheers Rene

You indicate (above) you have your Harmony app running on UI7, but I'm stuck entering the username and password.  They don't seem to "take".  I enter the values via Settings (no luck).  I tried entering the values via Advanced (no luck).  Each time I go back, the values don't show.

How did you get it to work?  I just want to fire off a few scenes via my Harmony Smart Hub and remote.

Thank you!
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 06, 2014, 08:28:34 am
Hi All,

With help of huveu (thanks a million, aren't these cummunities great!) I managed to fix the problems with commands that have a space in the label. Both the I_Harmony.lua and J_Harmony.js are updated for this. The attached 1.5.1 version has all the right files, remove the device created with an older version first.

Latest news (Oct 23) is that several have it running on UI5 (i have it running on UI6 & UI7), but it does seem you have to start all over with the 1.5.1 version. I will see if I can avoid that for future versions. I am looking to get it on the app market, but I will probably make a true UI7 version and keep a UI5/6 version too. Note that on UI7 it does not save the IP address using the settings, you have to go into the advanced settings for that. Looking into that too, but that is a one time thing only.

Cheers Rene

You indicate (above) you have your Harmony app running on UI7, but I'm stuck entering the username and password.  They don't seem to "take".  I enter the values via Settings (no luck).  I tried entering the values via Advanced (no luck).  Each time I go back, the values don't show.

How did you get it to work?  I just want to fire off a few scenes via my Harmony Smart Hub and remote.

Thank you!

Once again this morning it was not working. The IP and the Mac address are correct. I figured I would try and load the "list activities" by clicking on the activities to see what would happen and it just sits there until I eventually get "500 server error" This tells me that after the first error, the plugin just stops working on 1.5.622 and is unrecoverable until a Luup restart. I don't have time to dig into the logs, but as I said i will try and do so when I am home and can hopefully reproduce the issue.
Title: Re: Logitech harmony ultimate
Post by: hmspain on November 06, 2014, 10:25:58 am
You indicate (above) you have your Harmony app running on UI7, but I'm stuck entering the username and password.  They don't seem to "take".  I enter the values via Settings (no luck).  I tried entering the values via Advanced (no luck).  Each time I go back, the values don't show.

How did you get it to work?  I just want to fire off a few scenes via my Harmony Smart Hub and remote.

Thank you!

This morning find the username/password fields filled out.  OK, on to the next step.  My Harmony (Smart Hub?) has four color buttons that can be programmed any way you like via MyHarmony.  Can I use this app to fire off a scene in Vera with each of these buttons?
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 06, 2014, 11:33:35 am
Hi SirMeili,

I finally managed to reproduce the issue. It will be fixed in the next version. Doing some exstensive testing on that right now. I found that there will be a code error when it cannot connect and that is why it does not recover.

Hmspain, when you install new plug-ins on Vera you always have to reload and refresh your browser after that, wait about five minutes and refresh your browser again before you take the next step.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: hmspain on November 06, 2014, 11:37:01 am
Hmspain, when you install new plug-ins on Vera you always have to reload and refresh your browser after that, wait about five minutes and refresh your browser again before you take the next step.

Wow :-)  Thanks, I will try to remember!  Next, we will all have to learn the special handshake... hehe.
Title: Re: Logitech harmony ultimate
Post by: fire708 on November 11, 2014, 01:37:08 pm
After reading this entire thread I'm really considering the harmony. I need a remote that can take the place of my HA07 that lost a battle with gravity. If I can find one that will give me AV control, I'm a happy guy.

I'm a little confused about what the remote can do.  A couple of posts say the harmony can't send a command to vera but what about to a module?
All I'm looking for is a remote I cam use to turn on/off 6 or so different lights. Don't need to change scenes, just want simple on/off. Can the harmony home or home ultimate do this as a secondary controller? I'm not at the point of wanting vera to control my av yet.
Im defintaly a noob so I need fairly easy to at least find out how to make it happen.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on November 11, 2014, 10:22:27 pm
Hi Reneboer,

In have installed your plugin and work fine, but I also have created a child device called SharpTV where I control a TV, let's say the min interface is for Activities but the childs are single Items I want to control seperatly-

What would be the Luup code to control the devices?


Thank you.
Title: Re: Logitech harmony ultimate
Post by: tomgru on November 11, 2014, 11:10:18 pm
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks

Correct
Awesome... fun new toy!

OK... I set this up today, and the plugin installed no problem! 

but admittedly, I can't figure out hot to have a button on the remote either control a light/device, or a scene?  I tried to create a new activity in the MyHarmony software, but it wouldn't let me do it without selecting a device (e.g. TV), which didn't make sense. 

so what am I doing wrong?
Title: Re: Logitech harmony ultimate
Post by: hmspain on November 12, 2014, 04:47:03 am
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks

Correct
Awesome... fun new toy!

OK... I set this up today, and the plugin installed no problem! 

but admittedly, I can't figure out hot to have a button on the remote either control a light/device, or a scene?  I tried to create a new activity in the MyHarmony software, but it wouldn't let me do it without selecting a device (e.g. TV), which didn't make sense. 

so what am I doing wrong?

I think you will find the plugin can issue Harmony commands but not activate scenes like you expected.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 12, 2014, 05:44:02 am
Hi Areb65,

I see that the user guide is missing something. I hope to post the 1.6 version tonight and update the user guide.

To start a device command you have to use the luup.call_action command (see wiki for details) with the command IssueDeviceCommand. The first parameter is the device ID as the Harmony knows it and the second is the command.

To get those details you can use the http commands documented in the user guide to get all those details on your devices. You can look at the Advanced Settings. There you see the DeviceID and the CommandX values used for the buttons that also issue the commands to the Hub for that Device.

Cheers Rene.

Title: Re: Logitech harmony ultimate
Post by: tomgru on November 12, 2014, 10:20:55 am
This is probably a dumb question, but I have one of these coming to replace a bad 900.

When I get the new unit, I assume i set it up with all my AV devices using their software, like normal. Meaning (e.g.), "watch TV" turns on TV and sets correct input, turns on receiver and turns on Blueray.

Then I setup the plugin to bring this capability into Vera?  as well as add support for zwave devices and scenes?

Thanks

Correct
Awesome... fun new toy!

OK... I set this up today, and the plugin installed no problem! 

but admittedly, I can't figure out hot to have a button on the remote either control a light/device, or a scene?  I tried to create a new activity in the MyHarmony software, but it wouldn't let me do it without selecting a device (e.g. TV), which didn't make sense. 

so what am I doing wrong?

I think you will find the plugin can issue Harmony commands but not activate scenes like you expected.

Wow,... was I confused 😉

Well, apparently Logitech is supposed to add z wave to this, so that will make it even more interesting!
Title: Re: Logitech harmony ultimate
Post by: tomgru on November 12, 2014, 03:24:47 pm
Thinking aloud here while at work... i wonder if there is a way to fake this out, in terms of using the remote to run lighting devices/scenes, at least until Logitech adds the Zwave support.

I wonder if in the MyHarmony software, you could add a new activity with an associated device that doesn't actually exist.  Pick anything, like another receiver.  you could then create a series of buttons that are mapped to the ("fake") receiver functions, like on and off.. but rename them to something like "Lamp On" and "Lamp Off" (for example).

As harmony only sends IR commands.. it really has no way of knowing there is nothing their on the receiving end. 

Then... through this plugin and PLEG, you create a conditional scene execution.  If (fake) receiver is turned on, then also turn lamp on, etc.

Would this work?
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 12, 2014, 03:50:52 pm
Thinking aloud here while at work... i wonder if there is a way to fake this out, in terms of using the remote to run lighting devices/scenes, at least until Logitech adds the Zwave support.

I wonder if in the MyHarmony software, you could add a new activity with an associated device that doesn't actually exist.  Pick anything, like another receiver.  you could then create a series of buttons that are mapped to the ("fake") receiver functions, like on and off.. but rename them to something like "Lamp On" and "Lamp Off" (for example).

As harmony only sends IR commands.. it really has no way of knowing there is nothing their on the receiving end. 

Then... through this plugin and PLEG, you create a conditional scene execution.  If (fake) receiver is turned on, then also turn lamp on, etc.

Would this work?

Based on my experience with this plugin and the device I created for my reciever, the devices created by this receiver don't actually track the power state of a device. You can send commands, but as far as I know, the harmony hub does not send out updates that a certain action has been done (For instance vol up or vol. down).

It does track which activity it currently in use, but not what buttons are pressed for any of the devices. Perhaps when they add z-wave support for existing hubs (I believe via another "hub"), you can add it as a secondary controller in the z-wave network? At least that is my hope as I certainly don't think the Harmony is up to being my primary z-wave controller.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 12, 2014, 04:50:46 pm
Hi All,

Here is version 1.6 of the plug-in. An issue is fixed where the plugin would crash if the network connectivity to the hub was lost and you tried to send a command in that time.(SirMeili your issues should be fixed wiht this)

An other change is that the devices you remove from the Devices to control list the device will be deleted from your vera pannel and the corresponding files are deleted so it shows correctly when you decide to add the device back in the Devices to Control list.

You can install this version over the existing 1.5 plug-in (did not test with older versions, but should work). It will automatically rewrite the JSON files for this new version and you may see some extra reloads. Just get a coffie, don't forget to refresh your browser and then start playing with it again.

I spend quite a bit of time on proper UI7 support, and when I thought I had it nailed the new version came out that broke it  ::). O well, it seems the API is still in flux.

On some of the questions above. The Harmony hub only keeps track of the current activity ID, so can this plug-in if you set the Current Acitivity Poll Interval. If you control a device directly, the Hub does not keep track of that. As this plug-in is only as smart as the Hub, it functions identical to that. Something I can look at is that the last command button you click shows as selected for some seconds so you get some more visual feedback. However, as you can then change things via your remote as well it does not mean that this last command is still active. The same happens if you would use your standard remotes and the Harmony.

Next week I will put this forward to be added to the app market.

I won't be online for the next few days. Need to party!

Cheers Rene.

1 Dec update. Removed attacted file see http://forum.micasaverde.com/index.php/topic,14928.msg205029.html#msg205029 (http://forum.micasaverde.com/index.php/topic,14928.msg205029.html#msg205029) for latest version.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 12, 2014, 05:07:26 pm
Thanks Rene!

It had a failure after initially uploading the files, but a restart fixed it. I also restarted it once more just to be sure and of course refreshed my browser. I will keep an eye on it, but I trust you if you said you fixed it. This is going to be awesome!
Title: Re: Logitech harmony ultimate
Post by: Areb65 on November 12, 2014, 09:06:59 pm
Thanks Rene!

Same here, had a first failure but the restart fixed it.

Thank you for the Documentation update, that helped and work like a charm.

It is great !!!

Thank you.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 13, 2014, 08:43:18 pm
Rene,

I came here to tell you that it failed again!!!! BUT!! For some reason my wireless AP went out and nothing was connected (My computer is hardwired as is the Vera). Once I got the wireless backup it connected fine.

This is why I really wish that these companies would put Ethernet ports on these devices instead of depending solely one wireless for communications.
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 14, 2014, 01:49:54 pm
Hi, Ihave the plugin running in my vera lite UI5 very well. Couple of issue. I can't  see harmony in my vera mobile app. When I am in vera lite and hit channel increase or decrease it jump two or three channel at the same time. It happen with my sonicview SAT receiver. Let me know if are there any new about this.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 17, 2014, 11:21:44 am
Hi SirMeili,
So did the connection error clear after the network connection between your Vera and Harmony Hub got reestablished without reloading the vera? I tried unplugging the Hub and all started to work without a Vera reload after plugging it back in again.

maguerrero, the Vera app does not support any non-standard devices. I whish I had any influence on that but I do not. I have been looking for another Andriod app that does better, most do a bit as they add popular plug-ins so maybe I can get on some of their good list one day. If anyone knows of an app that handles non-standard devices please let me know. For the other issue, have you tried with the Harmony app? I have read similar problems in the Harmony forums before and I'd like to be sure it is the plug-in before trying to make a workaround for an issue I cannot recreate on my own setup.

Cheers.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 17, 2014, 11:50:08 am
Hi SirMeili,
So did the connection error clear after the network connection between your Vera and Harmony Hub got reestablished without reloading the vera? I tried unplugging the Hub and all started to work without a Vera reload after plugging it back in again.


To be fair, I restarted vera multiple times getting the same error each time (as I assumed it was that issue). Both the Vera and my laptop dock are hardwired so I didn't think about the wireless being all messed up (doesn't happen all that often). HOwever, once I restarted the wifi AP, the connection did seem to fix itself, but to be honest, I don't remember if I actually restarted the Vera one more time. That said, it has been up ever sense, so even if it does fail I don't know about it because when I check it's up to date with the current activity.
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 18, 2014, 12:13:57 am

maguerrero, the Vera app does not support any non-standard devices. I whish I had any influence on that but I do not. I have been looking for another Andriod app that does better, most do a bit as they add popular plug-ins so maybe I can get on some of their good list one day. If anyone knows of an app that handles non-standard devices please let me know. For the other issue, have you tried with the Harmony app? I have read similar problems in the Harmony forums before and I'd like to be sure it is the plug-in before trying to make a workaround for an issue I cannot recreate on my own setup.

Cheers.

Thanks you for your help. I checked it with Harmony app and work fine. Probably some issue with the plug-ins.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 19, 2014, 05:22:37 am
Hi SirMeili, Let me know how the connection problems go.

Hi maguerrero, the vera should trigger an action only once when a button is clicked once, so still bit puzzled what the source of your issue is. Can you look in the vera log files and see if IssueDeviceCommand shows multiple times when clicking o button once or not?

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 20, 2014, 09:42:15 pm

Hi maguerrero, the vera should trigger an action only once when a button is clicked once, so still bit puzzled what the source of your issue is. Can you look in the vera log files and see if IssueDeviceCommand shows multiple times when clicking o button once or not?

Cheers Rene.

Hi Rene, I checked the log but it is empty.
Title: Re: Logitech harmony ultimate
Post by: skr25 on November 21, 2014, 08:18:07 pm
I am facing issues in triggering scenes when "Harmony activity is changing to" to a specific activity. The trigger does not get activated when activity changes. Harmony 1.6 version is used.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 21, 2014, 08:35:09 pm
I am facing issues in triggering scenes when "Harmony activity is changing to" to a specific activity. The trigger does not get activated when activity changes. Harmony 1.6 version is used.

It "polls" the Harmony, are you waiting long enough? How long do you have the "Current Activity Poll Interval" set to in the settings of the plugin? If you have this set to '0' (zero), will never update. I have mine set to 60, so anywhere between 0 and 60 seconds after changing an activity will the plugin actually update.

Edit: I should have asked as well (and sorry for making the assumption before that it didn't). Does the UI properly change when you change the activity?
Title: Re: Logitech harmony ultimate
Post by: skr25 on November 21, 2014, 09:41:46 pm
I am on UI5. I have set poll interval to 60 seconds. It does change the buttons on the plugin when activity changes but no trigger fires.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 22, 2014, 05:15:57 am
Hi,

I did find that on some commands like channel up/down it does seem to do it twice. I'll have to build some low level logging to figure out what is going on.

i'll also double check the triggers. I have not looked at that for some time as it did work, but maybe something broke.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: SirMeili on November 23, 2014, 10:03:52 pm
Back story (just skip this if you want to know my ultimate issue):
I just noticed something. I just made sure that the kids rooms are all 100% z-wave/insteon and I have programmed the 'Off'  button "fast off" command to turn EVERYTHING off in the rooms. The TVs are on z-wave switches and I am using that for now to restrict when they can watch, so I am going to add that those outlets be turned off and 30 seconds later be turned on (when they do the fast off). However, if they are playing something on the Roku, it will just keep going (especially Hulu), so I wanted to just create the Devices and then the "home" button. I added all 3 of our Rokus to the Harmony (I had the space) and everything works fine!

Problem:

Why is it I can't change the room for the child devices? Does it have to do with the option to create "embedded" devices? In the PDF it says that is used to create them in the same room, but now that they are created, I can't move them out. Is this a bug, or intended?

Note: if I go in and select "No" (without changing anything else). It seems to allow me to change  rooms. So, at least there is a workaround.

Edit: I spoke too soon.. it moved the device back after I restarted, but it took a bit longer for it to do so (it was normally already moved after hitting the "Continue" button after a reload)
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 24, 2014, 04:25:30 am
Hi SirMeili,

The create embedded flag should only affect the room when child devices are created. If one thing I have learned from all this is that you must let the 'dust settle' before you really know what the Vera did or did not take. I keep having similar problems, but I hit reload and refresh my browser ten minutes later and he; something did happen  :)

Little update on the issue with changing multiple channels on a single click. I have isolated the issue and it is not good. It is at the harmony Hub protocol level. Right now I send one 'actionHold' with status=press command, it appears the hub interprets that as holding down the button for a longer time. I'm now down to IP packet inspection on my phone while using the Harmony app to figure out how to get the hub to see it as a single short key press, as I cannot find any documentation on this. Whish me luck.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 24, 2014, 04:17:06 pm
Hi maguerrero,

I had some help with analyzing the IP traffic and I think I got the device commands under control. It looks that after you send a holdAction with status=press you have to follow it with the same command but then with status=release, and with a timestamp that is about 50 higher than with the first. Can you try with this file and see if it works for you as well? There is also feedback to show that you clicked the button.

Cheers Rene

1 Dec update. Removed attacted file see http://forum.micasaverde.com/index.php/topic,14928.msg205029.html#msg205029 (http://forum.micasaverde.com/index.php/topic,14928.msg205029.html#msg205029) for latest version.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on November 24, 2014, 07:21:24 pm
Hi reneboer,

How are you? Thank you for your interface.

I have an issue maybe you can help with, I use luup command to start activities but also to send commands directly to the childs.

I have noticed that if I send a command to a child device - Harmony keep sending the same message, an example, on my Samsung tv - I switch on the tv - work fine , but the Red IR LED on the TV stay blinking - it will stop if i send a command with an activity.

this issue happen only with direct commend to the child devices not with an activity.


Areb65
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 25, 2014, 04:29:42 am
Hi Areb65,

Thanks for reporting this. Do you have some sample code so I am sure I am doing the same thing?

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 25, 2014, 10:47:17 pm
Hi maguerrero,

I had some help with analyzing the IP traffic and I think I got the device commands under control. It looks that after you send a holdAction with status=press you have to follow it with the same command but then with status=release, and with a timestamp that is about 50 higher than with the first. Can you try with this file and see if it works for you as well? There is also feedback to show that you clicked the button.

Cheers Rene

Hi Rene,

Thanks for your help, but I don?t know how to run the lua file. Please let me know how to do it.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 26, 2014, 04:56:17 am
Hi maguerrero,

You have to upload it to you Vera as described for the initial install in the user guide (Apps -> Develop Apps -> Luup Files. Make sure you have the check box for Restart Luup after upload. Wait a minute or two for the whole thing to reload and initialize.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 26, 2014, 04:59:06 am
Hi Areb65,

Thanks I'll have a look, don't have time this week though.

And, the question marks with PowerOn and Mute are copy paste errors I assume. They are not in your actual code?

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on November 26, 2014, 08:32:25 am
Hi Reneboer,

Yes they are errors from copy paste, happy holidays.

Areb65
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 27, 2014, 11:36:53 am
Hi All,

Here is version 1.7 of the plug in. All reported issue have been resolved as far as I could test. main changes are:
      Added support Scene triggers for Child Devices
      Added option to set local or remote icons
      Added option for clear UI visual feedback on child device button click
      Icons of child devices show busy status as well
      Fixed Scene trigger
      Fixed commands handling by sending status release after status press
      Improved start-up handling

Unless any one finds some major issue the comming days I will (finally) submit this version to the App market.

Have fun. Cheers Rene

28/11 Update: fixed issue for JSON files on a new child device
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 27, 2014, 11:28:48 pm
Hi Rene

Activities working fine but problems with Devices. When I create a device not buttoms to configure. I am using Vera Lite UI5 with Harmony Home Hub. It work fine with 1.6.
Title: Re: Logitech harmony ultimate
Post by: reneboer on November 28, 2014, 05:34:25 am
Hi Rene

Activities working fine but problems with Devices. When I create a device not buttoms to configure. I am using Vera Lite UI5 with Harmony Home Hub. It work fine with 1.6.

Thanks for finding this. It is a mis placed comma in the JSON. I updated the zip with this lua file that generates them correctly. You can toggle the Remote Icon Images option to force JSON file regeneration.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: maddingo50 on November 28, 2014, 04:59:24 pm
Nevermind..I think I got it.

Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on November 28, 2014, 05:19:21 pm
Hi Rene,

I tried the latest version and the instructions are very good...I wish all the apps came with such detailed instructions. Things seem to have gone smooth on the install and appear to be working, however, I come up with this error after sending a command from one of the Vera Harmony Device Buttons... Any advice? My device did have the remote icon option and it seems to work just fine for the images, no need to load manually on my VeraLite V1.5.622

As always, thanks very much for your efforts...this thing is such an amazing addition to the Vera system for us Harmony Owners!!

SEE ATTACHED PLEASE
Title: Re: Logitech harmony ultimate
Post by: Big Moose on November 28, 2014, 07:25:39 pm
Let me preface with a sincere thank you for this plugin, and I truly appreciate it! In fact it was a deciding factor in my picking up a Vera3 a few days ago.

Running 1.7, I am having trouble with devices - even with the new 'L_Harmony.lua' file overwrite, device commands don't work although the activities are fine.

Looking forward to a fix or feedback ...

Cheers


Hi Rene

Activities working fine but problems with Devices. When I create a device not buttoms to configure. I am using Vera Lite UI5 with Harmony Home Hub. It work fine with 1.6.

Thanks for finding this. It is a mis placed comma in the JSON. I updated the zip with this lua file that generates them correctly. You can toggle the Remote Icon Images option to force JSON file regeneration.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: maguerrero on November 29, 2014, 01:35:15 am
Same problem for me, Devices not working.
Title: Re: Logitech harmony ultimate
Post by: Dvbit on November 29, 2014, 06:28:28 am
Hi Reneeboer
Have not tried. I am just downloading.
However I would like to pay you a virtual beer for the work.
Let me know how
;-)
Title: Re: Logitech harmony ultimate
Post by: Dvbit on November 29, 2014, 09:16:14 am
I can confirm that also for me unfortunately the child devices spawned are not working :-(

otherwise perfect work!
Title: Re: Logitech harmony ultimate
Post by: Areb65 on November 29, 2014, 09:06:01 pm
Rene,

I have installed your latest v1.7, same here all works but NOT the child devices.

Areb,

ps: THANK YOU for your work.
Title: Re: Logitech harmony ultimate
Post by: Dvbit on November 30, 2014, 02:41:54 am
Forgot to mention.  Vera2 ui5
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 01, 2014, 04:45:33 am
Hi All,

First thanks for the compliments and the beer. I'll turn it into a real one soon :)

I'll have a look at the device issues tonight. It must be a JSON file issue.

The LUA error message can be because of a communication error, as I found a way to show (albeit a generic) error message with the device. is there a message in the message bar as well?

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 01, 2014, 03:57:59 pm
Hi All,

Small issue with the JSON file creation caused device buttons not to work. This is fixed in this 1.7.1 version. If you have 1.7 installed you onlu need to upload the L_Harmony.lua file.

I also removed the LUA failure notifications except for startup failures. It seems old messsages cannot be erased and I just found that out today. So nice idea, but not on Vera as it is right now. Wonder when they allow the option to flag a failure for plugin devices as Vera does for standard devices. O well, need to have some desires left unfulfilled  ::)

To force recreation of the JSON files you can toggle the Enable Remote Icon Images option from Yes to No or visa versa.

Hope it is now all working as expected.

11 Dec 2014 update: The latest verison can be found here http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111 (http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Dvbit on December 01, 2014, 04:07:43 pm
Good!

Tried... does not seem to work.

Also set in main device option to regenerate JSON but without success....
Title: Re: Logitech harmony ultimate
Post by: Big Moose on December 01, 2014, 05:48:39 pm
Good news - the new .lua has enabled device responsiveness, and now I have control over my Lutron RA-IR!!! Very happy  :D

Thanks Rene!

edit: restarted luup after upload, toggled icon images and restarted luup again.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 01, 2014, 06:37:01 pm
Still no luck with the device control,

I have deleted the old devices and created them again, I still have no control.

I have loaded all the new files , just in case, and did not fix the issue,

Do I have to do something else because I had the 1.7 installed?

Thank you Rene.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on December 01, 2014, 06:42:25 pm
Still no luck with the device control,

I have deleted the old devices and created them again, I still have no control.

I have loaded all the new files , just in case, and did not fix the issue,

Do I have to do something else because I had the 1.7 installed?

Thank you Rene.

What I had to do was open the main device settings (wrench icon)...go to the settings and flip the "use remote icon images" and I ended up having to reload twice because the first one ended in "start up failure). after your devices are created, you should be able to go back and flip it back.

BTW, I'm on UI5.

I hop that helps!
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 01, 2014, 06:58:40 pm
Only the main harmony command works now, the child wont works whatever I do,

I have noticed the Icon/picture of the harmony command disappeared see attached.

Title: Re: Logitech harmony ultimate
Post by: blong on December 01, 2014, 07:57:12 pm
@reneboer, thanks for extremely useful plugin.  I think I may have identified why the child devices aren't responding; at least the 5 children devices I created are now working in sync with the controller!  I edited the L_Harmony.lua file on line #34 to "f_path = '\/etc\/cmh-ludl\/'," versus "f_path = '/etc/cmh-ludl/'," and then uploaded to vera via vera's upload files tool.  I then went back to my child devices and changed the last activity in each device which caused it to reload in UI7.  I also made it a point to stay on the device "settings" page after selecting update.  Once that child device was saved (staying on that settings page) and vera luup engine was reloaded it worked.  Perhaps it is a simple lua escape sequence?

I am not posting my modification in case you discover that this is not needed.  I don't want to confuse more people.

At any rate my devices are now working without any failures!  :D

Thanks again, blong
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 01, 2014, 11:03:17 pm
Ok,

I have deleted all devices to start from scratch.

Now the main harmony is loaded and I can load all Activity.

for the child devices , that is another story :) I'm able to create them, but when I create all button, I wait for the Reload - that is not happening,

I have the child devices but no button,

see attached.

Title: Re: Logitech harmony ultimate
Post by: maguerrero on December 02, 2014, 01:39:50 am
Everything working great.
Thank you Rene.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 02, 2014, 06:17:10 am
Hi All,

I double checked everything this morning and retested a fresh install and I cannot see any issues. I must say I am running UI6, not UI5.

When you make changes, please make sure you wait untill your Vera is completely reloaded; i.e. the Unit Busy message in the task bar is cleared and then refresh your browser. You have to do this for each change you make.

When you have upgraded and want to toggle the Enable Remote Icon Images setting, I should have included that you must then save your changes and wait for the Vera to reload. If you want the original setting back and this was Yes then you should do: change Yes to No, click Save, wait for reload, change No to Yes, clikc Save and wait for reload.

@Areb65, your child devices do not look to be configured.

If you still have issues after these instructions, please report them.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 02, 2014, 08:18:37 am
Rene,

I have created the buttons and they appear when I go to the settings and save, but the reload never happen after that and the buttons never show up in the interface.

As soon as I have the child created the UI5 become very slow on luup requests.

for now, im using the main interface and not the childs and it looks working fine.

I have also restored a backup with version 1.6 and everything was working as expected.

I have reloaded my last backup with 1.7 and I have the same problem.

I did a fresh install at least twice :( :(


Title: Re: Logitech harmony ultimate
Post by: SirMeili on December 02, 2014, 09:29:07 am
Rene,

I have created the buttons and they appear when I go to the settings and save, but the reload never happen after that and the buttons never show up in the interface.

As soon as I have the child created the UI5 become very slow on luup requests.

for now, im using the main interface and not the childs and it looks working fine.

I have also restored a backup with version 1.6 and everything was working as expected.

I have reloaded my last backup with 1.7 and I have the same problem.

I did a fresh install at least twice :( :(

I am on UI5 (which is what it appears you are on). I never get the automatic reload. I always have to manually reload it by clicking the Reload/Save button in the top right. I normally let it set there for a minute to make sure whatever happens happens.

I should note that this plugin has NEVER auto reloaded for me on UI5.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 02, 2014, 09:31:51 am
SirMeili,

Thank you for your answer,

That is the same here and I had to do the reload manually and buttons would appear in tghe main harmony interface but NOT happenning for the childs, I see that it is configured and when I reload -> still not showing up.

very strange.

Areb.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on December 02, 2014, 09:34:13 am
SirMeili,

Thank you for your answer,

That is the same here and I had to do the reload manually and buttons would appear in tghe main harmony interface but NOT happenning for the childs, I see that it is configured and when I reload -> still not showing up.

very strange.

Areb.

I had the same issue. What eventually did it for me, and I don't know why, is I changed the "Use remote images" setting in the main device to "Yes" and after (and a restart) that the buttons showed up in the child devices. Before that, I reloaded multiple times to no avail, however if I went to the "settings" tab for the child devices, they had the correct button mappings. It just wasn't creating the buttons.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 02, 2014, 09:48:23 am
Hi SirMeili,

THANK YOU, THANK YOU.

Im not sure it is working the way it should because im at work and wanted to have a look at it because I did work on it until 3AM last night :) :)

I just did your trick with only one button to see if that work , and I SEE MY ON BUTTON :) :)

I will have a look tonight and add all my buttons,

Thank you.

Areb65
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 02, 2014, 10:48:10 am
Hi Areb65, SirMeili,

Great news you got it to work, thanks for posting the instructions. It seems there are some minor differences in UI5 and UI6. I probably need to look at downgrading to UI5 or get a third unit. Seems I need to put a Vera Edge on my x-mas whish list and keep my Lites for development.

Have fun with the plug in.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Dvbit on December 02, 2014, 06:06:55 pm
No buttons on chld devices over here.
Vera2  ui5
Trying solution proposed by sirmeilli
Title: Re: Logitech harmony ultimate
Post by: Dvbit on December 02, 2014, 06:15:30 pm
I confirm it is working with the workaround of sirmeili . Tx!

 ::)

Could not check if now that they are there the buttons work.... Am in another room in bed  :)
Wonders of automation!
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 02, 2014, 08:08:06 pm
I came back home a tried all button needed and I confirm too, that is working - still lot of work to do but all working :)

Thank you again.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 03, 2014, 12:59:30 pm
Hi Areb65,

When you add more buttons to a device, does the reload then happen after you click save changes? It should unless an if statement on a nil variable has a different result in UI5 than in UI6 but I hope that is not true.

Normal process should be; add/change buttons, click Save Changes, close the device. Get coffee for your Vera to reload completely (I drink a lot of it these days ;D) and then refresh your browser. The buttons should then show on your dash board view and when you open the device panel. I wish I knew a way to make it simpler, but generating the JSON files on the fly is not really what Vera (MiOS) was designed for.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 03, 2014, 03:24:05 pm
Hi Rene,

I follow your instruction step by step and since version 1.7 the reload does not happen, After 3 or 4 minutes I do the reload manualy.

When I do it manually, it work great for the Main harmony grid - after a simple reload the button show up.

For the devices I have to use SirMeili trick otherwise it is not showing up after a reload and refresh.

?had the same issue. What eventually did it for me, and I don't know why, is I changed the "Use remote images" setting in the main device to "Yes" and after (and a restart) that the buttons showed up in the child devices. Before that, I reloaded multiple times to no avail, however if I went to the "settings" tab for the child devices, they had the correct button mappings. It just wasn't creating the buttons.?

Once done, all is working perfect !!!! - 

I have the Main harmony hub in the bed room with the two extrnal IR blaster wires connected through a CAT5 connector and plitted to two different rooms, and work as expected.

I control 3 TV in 3 different rooms, planning to add more devices soon.

I'm planning to finish the scenes with correct luup call and add them into Myvera interface,

Love it.

And you know you are on the right path when your wife start using it :)  :P ;D

Areb65.





Title: Re: Logitech harmony ultimate
Post by: Dvbit on December 03, 2014, 04:55:01 pm
I have a feature suggestion.
An activity timeout
I explain : use of the remote is concentrated usually in a definite timespan.  So when an interaction is detected start polling at high frequency.  If after a defined delay there's no interaction go back to lazy polling.
So one could get reactiveness as soon as activity is started and not hoof the hub otherwise.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 03, 2014, 07:28:38 pm
Hi Rene,

I think all my issues are UI5 Related, I also noticed slow response on luup command, I decided to use regular scenes and it works like a charm, not important at this stage as I will look to migrate next year to edge if it is better and bug free :)

some of luup I won't use now:

luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="Mute"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="PowerOn"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="PowerOff"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command=?3?},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="Input4"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="Mute"},59)

luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22518081,Command="Mute"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22518081,Command="PowerOn"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22518081,Command="PowerOff"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22518081,Command="InputHdmi1"},59)
luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22518081,Command="InputHdmi2"},59)


Work fine now,

Thank you.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 04, 2014, 06:39:54 am
Hi,

I found the issue with the child device buttons not getting updated. I guess I forgot to upload this file on my UI6 box. The plug in is now in the App Market and I got the same issue after doing a fresh install from there.

So if you upload this file, it should work again.

11 Dec 2014 update: The latest version found here http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111 (http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111) has this update included.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 04, 2014, 07:11:19 am
Hi Rene,

I think all my issues are UI5 Related, I also noticed slow response on luup command, I decided to use regular scenes and it works like a charm, not important at this stage as I will look to migrate next year to edge if it is better and bug free :)

some of luup I won't use now:

luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=22240939,Command="Mute"},59)

Work fine now,

Thank you.

Hi Areb65,

No idea why the call action would be slower than using a scene. I will try a few things my self. Both should start the same action as a job, so the Vera should not wait for completion in either situation. But i am still quite new to this box so there are probably tons of surprises still waiting for me to uncover  ;).

Cheers rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 04, 2014, 07:35:03 am
I have a feature suggestion.
An activity timeout
I explain : use of the remote is concentrated usually in a definite timespan.  So when an interaction is detected start polling at high frequency.  If after a defined delay there's no interaction go back to lazy polling.
So one could get reactiveness as soon as activity is started and not hoof the hub otherwise.
Hi DvBit,

So you mean a time window to have an other poll time then out side that window? E.g. from 17:00-23:00 x secs, else y secs. Possibly even with multiple windows (08:00-10:00,17:00-23:00).

Or when showing activity -1 (off) for some time lower the polling rate. With this there is a drawback of a possible late activity change detection from Off to an other.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Dvbit on December 04, 2014, 10:31:04 am
What I mean is

Hi DvBit,

So you mean a time window to have an other poll time then out side that window? E.g. from 17:00-23:00 x secs, else y secs. Possibly even with multiple windows (08:00-10:00,17:00-23:00).

Or when showing activity -1 (off) for some time lower the polling rate. With this there is a drawback of a possible late activity change detection from Off to an other.

Cheers Rene.

The second one. I think that at the price of a "first event long latency" one could have better latency in later key presses / statuts changes.

Something like: normal polling set to 30.
On keypress / status change: polling set to lowest possible (even lower then currently hardccoded minimum)
After n seconds of inactivity/no status change revert to low polling frequency.

Ciao
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 04, 2014, 02:05:35 pm
Hi Dvbit,

Ok see what you mean. Let me mull on that a bit. I need to spend some time on other things first.

Note that you can only poll for activities from the Hub and device commands will never change the activity (that is how Harmony build it, not any plugin limitations), and if you change the activity on the Vera any linked trigger will fire immediately, i.e. no need for a next poll to occur. So I still need to let the value add sink in.

Will keep you posted.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: tomgru on December 05, 2014, 08:37:48 pm
Just a quick note... i have the newest installed, and it seems to be working GREAT.  HOwever, i no longer get the icons for all the devices and main consistently.  I tried selecting "use remote icons" to see if that helped... and that gives me a lua failure after reload.  turn that back off, and all is good... after a reload (or two) and a refresh (or two). 

Again, it seems spotty when they show up.  I'm on Chrome.

Not a big deal... just an FYI
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 06, 2014, 04:57:57 am
Hi Tomgru,

What i found is that the instructions on the wiki for publishing icons is not correct. There it states youshould use the path /../../www/cmh/skins/default/icons/ when you publish icon files in the install package. However, then it create a folder with no name in the icons folder and put them there. It seems tha last slash should not be there  ::). If you move the icon files from tha unnamed folder one up to icons it should work.

I sure could do with some better instructions on publishing your own plug in. Especially as I do not have a UI5 unit and I cannot test prior to getting it published.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 06, 2014, 01:55:56 pm
Hi Rene,

Just to let you know your fix for Reload in UI5 works, :)

Areb65
Title: Re: Logitech harmony ultimate
Post by: tomgru on December 06, 2014, 01:57:45 pm
Hi Tomgru,

What i found is that the instructions on the wiki for publishing icons is not correct. There it states youshould use the path /../../www/cmh/skins/default/icons/ when you publish icon files in the install package. However, then it create a folder with no name in the icons folder and put them there. It seems tha last slash should not be there  ::). If you move the icon files from tha unnamed folder one up to icons it should work.

I sure could do with some better instructions on publishing your own plug in. Especially as I do not have a UI5 unit and I cannot test prior to getting it published.

Cheers Rene.

Interestingly, there was no unnamed folder in the icons folder... but there were also no harmomy png's in that folder either.  So i just copied them in manually.   That seemed to work!
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 07, 2014, 11:45:55 am
Hi Rene,

Just to let you know your fix for Reload in UI5 works, :)

Areb65
Thanks for letting me know Areb.
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on December 08, 2014, 07:52:13 pm
Hi Rene,

Just wanted to say Congrats and Thanks again for the published app...works great and was a smooth install...!!!

Like so many others, can't tell you how great it is to have this integrated into the Vera...

Opens SO many doors that were closed before (and gates)!!

Cheers to you my friend!!
Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on December 10, 2014, 10:16:26 pm
Having an issue, UI5, I can create the child device, for this example, I created the red button on my DirecTV device for the harmony. I created a scene in Vera, added the red button as the trigger. On the child device created in Vera, if I press the red button on the child device, the scene activates. However, if I press the red button the Harmony while in the DirecTV activity, the scene does not trigger the button on the Child Device in Vera.  It never indicates it was activated. As if the remote is not communicating with Vera on the child devices.  I noticed a few posts back where you mentioned S_Harmony.xml file needed to be uploaded in place of the one on the app from MIOS...I tried before the upload, no luck, I uploaded and tried again, no luck.

Any suggestions please?

Thanks!!
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 11, 2014, 05:36:44 am
Having an issue, UI5, I can create the child device, for this example, I created the red button on my DirecTV device for the harmony. I created a scene in Vera, added the red button as the trigger. On the child device created in Vera, if I press the red button on the child device, the scene activates. However, if I press the red button the Harmony while in the DirecTV activity, the scene does not trigger the button on the Child Device in Vera.  It never indicates it was activated. As if the remote is not communicating with Vera on the child devices.  I noticed a few posts back where you mentioned S_Harmony.xml file needed to be uploaded in place of the one on the app from MIOS...I tried before the upload, no luck, I uploaded and tried again, no luck.

Any suggestions please?

Thanks!!
Hi Shawn,

The Hub does not keep state of anything else than the current activity and that is what you can poll and put a trigger on that way. For the child devices you can only trigger when clicking the button on the Vera interface or with a luup.call_action. There is no communication from the Hub when a device button is pressed on a remote or in the Harmony mobile app that I have been able to find unfortunately.

PS: Thanks for the complements  :).

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Aaron on December 11, 2014, 12:13:34 pm
reneboer,
Interesting thought... For many years I've used (and still do) EventGhost to control my HTPC. It intercepts IR (and also PC activities) from my older Harmony remote and then sends on the commands, which are mapped, to XBMC / WMC / PC itself (reboots, etc)

I suspect we should be able to intercept the Hub commands... either using the IR Blaster, or I wonder if the Hub sends the commands via USB also - which EventGhost can read using an HID driver.

This would allow us to track/record sequences and act upon them if needed.

Question is... what do we really need to capture, and for what purpose?
- I use XBMC mainly, and there is already a plugin that captures activities from XBMC. Not sure what I'd use the actual sequence remote commands. I can see individual button captures for lighting, etc.

thoughts?

Title: Re: Logitech harmony ultimate
Post by: ShawnInFL on December 11, 2014, 12:47:53 pm
Hi Rene,

Understood and no complaints!! Maybe some trickery in the future will allows this to happen. Glad to know it wasn't something I was or was not doing.  Not very experienced with luup as you were suggesting using the luup.call_action. Perhaps some research on my part in that direction will get me closer to being able to control some scenes outside of activity triggers. My only intent was to be able to trigger some scenes without disturbing the current activity. Example, pressing the green or red button on the DirecTV activity on the harmony would dim some lights or something. Guess I could create another DirecTV activity that did all the same events as the primary but this one would also trigger the lights.  Not a big deal. I;m having tons of fun with the apps current functionality!!

Thanks again,
Shawn
Title: Re: Logitech harmony ultimate
Post by: dinochronos on December 17, 2014, 09:27:50 am
Hi Rene,

I have 3 Harmony hubs on the same email account and noticed that even though I enter the correct IP address for each hub the only control that works is the first hub, it looks like the other hubs are not connecting properly.

Is this app supporting multiple hubs under the one email account? or just only one hub.  Can you let me know. Not sure if you would plan to enhance the app to be able to scale up to multiple hubs under the one email account.

It's a great app and so glad that I can now incorporate the hub commands into a scene.

Thanks!
Title: Re: Logitech harmony ultimate
Post by: garrettwp on December 17, 2014, 10:20:33 am
It was stated in previous posts of this thread that there are issues with this plugin and multiple hubs. Right now there is no solution. I believe the developer of the plugin will be looking into it.

- Garrett

Title: Re: Logitech harmony ultimate
Post by: spudjr on December 17, 2014, 11:55:44 am
In the plugin forum a user reported that he used 2 different registration addresses on the hubs and was able to control both hubs independently.

http://forum.micasaverde.com/index.php/topic,28689.15.html
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 17, 2014, 05:36:39 pm
In the plugin forum a user reported that he used 2 different registration addresses on the hubs and was able to control both hubs independently.

http://forum.micasaverde.com/index.php/topic,28689.15.html
Hi, I think that is for one of the first versions. For version 1.7 and 1.8 it probably does not work very wel if at all. Also when you happen to have the same Harmony Device ID between two hubs that would keep overwriting each others configuration. I am now testing version 2.0 and it looks good. Bit more testing to do to see if I can detect responsiviness issues reported. I expect to make version 2.0 availble this weekend. It will only not be backwards compatible because of the changes I had to make for multiple Hub support.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Areb65 on December 17, 2014, 07:24:54 pm
Rene,

Is that mean you will have a version for multiple Hub and one for single hub?

Areb.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 18, 2014, 05:20:06 am
Rene,

Is that mean you will have a version for multiple Hub and one for single hub?

Areb.
No, one version supporting one or more hubs, but it will be up to you if you want to upgrade or not. I have an idea to sort of migrate the data on a first install and I'll be trying that the coming days. keep you posted.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: dinochronos on December 20, 2014, 02:24:18 pm
Renee thank you for the update regarding multiple hubs being supported with V2.0 under one Harmony email account.  I look forward testing once the app is released and will advise if any further issues.

Thanks
Again !
Title: Re: Logitech harmony ultimate
Post by: TheGadgetGuy on December 22, 2014, 02:16:28 pm
Just wanted to say that I finally got around to connecting my Harmony Ultimate Home system to Vera using your plugin, and so far, it's working like a charm!!

For me at least, this seems to be a perfect replacement for the SQ Blasters I had been relying on up until recently.  With Square Connect pretty much defunct, I had been searching for an ideal replacement (upgrade), and this app (along with the Harmony) seems to work perfectly.

Thanks for the hard work in developing the plugin.  EXCELLENT job!
Title: Re: Logitech harmony ultimate
Post by: tylordurton on December 22, 2014, 02:18:09 pm
Hi Guys,

I have just discovered this amazing thread while researching how I can automate my Harmony controls via IFTTT. I have managed to compile the .exe and have followed the guidelines about run commands, unfortunately after the Logitech web service login is successful then second steps just hands (Harmony communication login).

I looked up the ip address of the hub from my linksys router config page and can successfully ping this so not sure what I'm doing wrong?

Any suggestions would be greatly appreciated.

Kind Regards
Tylor
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 22, 2014, 03:22:20 pm
Hi All,

I just put V2.0 online. This supports multiple hubs if you have them, or one if you don't  ;)

See http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111 (http://forum.micasaverde.com/index.php/topic,28689.msg205111.html#msg205111) for details and the download.

If you find any problems, please let me know.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: faustiano on December 23, 2014, 02:12:37 pm
Will this work with VeraEdge?  I am planning to purchase a Vera device to work with the Harmony Home system.
Title: Re: Logitech harmony ultimate
Post by: tylordurton on December 27, 2014, 10:42:10 am
Apologies for the re-post guys (I had to wait several days for the mod to approve my first post).. Just anxious to get this working.

Hi Guys,

I have just discovered this amazing thread while researching how I can automate my Harmony controls via IFTTT. I have managed to compile the .exe and have followed the guidelines about run commands, unfortunately after the Logitech web service login is successful then second steps just hands (Harmony communication login).

I looked up the ip address of the hub from my linksys router config page and can successfully ping this so not sure what I'm doing wrong?

Any suggestions would be greatly appreciated.

Kind Regards
Tylor
Title: Re: Logitech harmony ultimate
Post by: huveu on December 27, 2014, 01:16:04 pm
tylordurton,

You are trying to install one of the earliest versions of this initiative. Right now there is a plugin available in the store that you can download and install directly from there.

If you read two posts above yours you'll see how Rene (developer of the plugin) has added a link to the final plugin with instructions.
Title: Re: Logitech harmony ultimate
Post by: tylordurton on December 28, 2014, 03:11:02 pm
tylordurton,

You are trying to install one of the earliest versions of this initiative. Right now there is a plugin available in the store that you can download and install directly from there.

If you read two posts above yours you'll see how Rene (developer of the plugin) has added a link to the final plugin with instructions.

Thanks for the response, just so I am clear (probably should have mentioned), I don't have a Vera system - isn't that what Rene developed?
I just need to be able to control the Hub/set off activities from the Pc rather than the remote/hub, this way I can write a batch script to work in conjunction with IFTTT to start an activity upon arriving home.
I thought the HarmonyHubController (.exe) would fit the bill perfectly but I can't seem to get it to connect successfully!
Title: Re: Logitech harmony ultimate
Post by: huveu on December 28, 2014, 08:25:32 pm

tylordurton,

You are trying to install one of the earliest versions of this initiative. Right now there is a plugin available in the store that you can download and install directly from there.

If you read two posts above yours you'll see how Rene (developer of the plugin) has added a link to the final plugin with instructions.

Thanks for the response, just so I am clear (probably should have mentioned), I don't have a Vera system - isn't that what Rene developed?
I just need to be able to control the Hub/set off activities from the Pc rather than the remote/hub, this way I can write a batch script to work in conjunction with IFTTT to start an activity upon arriving home.
I thought the HarmonyHubController (.exe) would fit the bill perfectly but I can't seem to get it to connect successfully!

Hmm, I thought the uploaded executable was meant for linux and used libraries that are specific to the vera. (I could be wrong)

If you just need to run this from your computer, you should look into the pyharmony project on github or something similar.
Title: Re: Logitech harmony ultimate
Post by: tylordurton on December 29, 2014, 03:58:33 am
Yeah I have also checked out pyharmony but must admit I am a complete novice with Python so have not been able to get that working:-(
Title: Re: Logitech harmony ultimate
Post by: TheRedPill on December 29, 2014, 05:55:57 am
Hi I have just installed the plugin but I am not seeing the buttons change when I start activities with the remote. Am I correct that I should be?

Thanks
Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on December 29, 2014, 11:23:36 am
I apologize, as I feel like I've read this. 

But is there a way to use the plugin to use the Harmony to control a Z-wave device?  I thought there was, and got the plugin installed but struck out. 
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 29, 2014, 11:59:29 am
Hi TheRedPill, when you set the Poll Interval to a number above zero your Vera will poll the Harony Hub for the current activity and that will be reflected in the button on the Vera.

Hi Nick, No that is not possible you can only have an event fire on an activity change that you nitiate on the remote. To control Z-wave you would have to add one of the IR-receivers to your Vera, define commands on that and learn those on your Harmony. There are some other topics on this.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on December 29, 2014, 01:40:27 pm
Thanks @reneboer.  I kinda thought that was the case . . .

It's kinda a pain to have to use one device for the HT and another for my lights.  I know, i know.  First world problems.

I will look further into the IR receiver option.  Probably be my best bet.   :)

Title: Re: Logitech harmony ultimate
Post by: faustiano on December 29, 2014, 01:59:22 pm

Will this work with VeraEdge?  I am planning to purchase a Vera device to work with the Harmony Home system.

Sorry, just bumping this question in the thread because it took a while for my post to be approved due to holidays.


Sent from my iPhone using Tapatalk
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 30, 2014, 08:06:39 am
Hi,

This works with UI7 so it should work on the VeraEdge.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: tylordurton on December 30, 2014, 09:54:11 am
Is anybody able to confirm if there's an alternate solution to control the hub from the Pc (pyharmony setup instructions [or lack of them] has made this overly complex?)

Kind Regards
Tylor
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 30, 2014, 10:24:01 am
Is anybody able to confirm if there's an alternate solution to control the hub from the Pc (pyharmony setup instructions [or lack of them] has made this overly complex?)

Kind Regards
Tylor
I have not been able to find it. I used the phyharmony information to develop this code for the Vera. I did not find much other information.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: reneboer on December 31, 2014, 06:49:04 am
Hi,

I have made version 2.02 availble on See http://forum.micasaverde.com/index.php/topic,28689.msg205111.html (http://forum.micasaverde.com/index.php/topic,28689.msg205111.html) for details and the download.

Fixes and enhancements are listed there. The user guide is availble via a link as I cannot upload it tho the forum at the moment.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: TheRedPill on January 01, 2015, 03:02:42 pm
Hi TheRedPill, when you set the Poll Interval to a number above zero your Vera will poll the Harony Hub for the current activity and that will be reflected in the button on the Vera.

Cheers Rene

Thanks! Is there a recommended interval?
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 02, 2015, 05:25:24 am
Hi TheRedPill, when you set the Poll Interval to a number above zero your Vera will poll the Harony Hub for the current activity and that will be reflected in the button on the Vera.

Cheers Rene

Thanks! Is there a recommended interval?

Not really, I only set the low limit to 10 seconds and that does not seem to cause any problems. All depends on how quickly you want the Vera to pickup on activity changes.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: faustiano on January 02, 2015, 07:14:52 pm
Hi,

This works with UI7 so it should work on the VeraEdge.

Cheers Rene

Excellent, thank you for your help!
Title: Re: Logitech harmony ultimate
Post by: rajooru on January 02, 2015, 10:37:17 pm
Thanks for the plugin. I am trying to get it work for me. I am using harmony home hub (newest version)

I am getting the following error
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I see this in the luup log
luup_log:37: Harmony Control: Connect, failed to open socket to hub 192.168.1.141 <0x2d0a3680>

My hub ip is correct double checked it.

I opened putty ran this in RAW connection
<iq type="get" id="guest">
  <oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" />
</iq>

<iq/><iq id="guest" type="get"><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity' errorcode='200' errorstring='OK'><![CDATA[result=12127410]]></oa></iq>

am I missing something?
Title: Re: Logitech harmony ultimate
Post by: alden on January 04, 2015, 01:27:35 pm

Will this work with VeraEdge?  I am planning to purchase a Vera device to work with the Harmony Home system.

Sorry, just bumping this question in the thread because it took a while for my post to be approved due to holidays.


Sent from my iPhone using Tapatalk
I've been running it for 2 days on my Edge - it works great.
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 05, 2015, 06:32:42 am
Thanks for the plugin. I am trying to get it work for me. I am using harmony home hub (newest version)

I am getting the following error
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I see this in the luup log
luup_log:37: Harmony Control: Connect, failed to open socket to hub 192.168.1.141 <0x2d0a3680>

am I missing something?
Is there maybe a space character in the IP address? The error indicates no IP connection can be established from your Vera to the Hub. Have you tried the Harmony app on your phone/tablet?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: rajooru on January 05, 2015, 10:24:24 am
Thanks for the plugin. I am trying to get it work for me. I am using harmony home hub (newest version)

I am getting the following error
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I see this in the luup log
luup_log:37: Harmony Control: Connect, failed to open socket to hub 192.168.1.141 <0x2d0a3680>

am I missing something?
Is there maybe a space character in the IP address? The error indicates no IP connection can be established from your Vera to the Hub. Have you tried the Harmony app on your phone/tablet?

Cheers Rene

Thank you for the reply. I checked the IP address and I see no spaces. I am using the harmony app on my phone and tablet and its works. please let me know if you want me to try something.
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 08, 2015, 05:20:22 am
Thanks for the plugin. I am trying to get it work for me. I am using harmony home hub (newest version)

I am getting the following error
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I see this in the luup log
luup_log:37: Harmony Control: Connect, failed to open socket to hub 192.168.1.141 <0x2d0a3680>

am I missing something?
Is there maybe a space character in the IP address? The error indicates no IP connection can be established from your Vera to the Hub. Have you tried the Harmony app on your phone/tablet?

Cheers Rene

Thank you for the reply. I checked the IP address and I see no spaces. I am using the harmony app on my phone and tablet and its works. please let me know if you want me to try something.
Hi, did you enter the IP in the settings tab or in the Advanced setting. One user did the latter and for some reason it did not work either. After a reinstall and using the Settings tab to enter the IP, email and pwd it did work.

May be worth trying.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: rajooru on January 09, 2015, 10:09:51 pm
Thanks for the plugin. I am trying to get it work for me. I am using harmony home hub (newest version)

I am getting the following error
Harmony Control : CMD: Failed sending command get_current_activity_id to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I see this in the luup log
luup_log:37: Harmony Control: Connect, failed to open socket to hub 192.168.1.141 <0x2d0a3680>

am I missing something?
Is there maybe a space character in the IP address? The error indicates no IP connection can be established from your Vera to the Hub. Have you tried the Harmony app on your phone/tablet?

Cheers Rene

Thank you for the reply. I checked the IP address and I see no spaces. I am using the harmony app on my phone and tablet and its works. please let me know if you want me to try something.
Hi, did you enter the IP in the settings tab or in the Advanced setting. One user did the latter and for some reason it did not work either. After a reinstall and using the Settings tab to enter the IP, email and pwd it did work.

May be worth trying.

Cheers Rene

Finally got it working. The problem I had was the hub was connected to a router different from the one vera is connected. I changed the wifi connection on the hub to the same router and it worked. The plugin is awesome Thank you so much Rene.
Title: Re: Logitech harmony ultimate
Post by: zscholz on January 15, 2015, 01:59:34 pm
You can either wait for Logitech to have a set of API's (good luck with that) or either you or someone else reverse engineer the api calls.

- Garrett

Will wonders never cease - Looks like  Logitech is finally releasing an API for their Home remotes...

http://www.engadget.com/2015/01/15/logitech-harmony-api/

I know there has been some really incredible advances by this community for this remote, but hopefully this makes everyone's life easier and exposes even more control...
Title: Re: Logitech harmony ultimate
Post by: SirMeili on January 15, 2015, 02:05:05 pm
You can either wait for Logitech to have a set of API's (good luck with that) or either you or someone else reverse engineer the api calls.

- Garrett

Will wonders never cease - Looks like  Logitech is finally releasing an API for their Home remotes...

http://www.engadget.com/2015/01/15/logitech-harmony-api/

I know there has been some really incredible advances by this community for this remote, but hopefully this makes everyone's life easier and exposes even more control...

Lets hope that the API is against the local hub and not some web service....PLEASE let it be local!
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 15, 2015, 02:34:04 pm
You can either wait for Logitech to have a set of API's (good luck with that) or either you or someone else reverse engineer the api calls.

- Garrett

Will wonders never cease - Looks like  Logitech is finally releasing an API for their Home remotes...

http://www.engadget.com/2015/01/15/logitech-harmony-api/

I know there has been some really incredible advances by this community for this remote, but hopefully this makes everyone's life easier and exposes even more control...

Lets hope that the API is against the local hub and not some web service....PLEASE let it be local!
I requested access and just got an email saying it is still under development, please wait. So... I'll guess that is what I will have to do  ::)
They are speaking about a REST full API using authentication so not likely it is local.
Title: Re: Logitech harmony ultimate
Post by: SirMeili on January 15, 2015, 02:40:12 pm
You can either wait for Logitech to have a set of API's (good luck with that) or either you or someone else reverse engineer the api calls.

- Garrett

Will wonders never cease - Looks like  Logitech is finally releasing an API for their Home remotes...

http://www.engadget.com/2015/01/15/logitech-harmony-api/

I know there has been some really incredible advances by this community for this remote, but hopefully this makes everyone's life easier and exposes even more control...

Lets hope that the API is against the local hub and not some web service....PLEASE let it be local!
I requested access and just got an email saying it is still under development, please wait. So... I'll guess that is what I will have to do  ::)
They are speaking about a REST full API using authentication so not likely it is local.

That makes ABSOLUTELY no sense to me whatsoever. I hope that this plugin does NOT go that route if indeed it is cloud based. I don't want my automation for a local device to have to go through the cloud. It is the main reason I don't use my Nest for automation (I schedule it because I have a pretty normal schedule and I have it in the Vera so I can control it all through a single app if I want).
Title: Child Devices - How Many?
Post by: papreston on January 18, 2015, 01:57:55 pm
Hi

First.... thanks again for all the work put into this plugin.  Loving it and just go my second hub for the Master bedroom.  I'm starting to work with child devices.  I can only seem to create one.  If i try to create another it replaces the first.  If i re-create a child i already had... but not displaying on the UI7 interface.... the child comes back with the buttons already created from before.

Very strange...
Any ideas?
Thanks
Paul
Title: Re: Child Devices - How Many?
Post by: reneboer on January 19, 2015, 04:16:12 am
Hi

First.... thanks again for all the work put into this plugin.  Loving it and just go my second hub for the Master bedroom.  I'm starting to work with child devices.  I can only seem to create one.  If i try to create another it replaces the first.  If i re-create a child i already had... but not displaying on the UI7 interface.... the child comes back with the buttons already created from before.

Very strange...
Any ideas?
Thanks
Paul
Hi Paul,
To control multiple instances of the same device you have to create multiple main devices first. Those can point to the same Hub or to two different ones. You must use version 2.02 for this. Older versions will not work correctly.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: papreston on January 19, 2015, 09:57:41 pm
Got it!  Thanks so much.  Took some doing, but got two hubs created for the Ultimate in the Living Room with a Child device for the receiver under Hub A and a child device for the computer under Hub B.  Plus a third hub for the one installed in the bedroom.  Thanks again for your work and it will be interesting to see what's to come with Harmony's new  API. 

Paul
Title: Re: Logitech harmony ultimate
Post by: magic on January 19, 2015, 10:41:59 pm
I'm stuck. Vera3 with UI7.
Installed the plugin (2.02) via the App store, configured it via the settings, but I still can't get to the Activities or Devices tabs.

I have my harmony hub fully configured via the MyHarmony and Android apps (8 devices, etc.), and I'm positive I've entered the correct ip address, email, and password.

This sometimes appears in blue at the top of my dashboard:
Quote
Harmony Control : CMD: Failed sending command get_config to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

When I click on the Activities or Devices tab, they seem to timeout after a few minutes:
Quote
Device #38   Harmony Control
Unknown error occurred. Try again in a minute.

I previously had another remote in my Harmony account (a simple standalone Harmony 200 remote), but I deleted it thinking it was the issue (but it didn't make a difference). Now I just have a single Harmony Hub in myHarmony.

Tried various things with uninstalling/rebooting/reinstalling, and deleting harmony-related files from /etc/cmh-ludl using Putty.

No spaces in the ip address (192.168.1.3) as was suggested of rajooru. I used "address reservation" on my router so it wouldn't change.

I tailed the LuaUPnP.log, but couldn't find any related except this:
Quote
09   01/19/15 20:33:52.906   JobHandler_LuaUPnP::Run device 38 Harmony Control room 0 type urn:schemas-rboer-com:device:Harmony38:1 cat 3:-1 id HAM38_CNTRL parent 0/0xa790c0 upnp: 0 <0x2b0e1000>
(which happens when Lua restarts after I changed some parameters.)

Any ideas of what's wrong or where I should look?
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 20, 2015, 04:57:07 am
Hi Magic,

Can you set the log level to Debug? In the log file you should see a line saying something like; Starting harmony Control using IP address 192.168.1.3 ...

Do you see that line and what looks like.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: magic on January 20, 2015, 11:52:58 pm
From yesterday (before changing log to debug):
Code: [Select]
01 01/19/15 20:37:23.672 luup_log:38: Harmony Control: Connect, failed to open socket to hub 192.168.1.3 <0x2d416680>
06 01/19/15 20:37:23.672 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: LinkStatus was: -- now: Error #hooks: 0 upnp: 0 skip: 0 v:0xb524e8/NONE duplicate:0 <0x2d416680>
06 01/19/15 20:37:23.674 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: IconSet was: 3 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2d416680>
01 01/19/15 20:37:23.674 LuaInterface::CallFunction_Timer device 38 Harmony_Setup took 189 seconds <0x2d416680>

With debug enabled:
Code: [Select]
01 01/20/15 21:43:53.606 luup_log:38: Harmony Control: Connect, failed to open socket to hub 192.168.1.3 <0x2d3c2680>
06 01/20/15 21:43:53.606 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: LinkStatus was: -- now: Error #hooks: 0 upnp: 0 skip: 0 v:0x8c0490/NONE duplicate:0 <0x2d3c2680>
50 01/20/15 21:43:53.607 luup_log:38: Harmony Control: CMD: errcode=423, errmsg=Failed to connect to Harmony Hub <0x2d3c2680>
50 01/20/15 21:43:53.607 luup_log:38: Harmony Control: task: CMD: Failed sending command get_config to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub <0x2d3c2680>
50 01/20/15 21:43:53.608 luup_log:38: Harmony Control: GetConfig,  failed to send GetConfig command...  errorcode=423, errormessage=Failed to connect to Harmony Hub <0x2d3c2680>
50 01/20/15 21:43:53.608 luup_log:38: Harmony Control: No devices returned from Harmony Hub. <0x2d3c2680>
06 01/20/15 21:43:53.609 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: IconSet was: 3 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2d3c2680>
01 01/20/15 21:43:53.610 LuaInterface::CallFunction_Timer device 38 Harmony_Setup took 189 seconds <0x2d3c2680>
...
08 01/20/15 21:43:59.100 luup_log:38: Harmony Control: PollCurrentActivity stopping polling. <0x2d3c2680>

After saving parameters:
Code: [Select]
50 01/20/15 21:40:41.372 luup_log:31: Should be a successful lua startup <0x2b9c2680>
06 01/20/15 21:40:41.413 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: IconSet was: 0 now: 3 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x2b9c2680>
03 01/20/15 21:40:41.413 luup_log:38: Harmony Control: Harmony device #38 is initializing! <0x2b9c2680>
03 01/20/15 21:40:41.450 luup_log:38: Harmony Control: Version is current : 2.0 <0x2b9c2680>
06 01/20/15 21:40:41.450 Device_Variable::m_szValue_set device: 38 service: urn:rboer-com:serviceId:Harmony1 variable: LinkStatus was: Error now: -- #hooks: 0 upnp: 0 skip: 0 v:0x8c0490/NONE duplicate:0 <0x2b9c2680>
03 01/20/15 21:40:41.452 luup_log:38: Harmony Control: Using Harmony Hub: IP address 192.168.1.3 <0x2b9c2680>
50 01/20/15 21:40:41.452 luup_log:38: Harmony Control: Harmony Hub Control: init_module completed  <0x2b9c2680>
50 01/20/15 21:40:44.100 luup_log:38: Harmony Control: Harmony device #38 is starting up! <0x2d3c2680>
50 01/20/15 21:40:44.101 luup_log:38: Harmony Control: HTTPServer 0 <0x2d3c2680>
50 01/20/15 21:40:44.101 luup_log:38: Harmony Control: Harmony_CreateChildren for device  <0x2d3c2680>
50 01/20/15 21:40:44.137 luup_log:38: Harmony Control: No child devices to create. <0x2d3c2680>
50 01/20/15 21:40:44.138 luup_log:38: Harmony Control: GetConfig <0x2d3c2680>
50 01/20/15 21:40:44.138 luup_log:38: Harmony Control: Sending command cmd=get_config <0x2d3c2680>
Title: Re: Logitech harmony ultimate
Post by: ascari on January 25, 2015, 03:06:17 pm
Hello everybody,

I have installed my harmony with my veralite, all works perfect but I don't have the "Current Activity ID".

If I use the IU7 interface I have the Id but If I use my remonte no (just --)

Any idea to solve this ?

Thx
Title: Re: Logitech harmony ultimate
Post by: Bric on January 25, 2015, 03:28:12 pm

Hi,

I installed this new harmony hub 2.0 plugin.
It seems ok.  I could start acitivity and aceess devices.

But i don t know what happened, now i only have acess at pc.

My 2 smartphones can't connect by vera mobile app. (iphone and android)

Should i have uninstaled the previous harmony plugin?
i don t even know if that was a "plugin".

Can anyone help me?  i can't acess anymore forom my smartphones.

tks
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 25, 2015, 05:21:14 pm
Hi Magic,

I am not seeing anything off in the log file. Can you try to ping to the hub from your Vera?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 25, 2015, 05:23:36 pm
Hello everybody,

I have installed my harmony with my veralite, all works perfect but I don't have the "Current Activity ID".

If I use the IU7 interface I have the Id but If I use my remonte no (just --)

Any idea to solve this ?

Thx
Hi,

have you set the polling interval to a non-zero number of seconds?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 25, 2015, 05:26:07 pm

Hi,

I installed this new harmony hub 2.0 plugin.
It seems ok.  I could start acitivity and aceess devices.

But i don t know what happened, now i only have acess at pc.

My 2 smartphones can't connect by vera mobile app. (iphone and android)

Should i have uninstaled the previous harmony plugin?
i don t even know if that was a "plugin".

Can anyone help me?  i can't acess anymore forom my smartphones.

tks
Hi Bric,

Cannot imagine it has to do with the Harmony Plugin. I have several Android apps and most won't even show the plugin. Only AuhomationHD does and that also keeps working just fine.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: ascari on January 25, 2015, 06:37:34 pm
@reneboer : Thank you, I have change 0 by 1.
I go to sleep I test tomorrow but thank you
Title: Re: Logitech harmony ultimate
Post by: Bric on January 25, 2015, 07:17:38 pm

Hi,

I installed this new harmony hub 2.0 plugin.
It seems ok.  I could start acitivity and aceess devices.

But i don t know what happened, now i only have acess at pc.

My 2 smartphones can't connect by vera mobile app. (iphone and android)

Should i have uninstaled the previous harmony plugin?
i don t even know if that was a "plugin".

Can anyone help me?  i can't acess anymore forom my smartphones.

tks
Hi Bric,

Cannot imagine it has to do with the Harmony Plugin. I have several Android apps and most won't even show the plugin. Only AuhomationHD does and that also keeps working just fine.

Cheers Rene


HI, i my poll interval is at 10  , and ok acknowledge at 3.
I can create commands for devices , i can start activities that i created at the plugin.

It seems it's working well.


The problem is:   ONLY at Home PC.

I can't anymore login at smartphone app to my vera lite.

Iphone:
Vera mobile: Can't see nothing more.  Even my veralite serial number.
Vera Mate:  It seems it's ok ! Can acess it , and have my light dimmers to be turned on or off or dimmered. But , i created a child device for a receiver, and i can't see the commands at smartphone

Android
Vera Mobile:  Sam thing like in iphone.  Can't login.  " Fletching vera devices"  .  only get this message , and nothing happens.

Title: Re: Logitech harmony ultimate
Post by: Bric on January 25, 2015, 07:21:23 pm
I,m using Veralite UI5 ok ?
Title: Re: Logitech harmony ultimate
Post by: Starcruiser1229 on January 28, 2015, 03:02:45 am
Hi -

First, thanks for creating the plugin - its exactly what I needed and overall it works great.

I seem to be running into one odd quirk - if I set the polling interval to something short (like 10 seconds) it works fine, and I can see it polling (icon changes colors white/blue/green/white every 10 seconds, entries in the log). If I have an activity on and hit the off button, or switch activities, it almost always works as expected, and detects the change at the next poll. But, if I have everything off and hit a button on the remote to start an activity, it seems to lock up - the icon background will get stuck on blue and I stop seeing entries in the log. Almost exactly a minute later it springs back to life and detects the activity. If I had to guess, I'd say that starting an activity takes a lot longer (it's waiting to change inputs) and maybe the hub is busy when the poll happens? The workaround I have found thus far is to wait a second after the TV comes on, and then hit the same activity again - I have no idea why that would help, but it seems to?

Just wondering if anyone else has experienced this? I noticed this because I'm trying to use the status to dim some lights when the TV comes on, and I was wondering why it seemed to be taking longer than 10 seconds...

Thanks,
Patrick
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 28, 2015, 04:52:54 am
Hi Patrick,
Starting an activity can take quite some time and the plug in will not be able to poll during that time. My Watch TV activity is over 30 seconds and that is just two devices that need be turned on. It could be that the standard time outs in the plug in cause some extra delays.

In this message I posed an update that may work a bit better in these situations. Give it a try.
http://forum.micasaverde.com/index.php/topic,28689.msg213673.html#msg213673

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: ascari on January 30, 2015, 09:47:17 am
I try a luup scene but it's not working and no error message, more strange.

Code: [Select]
rc = luup.call_action("urn:rboer-com:serviceId:Harmony1","GetCurrentActivityID",{},34)
if (rc==11839806)
 then
      luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue="1" }, 23)
      luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = "35"}, 23)
end

Do you have a idea ?

Thank you
Title: Re: Logitech harmony ultimate
Post by: RexBeckett on January 30, 2015, 11:25:18 am
Quote
Do you have a idea ?

luup.call_action(...) does not return anything useful. Should you be using a luup.variable_get(..)?
Title: Re: Logitech harmony ultimate
Post by: ascari on January 30, 2015, 12:43:26 pm
Hoo yes  :-\ big mistake

but it's the same with get(local rc = luup.variable_get("urn:upnp-org:serviceId:Harmony", "CurrentActivityID", device)
)
 I look for thank you for your help :D


Title: Re: Logitech harmony ultimate
Post by: RexBeckett on January 30, 2015, 12:50:23 pm
Hoo yes  :-\ big mistake

but it's the same with get(local rc = luup.variable_get("urn:upnp-org:serviceId:Harmony", "CurrentActivityID", device)
)
 I look for thank you for your help :D

You have used the wrong ServiceId. Try this:

Code: [Select]
local rc = luup.variable_get("urn:rboer-com:serviceId:Harmony1", "CurrentActivityID", 34)
Title: Re: Logitech harmony ultimate
Post by: ascari on January 30, 2015, 01:26:53 pm
@RexBeckett you are my hero of the day :)

Thank you so much  :D
Title: Child Devices after communication fail
Post by: papreston on February 06, 2015, 05:41:58 pm
Hi Rene

I noticed some strange things with child devices after vera looses connection with the hub.  Once the connection is re-established the child comes back (with the correct controls) but any scenes with them used are gone.  Also if you go back in the child and try to edit the buttons you have to reenter all them. The list is blank.

If this is a known bug...sorry for the double post.

Still a GREAT plugin.
Paul
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 07, 2015, 05:48:59 am
Hi Paul,

I have not seen this behaviour my self on UI6 or UI7. I just downgraded one of my Veras to UI5 and have it on that. So far so good.

What I do know is on UI5/UI6 when you have Create child devices embedded set to Yes and you move a child device to an other room, the Vera will recreate a new one and then all settings are blanked, but the buttons will still show. On UI7 you can move the child devices without a problem and the setting only seems to apply to the initial creation.

If you want to put a child device in an other room on UI5/UI6 you must set Create child devices embedded to No.

Could this be what happened? If not I have to do more testing and try disconnecting my hub a couple of times.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: papreston on February 07, 2015, 11:27:12 am
I'm not sure what's going on... today I woke up to

Harmony Control : CMD: Failed sending command get_config to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub
Harmony Control : CMD: Failed sending command get_config to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I didn't make any hardware changes nothing changed in vera...all the setting are still the same (correct IP address & login)  The Harmony Apps still works fine.  I have two hubs and I did have one child created on each hub.  It seems to all start when I tr to get two child devices running at the same time.

Thanks
Paul
Title: Re: Logitech harmony ultimate
Post by: magic on February 07, 2015, 12:21:13 pm
Not sure if this was my issue or not, but I just enabled "Settings>Net & Wi-Fi>Automatic Device Detection" ("Auto detect devices on my home network") and it seems to work now.
Title: Re: Logitech harmony ultimate
Post by: joer. on February 10, 2015, 03:05:33 pm
@RexBeckett you are my hero of the day :)

Thank you so much  :D

Rex has the best creation of vera all time..... Its called LUAtest
Title: Re: Logitech harmony ultimate
Post by: SirMeili on February 10, 2015, 07:34:57 pm
Quick question not really related to this plugin, but the Harmony Ultimate. For some reason when turning on an activity from any Phone or my "smart control" remote, the activity starts, but the hub is never updated to say that the activity is active. Same for turning everything off. If I use the main Harmony Ultimate remote, it works 100% of the time.

I tried doing a complete factory reset on the remote and it worked fine for a few days, but now it is doing it again. I am just seeing if anyone else has this issue. The bad part about it is two fold:

1) when turning on an activity, the smart control remote won't do anything until you start the activity again and of course you have to guess when the first attempt has finished. This annoys my wife who prefers the smart control remote since its 1) cheaper to replace if broker, and 2) less complicated.
2) I use this plugin to turn off living room lights if the current activity is "off" (no one is watching TV). Since when you press "off" the first time it turns things off, but the hub does not update, the lights won't go off unless you realize this and wait and press off again.

Anywho, I'll probably post on the logitech forums as well, but thought that someone else might have run into this and maybe has a solution.
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 11, 2015, 05:07:40 am
Hi SirMeili, I have the Harmony Ultimate and so far I can use the App or the remote and both work reliable and pick up the current activity reliably.

Paul, do still have connectivity issues?

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: papreston on February 12, 2015, 04:12:57 pm
Sorry for the delay... busy week.

I decided to get a new wireless router on Sunday. I reset everything, reconnected the hubs... I created new devices in vera for both hubs.  I've only had it up for a day or so and It's been better. No connection errors so far. I haven't added any child devices yet.  I'll let you know how it goes.
Title: Re: Logitech harmony ultimate
Post by: TwannieM on February 27, 2015, 04:49:24 am
What a great plugin this is!

Can someone explain what these settings do?
Enable HTTP Request Handler
Enable Remote Icon Images
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 27, 2015, 08:29:46 am
Hi Twannie,

When enabling the HTTP handler you can get information about the activities and devices using the examples in the user guide. Or you can use it to interface with some other system that talks HTTP. But as you do not need it during normal operations. Hence I made it configurable.

When remote icons is yes you will see the icons even when accessing your Vera remotely by getting them from a URL and not your Vera. When you only work local, it is slightly faster to use the local icons. When you access a Vera remotely you will see that many icons for plugins are missing. Many have asked Vera to fix that, it is still on their to do list.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Starcruiser1229 on February 28, 2015, 06:12:58 am
Hi Rene,

I just wanted to follow up on my last post - I did install the other version you mentioned, but I've been busy and I hadn't gotten around to playing with it in-depth. Even with the new version, polling was still taking a while when I had started an activity with the remote, so I added a few logging statements and played with it a bit. It looked to me like it was blocking on data from the socket at

Code: [Select]
-- Check to see if we are getting a message (<me) or response (<iq)
local ret, status, partial = sock:receive('3')

so I added a sock:settimeout(5) to the connect function and it seems to have fixed the issue (it still takes ~20 seconds to respond as opposed to ~10 when I turn it off, because it times out on the first polling interval and has to try again, but thats better than the ~60-70 seconds I was seeing before).

Connect now looks like:

Code: [Select]
-- Open socket to Hub
local function Connect()
if ((ipa or "") == "") then log("Connect, no IP Address specified ",1) return false end
sock = socketLib.connect(ipa, CommunicationPort)
if (sock == nil) then log("Connect, failed to open socket to hub " .. ipa, 1) return false end
sock:settimeout(5)
return true
end

I'm assuming that there were less than three bytes available to be read, and so it blocked on data? I'm not really familiar with Lua, so I may be misinterpreting the issue, and its quite possible that this is a bad idea in general, or set too aggressively, but I've turned my TV on and off about several times using vera and the remote, and so far so good.

Thanks!
Patrick
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 28, 2015, 06:55:34 am
Hi Patrick,

Thanks for the feedback .

Under what circumstances are you seeing the delays? And what Vera UI version do you have, 5,6 or 7?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on February 28, 2015, 11:49:17 am
I've been following along and love using the app since the first version. I'm curious though if it might be possible to add functionality to the plugin (for a scene) which would allow it to activate the last activity. here's why-

I use an Android TV stick along with the Imperihome app (set up to launch automatically) to view my cameras and z-wave devices in the house. There is an Imperihome plugin for Vera which has the ability to command the Android app to display a specific page of devices/cameras. So, I have created a scene where if the front door or garage door z-wave sensors are triggered, the app on the TV switches over to the corresponding camera, so I can see who's coming/going.

I'd like to tie in this Harmony plugin a little better. Currently, it can switch the TV on to the correct input. but then I have to manually switch the tv back to whatever it was doing before. I'd love it if the Harmony plugin could remember the previous activity so for example, the door opens, the TV displays the correct camera, 30 seconds later the TV resumes the activity prior to the door opening.

Does this sound like a possibility? Or helpful to anyone else?
Title: Re: Logitech harmony ultimate
Post by: tomgru on February 28, 2015, 12:05:59 pm
I've been following along and love using the app since the first version. I'm curious though if it might be possible to add functionality to the plugin (for a scene) which would allow it to activate the last activity. here's why-

I use an Android TV stick along with the Imperihome app (set up to launch automatically) to view my cameras and z-wave devices in the house. There is an Imperihome plugin for Vera which has the ability to command the Android app to display a specific page of devices/cameras. So, I have created a scene where if the front door or garage door z-wave sensors are triggered, the app on the TV switches over to the corresponding camera, so I can see who's coming/going.

I'd like to tie in this Harmony plugin a little better. Currently, it can switch the TV on to the correct input. but then I have to manually switch the tv back to whatever it was doing before. I'd love it if the Harmony plugin could remember the previous activity so for example, the door opens, the TV displays the correct camera, 30 seconds later the TV resumes the activity prior to the door opening.

Does this sound like a possibility? Or helpful to anyone else?

Ooh! I do this with my tablets, but didn't think of this solution for my TV! Which stick do your use, and how do yon interface with lmperihome on the TV?  You can PM me so this thread doesn't go off topic
Title: Re: Logitech harmony ultimate
Post by: Starcruiser1229 on February 28, 2015, 08:20:53 pm
Cool idea on the cameras - I don't have any cameras setup yet, but I'll keep this in mind when I add some.
How about using something like this?

Create a new scene, and add this to the LUUP tab. Change harmonyId and activity at the top to match your harmony device ID in vera and the activity id for your android plugin:

Code: [Select]
local harmonyId = 40           -- ID of the Harmony plugin
local delay = 30                   -- Delay in Seconds
local activity = "11982862"     -- The ID of the activity you want to switch To

--store the current activity ID
local cur_activity = luup.variable_get("urn:rboer-com:serviceId:Harmony1", "CurrentActivityID", harmonyId)

if (cur_activity == activity) then
     return false
end

--Tell the Harmony to start the new activity
luup.call_action("urn:rboer-com:serviceId:Harmony1", "StartActivity", {newActivityID = activity}, harmonyId)
-- Call the function to put the previous activity back after delay seconds
luup.call_delay( 'restore_previous_activity', delay, tostring(cur_activity))

function restore_previous_activity(activity_to_restore)
   luup.call_action("urn:rboer-com:serviceId:Harmony1", "StartActivity", {newActivityID = tonumber(activity_to_restore)}, harmonyId)
end


Rene -

I was seeing polling for the current activity ID get delayed over a minute whenever I turned the TV on with the harmony remote, even though the activity seemed to be complete after 30 seconds or so. My theory is that basically the hub was in a weird state when it got polled (because it was running an activity) and returned something odd, and then when the plugin tried to read data from the socket the socket blocked, because it did not have enough data, and we had to wait for it to time out so that the request could fail and polling could resume. By adding the timeout my goal was to fail faster and get back to polling.

EDIT -
Changed script to handle being called again while it was swapped to the camera - the first version that would have caused it to not return back to the original activity, now it should ignore the second call. Note - this means that if there is a second trigger event right as its switching back to TV, it probably won't switch back to the camera...
Title: Re: Logitech harmony ultimate
Post by: wezley69 on February 28, 2015, 09:19:39 pm
I keep getting this error multiple times a week since the plugin upgrade.  I have to reset the hub and remote from scratch (harmony's recover)

Harmony Control : CMD: Failed sending command get_config to Harmony Hub - errorcode=423, errormessage=Failed to connect to Harmony Hub

I don't want to purchase a spare and find there is the same problem.  Any ideas???

Help!
Title: Re: Logitech harmony ultimate
Post by: sasaba on March 01, 2015, 01:46:11 am
I've been following along and love using the app since the first version. I'm curious though if it might be possible to add functionality to the plugin (for a scene) which would allow it to activate the last activity. here's why-

I use an Android TV stick along with the Imperihome app (set up to launch automatically) to view my cameras and z-wave devices in the house. There is an Imperihome plugin for Vera which has the ability to command the Android app to display a specific page of devices/cameras. So, I have created a scene where if the front door or garage door z-wave sensors are triggered, the app on the TV switches over to the corresponding camera, so I can see who's coming/going.

I'd like to tie in this Harmony plugin a little better. Currently, it can switch the TV on to the correct input. but then I have to manually switch the tv back to whatever it was doing before. I'd love it if the Harmony plugin could remember the previous activity so for example, the door opens, the TV displays the correct camera, 30 seconds later the TV resumes the activity prior to the door opening.

Does this sound like a possibility? Or helpful to anyone else?

I used the current activity as an input on a PLEG device and the motion sensor as another input then set conditions based on the current activity that allows me to pause the current activity change the input to the camera and then after a delay change the activity back. Hope this makes sense.
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on March 01, 2015, 11:51:46 am
Thank you Starcruiser1229!
I added in the Lua code and so far it's working perfectly. Very cool!  ;D

sasaba, Thank you for the response. I understand your thinking but I haven't played around with PLEG yet to be able to actually execute your idea. Thank you for the help as I'm sure it will be useful when I do start incorporating PLEG into my automation.
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 08, 2015, 11:21:25 am
Hi,

I will make this change in the next release. I had something similar in but was not seeing any issues so I took it out at one point.

I will let you know when it is released.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: TheGadgetGuy on March 16, 2015, 07:31:34 pm
Hello Rene,

First of all, LOVE the Logitech Harmony plugin.  It works extremely well, and has enhanced the 'home automation' aspects of my Vera 3 by quite a bit.

That being said, I have noticed a significant issue with the plugin that I am hoping you can assist with.

I am running version 2.20150216 of the plugin. 

What I have noticed / experienced is this:  If for some reason the Hub is disconnected from power, or for any reason the plugin cannot connect to the Hub, the plugin doesn't seem to handle it well.  I have observed the following...
- The plugin seems to periodically cause the Vera engine to reload.
- The plugin looses its configuration, so even when connectivity to the Hub is restored, the programmed sequences and events no longer run.  All of the command buttons revert to their default 'none'.

This has caused me significant annoyance, because I have to first, edit the plugin, reprogramming the 'buttons' for each device.  Then, I have to go into my scenes and re-enter any commands to the Hub.

Is this a unique situation to me, or is the a common occurrence?  Obviously, I think the plugin should be able to retain all settings if communication with the hub is temporarily lost for whatever reason.

Thanks.  Please let me know.
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 17, 2015, 04:47:12 am
Hello Rene,

First of all, LOVE the Logitech Harmony plugin.  It works extremely well, and has enhanced the 'home automation' aspects of my Vera 3 by quite a bit.

That being said, I have noticed a significant issue with the plugin that I am hoping you can assist with.

I am running version 2.20150216 of the plugin. 

What I have noticed / experienced is this:  If for some reason the Hub is disconnected from power, or for any reason the plugin cannot connect to the Hub, the plugin doesn't seem to handle it well.  I have observed the following...
- The plugin seems to periodically cause the Vera engine to reload.
- The plugin looses its configuration, so even when connectivity to the Hub is restored, the programmed sequences and events no longer run.  All of the command buttons revert to their default 'none'.

This has caused me significant annoyance, because I have to first, edit the plugin, reprogramming the 'buttons' for each device.  Then, I have to go into my scenes and re-enter any commands to the Hub.

Is this a unique situation to me, or is the a common occurrence?  Obviously, I think the plugin should be able to retain all settings if communication with the hub is temporarily lost for whatever reason.

Thanks.  Please let me know.
Hi,
The reload is done when making any changes to the settings or buttons because the JSON files need to be rewritten. If you are seeing more reloads can you describe when you see them?

On UI5 you cannot move the Child devices to an other room if you have the setting Create child devices embedded set to Yes. On a reload the Vera will recreate the device in the same room as the parent again and all buttons, scenes etc. are indeed lost. I have not seen this on UI7 prior to 7.05. However, with 7.05 I see this same behavior again. Note; if you change the Create child devices embedded setting, all devices will be recreated and settings will be lost. This is Vera and not something I know to avoid.
If you get the issue on an other scenario, please let me know.
Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 17, 2015, 11:37:06 am
Hi All,

Version 2.1 is available for download. To be on app market soon. See http://forum.micasaverde.com/index.php/topic,28689.msg205111.html (http://forum.micasaverde.com/index.php/topic,28689.msg205111.html)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: joer. on March 18, 2015, 01:19:06 pm
http://www.amazon.com/dp/B00N3RFC4G/ref=wl_it_dp_o_pC_nS_ttl?tag=slickdeals&ascsubtag=820d7fdeca1d42ba9e09f13bcc5a517d&_encoding=UTF8&colid=1V54ITYMNUN25&coliid=I2SBTK2ESV1YTC&psc=1

Guys is this the right device? I see this and the ultimate (just more devices). Good price if it is....
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 18, 2015, 04:10:11 pm
Hi Joer,

It includes the Hub so should be ok.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: joer. on March 18, 2015, 04:34:29 pm
Hi Joer,

It includes the Hub so should be ok.

Cheers Rene

I just realized it doesn't include the remote with the Touch screen....
Does anyone who has the touchscreen remote think its worth it?
Title: Re: Logitech harmony ultimate
Post by: TheGadgetGuy on March 18, 2015, 05:15:50 pm
Hello Rene,

First of all, LOVE the Logitech Harmony plugin.  It works extremely well, and has enhanced the 'home automation' aspects of my Vera 3 by quite a bit.

That being said, I have noticed a significant issue with the plugin that I am hoping you can assist with.

I am running version 2.20150216 of the plugin. 

What I have noticed / experienced is this:  If for some reason the Hub is disconnected from power, or for any reason the plugin cannot connect to the Hub, the plugin doesn't seem to handle it well.  I have observed the following...
- The plugin seems to periodically cause the Vera engine to reload.
- The plugin looses its configuration, so even when connectivity to the Hub is restored, the programmed sequences and events no longer run.  All of the command buttons revert to their default 'none'.

This has caused me significant annoyance, because I have to first, edit the plugin, reprogramming the 'buttons' for each device.  Then, I have to go into my scenes and re-enter any commands to the Hub.

Is this a unique situation to me, or is the a common occurrence?  Obviously, I think the plugin should be able to retain all settings if communication with the hub is temporarily lost for whatever reason.

Thanks.  Please let me know.
Hi,
The reload is done when making any changes to the settings or buttons because the JSON files need to be rewritten. If you are seeing more reloads can you describe when you see them?

On UI5 you cannot move the Child devices to an other room if you have the setting Create child devices embedded set to Yes. On a reload the Vera will recreate the device in the same room as the parent again and all buttons, scenes etc. are indeed lost. I have not seen this on UI7 prior to 7.05. However, with 7.05 I see this same behavior again. Note; if you change the Create child devices embedded setting, all devices will be recreated and settings will be lost. This is Vera and not something I know to avoid.
If you get the issue on an other scenario, please let me know.
Cheers Rene

Hello Rene,

So to reiterate my concerns:
1)  Is it normal and expected that if the Hub loses network connectivity for any reason, your plugin will lose its configuration, and will need to be reconfigured?  Or should the plugin simply reestablish connection to the Hub and continue working (once the hub is reconnected to network)?

2)  Is it normal for the plugin to periodically reload the Vera engine, even if no configuration changes are being made?

Item number 1 is my primary concern.  Item number 2 I believe is only occurring when the Hub is unreachable.

Thanks.
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 18, 2015, 05:42:45 pm

Hello Rene,

So to reiterate my concerns:
1)  Is it normal and expected that if the Hub loses network connectivity for any reason, your plugin will lose its configuration, and will need to be reconfigured?  Or should the plugin simply reestablish connection to the Hub and continue working (once the hub is reconnected to network)?

2)  Is it normal for the plugin to periodically reload the Vera engine, even if no configuration changes are being made?

Item number 1 is my primary concern.  Item number 2 I believe is only occurring when the Hub is unreachable.

Thanks.

Hi,

I am not experiencing either of those issues, nor would the code logic ever trigger them under normal circumstances. Do you have some more details of your setup? Maybe some other plugin that causes a conflict? Do you have multiple users maybe?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: TheGadgetGuy on March 18, 2015, 06:50:59 pm
This is a Vera 3 running UI5.

On a normal basis, the Vera UI itself isn't used. Only for programming. We use SQ Remote for normal house control.

I'm glad to hear you say that this is not typical behavior. At the same time, now I need to determine the root cause of it.

I would appreciate any thoughts or suggestions you may have. Right now, when working, the plugin works well. It's just if a network interruption occurs that it all comes crashing down.

Thanks in advance!!
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 19, 2015, 10:42:50 am
This is a Vera 3 running UI5.

On a normal basis, the Vera UI itself isn't used. Only for programming. We use SQ Remote for normal house control.

I'm glad to hear you say that this is not typical behavior. At the same time, now I need to determine the root cause of it.

I would appreciate any thoughts or suggestions you may have. Right now, when working, the plugin works well. It's just if a network interruption occurs that it all comes crashing down.

Thanks in advance!!
I will run some experiments by unplugging the Hub. I tried that before and did not cause any issues when running UI6 and 7. I now have a VeraLite with UI5 so I try with that and let you know.

You can try the 2.1 version released today as that has shorter network timeouts by default. Maybe your restarts are because the default timeout was 60 seconds and I just learned that UI5 will kill any job that runs for more then 40-50 seconds and can even reload. So if you can also try the new version and let me know.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: CudaNet on March 25, 2015, 02:51:19 pm
Can't wait to give this plugin a try... Had my Ultimate Hub sitting in a drawer - well, doing nada. It must be a sign from the HA Gods to make use of this thing.
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 25, 2015, 04:33:44 pm
Hi TheGadgetGuy,

I just put a fix out in version 2.2 that should prevent settings getting lost when there is a LUUP reload and the Hub cannot be reached.

It will be on the app market soon or you can get it here:
http://forum.micasaverde.com/index.php/topic,28689.0.html

If you have V2.1 installed you only need to upload the L_Harmony.lua file

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: TheGadgetGuy on March 25, 2015, 04:57:08 pm
Hi.  Thanks!

I'll give it a try and let you know the results.

Title: Re: Logitech harmony ultimate
Post by: wezley69 on March 25, 2015, 08:57:58 pm
Was going to replace the L_Harmony.lua file but only found one named L_Harmony.lua.lzo. 
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 26, 2015, 03:13:16 am
Was going to replace the L_Harmony.lua file but only found one named L_Harmony.lua.lzo.
You must go to Apps, Develop Apps, Upload file. Do not use WinSCP.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: CudaNet on March 27, 2015, 02:22:03 pm
@reneboer

Had to jump in here and say thanks, loaded this last night and it works great. At first I was like WTH, I kept getting an error saying it couldn't communicate with the Harmony even though I know it was on the network. Then it dawned on me, I had that segment of wireless blocked from the intranet. Quick change at the router and voila - everything works perfectly. Great job !!!
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 27, 2015, 06:49:22 pm
Thanks,

I think it is getting there and I coded for most curves a Vera can throw at me for this one.  :D

Up to the next one. Linking the Dutch made HomeWizard with Vera.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: tomgru on March 28, 2015, 01:52:01 pm
@reneboer

i've been running this for awhile and it works great!

saw that you released 2.2, and as i've never installed this from the app store, thought i'd just go that route so i could auto updates.  I did NOT uninstall the older version... and was hoping that all my settings would remain.

what looks like happened is that it installed a new instance of the plugin, because i see one there ready to be configured, as well as my older instance with all my settings.

Any advice?

Also, ironically, it also says version 2.1 in the new instance.

EDIT:  i just removed the new instance.  Then i uploaded the L_Harmony.lua file and reloaded.  back to normal looking, but still says v2.1
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 29, 2015, 08:40:19 am
Hi Tom,

I must admit I have not tried to update the manual installed one for a while, but as I did not change much in the migration logic and it works for app market updates I have not tested that. I will give it a shot at one point. You did it from V2.1 right?

The version number is a bit misleading as it actually reflects the JSON format and if the number gets changed those get rewritten at start up to support installing newer versions. I guess I need to add an app version too to make that difference clear. Need to keep something on the to-do list right  ;)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: tomgru on March 29, 2015, 10:44:46 am
Hi Tom,

I must admit I have not tried to update the manual installed one for a while, but as I did not change much in the migration logic and it works for app market updates I have not tested that. I will give it a shot at one point. You did it from V2.1 right?

The version number is a bit misleading as it actually reflects the JSON format and if the number gets changed those get rewritten at start up to support installing newer versions. I guess I need to add an app version too to make that difference clear. Need to keep something on the to-do list right  ;)

Cheers Rene

Yep, 2.1
Title: Re: Logitech harmony ultimate
Post by: reneboer on March 30, 2015, 04:25:16 am
Hi Tom,

Had some time away from Vera and that cleared my mind nicely  ;D

When you have a manual install and do an install from the app store, it will install a second version of the plugin. Not entirely sure that it is because I have set it to allow for multiple in the app store, but that it creates a second copy is correct and it will then indeed not have those same settings.

So works as designed, but that is not always as desired  8)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wezley69 on April 01, 2015, 10:15:37 pm
How do I use this plugin to select numbers to change a channel on DirecTV.  I have a scene setup to turn on the activity "Watch DirecTV" but beyond that I would like to set a channel such as 244.

Any help is appreciated!.  I removed the DirecTV media plugin due to errors occurring often. 
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 02, 2015, 04:05:15 am
Hi Wezley69,

You should add the direct TV remote to your Harmony, but I assume you did. You then select that in the Devices in the Harmony Hub control and after a reload on the Vera that will show a child device for the Direct TV remote. On that you add the channel buttons. Then you can make a scene that would select the buttons for your channel 2 4 4, or you add some lua code that does a luup.call_action SendDeviceCommand. You can see some examples in the user guide.

An other option is to add an action to your Harmony like 'Watch TV 244' and have the Harmony do all the driving, but as it is limited on the number of actions you can define you may quickly run out.

Success,

Rene
Title: Re: Logitech harmony ultimate
Post by: tomgru on April 02, 2015, 10:02:34 am
Hi Tom,

Had some time away from Vera and that cleared my mind nicely  ;D

When you have a manual install and do an install from the app store, it will install a second version of the plugin. Not entirely sure that it is because I have set it to allow for multiple in the app store, but that it creates a second copy is correct and it will then indeed not have those same settings.

So works as designed, but that is not always as desired  8)

Cheers Rene

 :)
Title: Re: Logitech harmony ultimate
Post by: Big Moose on April 02, 2015, 03:22:34 pm
Hi Rene,

I am running 1.71 (manual install) and would like to upgrade to 2.2.

Would it be best practice to install a new instance via the store, configure it from scratch, and then find and delete the old files manually?

I'm unclear on this and don't want to waste overhead.

Thanks,

Moose
Title: Re: Logitech harmony ultimate
Post by: Brientim on April 02, 2015, 03:40:17 pm
To align with future releases, you should ensure the install matches that of the App Store.
The two options to achieve this are:

1.  update the current device Advance tab to include the plugin which should be 8066 in this case, save which will result in a restart.  Then force the update

http://ip_address:3480/data_request?id=update_plugin&Plugin=Plugin_ID

2.  Delete and install new app from the App Store

Benefit option 1 is when there are a lot of scenes tied to the device
Benifit option 2 fool proof solution but looses any links to previous settings
Title: Re: Logitech harmony ultimate
Post by: Big Moose on April 02, 2015, 03:46:17 pm
To align with future releases, you should ensure the install matches that of the App Store.
The two options to achieve this are:

1.  update the current device Advance tab to include the plugin which should be 8066 in this case, save which will result in a restart.  Then force the update

http://ip_address:3480/data_request?id=update_plugin&Plugin=Plugin_ID

2.  Delete and install new app from the App Store

Benefit option 1 is when there are a lot of scenes tied to the device
Benifit option 2 fool proof solution but looses any links to previous settings


Interesting, thanks for the reply Brientim.

I like the cheat in option 1. Do you know if if the upgrade process (via store) assumes it is overwriting the last version, or does it overwrite all required files every time?
Title: Re: Logitech harmony ultimate
Post by: Brientim on April 02, 2015, 03:56:35 pm
As long as the installed and referenced files are the same, the installation from the App Store will over write the current files used... The App Store and Vera can not have duplicate files.  Therefore, given the first point, if that is the case, the App Store install would replace your current files anyway. It would also create the new device of course but this could be deleted as it leaves the files behind.

The update to the plugin reference is to ensure alignment with future updates as they are released.
Title: Re: Logitech harmony ultimate
Post by: Brientim on April 02, 2015, 03:59:45 pm
Missed the second question, the App Store install all associated files every time it is installed
Title: Re: Logitech harmony ultimate
Post by: Big Moose on April 02, 2015, 04:00:29 pm
Good info, thanks!
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 03, 2015, 05:42:04 am
Hi Moose, Tim,

Please note that this plug in allows multiple installs. So if you have one installed manually, the app market install will most likely create a second instance that you will have to reconfigure.

Just so you are not surprised if you get that second instance. If you don't, I still don't understand how app market really works  :o

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wezley69 on April 03, 2015, 12:01:48 pm
I setup the Directv DVR as a child device.  I went to the settings tab and setup the number buttons or command mappings for all of the numbers.  I saved and noticed that the buttons were not accessible from the web interface nor through a scene.  I rebooted the vera and the device buttons are still not accessible.  They do still appear correctly under the settings tab.

Help!

UPDATE:  Had to cycle power to get the buttons to show.
Title: Re: Logitech harmony ultimate
Post by: azula on April 22, 2015, 02:34:10 am
Hello all,


I have a simple question hopefully. What exactly can this plugin do? I would like to control my z wave lights with my harmony remote. I read in a previous post that this is not possible with this app. I read the description in the app but can someone give me an example of what this app can do? Thanks.
Title: Re: Logitech harmony ultimate
Post by: Brientim on April 22, 2015, 04:32:17 am

Hi Moose, Tim,

Please note that this plug in allows multiple installs. So if you have one installed manually, the app market install will most likely create a second instance that you will have to reconfigure.

Just so you are not surprised if you get that second instance. If you don't, I still don't understand how app market really works  :o

Cheers Rene
Hello Rene,

the allow multiple is to define if a app can have multiple devices created from it. 

So, you are correct that if you manually installed the files and then created a device from it, it has no correlation to the installation of the app which would create a new device.  However, if the file name is the same as one on the Vera, it will be over written when the installation occurred.

Once the app is installed, you can go to the installed app and create another from there rather than having to create it manually.
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 22, 2015, 07:48:03 am

Hi Moose, Tim,

Please note that this plug in allows multiple installs. So if you have one installed manually, the app market install will most likely create a second instance that you will have to reconfigure.

Just so you are not surprised if you get that second instance. If you don't, I still don't understand how app market really works  :o

Cheers Rene
Hello Rene,

the allow multiple is to define if a app can have multiple devices created from it. 

So, you are correct that if you manually installed the files and then created a device from it, it has no correlation to the installation of the app which would create a new device.  However, if the file name is the same as one on the Vera, it will be over written when the installation occurred.

Once the app is installed, you can go to the installed app and create another from there rather than having to create it manually.
Hi Brientim,

When you install a new version the plug in will indeed also rewrite the specially created JSON files to match the new definitions if needed. If I understand your suggestion do not to remove the 'old' devices, but rather remove the new one (that does not have any configuration) and then go to the existing one and enter 8066 in the plugin parameter. Problem I have is that I do not see the plugin parameter unless the device is installed from the app market. Would you need some LUA to add that then? If so I think I can come up with some instructions.

Cheers Rene.
Title: Re: Logitech harmony ultimate
Post by: aptalca on April 22, 2015, 08:26:57 am
Hello all,


I have a simple question hopefully. What exactly can this plugin do? I would like to control my z wave lights with my harmony remote. I read in a previous post that this is not possible with this app. I read the description in the app but can someone give me an example of what this app can do? Thanks.
This plugin allows you to control the harmony via the vera. It can retrieve the the activities and the devices you have set up and creates buttons to control them.

What you're asking for is the other way around, controlling the vera via the harmony hub. You're right that this plugin does not do that. For that, Logitech would have to release a device profile for vera possibly utilizing the http api.

Or maybe you could hack a pc/pi that has an ir receiver and you can use something like eventghost to generate http commands upon receiving certain ir signals. On the harmony, you would add a random ir device that you do not own and set those ir commands to be recognized by eventghost.

I had done that years ago with a basic universal remote when I was using x10. I set the remote to use a random tv's ir codes. Taught those codes to eventghost and had it fire different http commands based on different buttons. I was executing scenes and all.
Title: Re: Logitech harmony ultimate
Post by: RexBeckett on April 22, 2015, 12:05:06 pm
Quote
Would you need some LUA to add that then? If so I think I can come up with some instructions.

Code: [Select]
-- Change plugin number
local dID = 123 -- Device number to be changed
local newPID = 12345 -- New plugin ID
luup.attr_set("plugin",newPID,dID)

Title: Re: Logitech harmony ultimate
Post by: reneboer on April 23, 2015, 04:56:06 am
Hello all,


I have a simple question hopefully. What exactly can this plugin do? I would like to control my z wave lights with my harmony remote. I read in a previous post that this is not possible with this app. I read the description in the app but can someone give me an example of what this app can do? Thanks.

Hi,

I use the KiraRT plug in and a Keen IR receiver in combination with the Harmony remote and added a Timeguard four button IR switch and a Universal Devices 40 button one and learned the IR codes from those in the KiraRT plugin to trigger scenes. See here for the KiraRT plugin and details http://forum.micasaverde.com/index.php/topic,14618.0.html

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 23, 2015, 04:58:18 am
Quote
Would you need some LUA to add that then? If so I think I can come up with some instructions.

Code: [Select]
-- Change plugin number
local dID = 123 -- Device number to be changed
local newPID = 12345 -- New plugin ID
luup.attr_set("plugin",newPID,dID)
Thanks Rex,

After this the Vera will think you installed the plugin from the App Market? Nice  :)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: myles111au on April 30, 2015, 04:14:10 am
Hi everyony, amazing plugin, thanks to everyone involved in development.

I am using a Vera lite with ui7 and a harmony hub and have several scenes setup to trigger actions from the harmony hub all sucessfully.

My question is i am trying to trigger a scene from the action of pressing 'off' on the harmony remote and there are 2 options in scene control 'when the harmony is turned off' and 'power' to trigger the scene but neither seem to be working. Is this normal behavior or is something amiss?
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 30, 2015, 11:50:54 am
Hi everyony, amazing plugin, thanks to everyone involved in development.

I am using a Vera lite with ui7 and a harmony hub and have several scenes setup to trigger actions from the harmony hub all sucessfully.

My question is i am trying to trigger a scene from the action of pressing 'off' on the harmony remote and there are 2 options in scene control 'when the harmony is turned off' and 'power' to trigger the scene but neither seem to be working. Is this normal behavior or is something amiss?
Hi,

The triggers must always from the main Harmony Control and on that did you add a button that maps to the PowerOff 'activity' ? You can then create a scene select the Harmony Control device and in the scene editor select Harmony Activity is Changing to: and select that PowerOff activity you have a button for as well.
Also make sure you have the Current Activity Polling interval set to a non zero value. Normally a 30 seconds value is good, it will mean a scene will get triggered within 30 seconds after the activity on the Harmony changes.

Glad you like the plug in. Hope this point you in the right direction. Just let me know if you are running at a dead end.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: myles111au on April 30, 2015, 08:01:52 pm
Thanks for the speedy reply Rene. I already had the buttons mapped but had not changed the poll interval and it is now working perfectly.

Are there any negatives to having the poll interval set very low (say 5 seconds) other than network traffic?

Thanks again for your help.
Title: Re: Logitech harmony ultimate
Post by: Gklmdawson on May 01, 2015, 01:42:15 am
I don't know the details of it but there is a hack to get vera to work on the echo by emulating the Phillips hue. I wonder if the same hack would work with the harmony remote control the same way?
Title: Re: Logitech harmony ultimate
Post by: myles111au on May 01, 2015, 07:00:28 pm
Thanks, sounds like a good option, I will do some research!
Title: Re: Logitech harmony ultimate
Post by: reneboer on May 02, 2015, 05:26:24 am
Hi,

Let me know what you find out. I have a Hue and the Vera plugin can control that as well as my Harmony so I cannot use this route without braking that, but maybe I can add it for those that do not have a Hue or do not want to control it via their harmony.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on May 02, 2015, 05:30:58 am
Thanks for the speedy reply Rene. I already had the buttons mapped but had not changed the poll interval and it is now working perfectly.

Are there any negatives to having the poll interval set very low (say 5 seconds) other than network traffic?

Thanks again for your help.
It has a lowest poll value of ten seconds to keep also the load on the Vera limited. For most situations I find the more than fast enough. My TV activity takes 40 seconds to turn it all on and set the correct inputs and what not (and the Harmony does not even get it right all of the times in those 40 secs). So having the Vera do something a tad after that does not seem an issue.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Gklmdawson on May 02, 2015, 10:41:11 pm
Quote from: jeff3lo on May 01, 2015, 09:51:24 pm (http://forum.micasaverde.com/index.php?topic=31920.msg232662#msg232662)

Quote
Got it all set up with my Vera Lite UI5 and on my Raspberry Pi, just waiting for the Echo to try!

Question:  I also have a Phillips Hue hub at home, will they coexist with each other, or more like only one or the other will work?

Thanks.



I have both running through the Echo, and they seem to be fine together.<br/>

It looks like it might not interfere with an existing hue setup
Title: Re: Logitech harmony ultimate
Post by: wezley69 on May 26, 2015, 06:36:39 pm
How can I use this plugin to directly set the volume of Onkyo receiver that is a child device?
Title: Re: Logitech harmony ultimate
Post by: thacolonel on June 16, 2015, 02:56:16 pm
I'd like to share how I have managed to get my Veralite to react to button presses on my Harmony remote. For this example I wanted my Vera to know when I pressed pause/play while watching Uverse, that way I could control lights accordingly. I have a Flirc IR USB controller on my HTPC which is also running Eventghost. First I mapped the Harmony control buttons in Flirc as keyboard presses and made sure they were being recognized by Eventghost. Then I created Flirc as a device through the Harmony App. In my Uverse activity, I created sequences for the pause and play buttons which first sent Uverse command then pause/play commands on Flirc. Since Eventghost is limited on what Vera devices it can control, I use VoxCommando which is awesome at not only reacting to events from Vera but also in issuing commands including Multiswitches! I set up Eventghost to send commands to Voxcommando which then sends command to Vera to trigger the Multiswitch. Then obviously you can do whatever you want from there using PLEG to react to these. The result is instant control of my z-wave lights and other devices with Harmony button presses.

Also I have my Vera pause Uverse when I get up and leave the room and then play when I return so the above helps let Vera know when I have manually paused/play and react accordingly.
Title: Re: Logitech harmony ultimate
Post by: huveu on June 16, 2015, 07:05:45 pm
Has anybody updated the hub's firmware to 4.x? The newest iOS app has an option for doing it. However, it also mentions that it is not reversible. I'm worried that it might mess with the api this plugin uses.

I have a Smart Control, so it's not one of the newest ones.
Title: Re: Logitech harmony ultimate
Post by: reneboer on June 17, 2015, 04:38:11 am
How can I use this plugin to directly set the volume of Onkyo receiver that is a child device?
Hi,

Have you created buttons on the child device that map to the volume control commands of the Onkyo? You can the click those. Or am I missing what you are trying to do?

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: reneboer on June 17, 2015, 04:40:37 am
I'd like to share how I have managed to get my Veralite to react to button presses on my Harmony remote. For this example I wanted my Vera to know when I pressed pause/play while watching Uverse, that way I could control lights accordingly. I have a Flirc IR USB controller on my HTPC which is also running Eventghost. First I mapped the Harmony control buttons in Flirc as keyboard presses and made sure they were being recognized by Eventghost. Then I created Flirc as a device through the Harmony App. In my Uverse activity, I created sequences for the pause and play buttons which first sent Uverse command then pause/play commands on Flirc. Since Eventghost is limited on what Vera devices it can control, I use VoxCommando which is awesome at not only reacting to events from Vera but also in issuing commands including Multiswitches! I set up Eventghost to send commands to Voxcommando which then sends command to Vera to trigger the Multiswitch. Then obviously you can do whatever you want from there using PLEG to react to these. The result is instant control of my z-wave lights and other devices with Harmony button presses.

Also I have my Vera pause Uverse when I get up and leave the room and then play when I return so the above helps let Vera know when I have manually paused/play and react accordingly.
Nice. Thanks for sharing.
Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: huveu on July 18, 2015, 10:09:24 am
Has anybody updated the hub's firmware to 4.x? The newest iOS app has an option for doing it. However, it also mentions that it is not reversible. I'm worried that it might mess with the api this plugin uses.

I have a Smart Control, so it's not one of the newest ones.

Anyone?

One more question. I use the sleep feature from the harmony a lot, however, this is not available from the plugin. Would it be possible to add it? (I tried setting up to sniff the traffic from the phone app, but couldn't get it to work)
Title: Re: Logitech harmony ultimate
Post by: reneboer on July 20, 2015, 05:11:53 am
Hi huveu,

I can confirm it all works with a Smart Hub (not Home) and the 4.x software on it. Does not make any difference for the hub.

For a timer like function, I assume you mean turn everything off after x minutes after hitting some key? You can add a scene that turns it off after x minutes, or maybe the countdown timer plugin can be used.

I can put a sleep timer button on the to-do list for a next version.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: huveu on July 23, 2015, 07:03:47 pm
Hi huveu,

I can confirm it all works with a Smart Hub (not Home) and the 4.x software on it. Does not make any difference for the hub.

For a timer like function, I assume you mean turn everything off after x minutes after hitting some key? You can add a scene that turns it off after x minutes, or maybe the countdown timer plugin can be used.

I can put a sleep timer button on the to-do list for a next version.

Cheers Rene

Thanks for the confirmation on the 4.x software. I'll go ahead an update sometime soon.

As far as the sleep. I hadn't thought about that approach :( I was referring to the standard sleep functionality on the Harmony app and I was thinking about sniffing it to make it use the api for it. However, you are totally right, I'll just write a scene for it.
Title: Re: Logitech harmony ultimate
Post by: aptalca on July 24, 2015, 11:23:04 pm
Hi reneboer,

I had mentioned before that sometimes when I issued http commands to this plugin through the amazon echo, it would take up to a minute before harmony responded and in the meantime, it would get partially locked up and wouldn't respond to the remote either.

I have been testing it more and noticed that it doesn't only happen when http commands are issued to the plugin. I tried starting an activity in the cp.mios web gui and the same thing happened. The plugin thought the activity started, no errors were shown, but the hub was stalled for about a minute and then it started the activity.

Is there any way I can access logs or troubleshoot what's going on? It never happens with the rf remote or the android app. Only with this plugin.

I have the smart control hub and this problem started after I updated to v4 firmware. Unfortunately it is not possible to downgrade.

Thanks

Any ideas?
Title: Re: Logitech harmony ultimate
Post by: reneboer on July 25, 2015, 02:09:55 pm
Hi aptalca,

I found that the behaviour you are describing happens when the communication timeout is set to 5 seconds or less. I am now testing a fix that will show the plugin as busy until the activity has really started. This will also fix an issue where the CurrentActivityID value would be changing multiple times between the old and new activity. If you have a scene or notification on the current activity you would trigger that multiple times.

I hope to release the new version tomorrow. Need a bit more regression testing.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: aptalca on July 25, 2015, 02:32:36 pm
Great. I'm glad you identified the issue. It was driving me nuts because it only happens intermittently
Title: Re: Logitech harmony ultimate
Post by: reneboer on July 26, 2015, 04:59:57 pm
Hi All,

Just put version 2.4 out there. Please see the initial topic on this tread for the changes and fixes http://forum.micasaverde.com/index.php/topic,28689.0.html (http://forum.micasaverde.com/index.php/topic,28689.0.html).

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: aptalca on August 06, 2015, 08:06:12 am


Hi aptalca,

I found that the behaviour you are describing happens when the communication timeout is set to 5 seconds or less. I am now testing a fix that will show the plugin as busy until the activity has really started. This will also fix an issue where the CurrentActivityID value would be changing multiple times between the old and new activity. If you have a scene or notification on the current activity you would trigger that multiple times.

I hope to release the new version tomorrow. Need a bit more regression testing.

Cheers Rene

Hi Rene,

The latest update seems to work every time. No more lock ups.

The only thing is, when I issue the "activity on" command through the echo, which in turn sends the http request to the plugin, I guess it takes too long to get the response back so the echo says "the device named media center cannot be reached" every time. It's not a big deal as the command goes through and the devices turn on nonetheless, but I thought I'd let you know.

Thanks
Title: Re: Logitech harmony ultimate
Post by: tomgru on August 18, 2015, 07:43:15 pm
New control from Logitech for the Harmony remote.  Personally, i have the ecobee, so this seems pretty interesting.
http://blog.logitech.com/2015/08/13/harmony-announces-4-new-smart-home-integrations/?utm_source=cta

Title: Re: Logitech harmony ultimate
Post by: NickTheGreat on August 19, 2015, 05:27:17 pm
New control from Logitech for the Harmony remote.  Personally, i have the ecobee, so this seems pretty interesting.
http://blog.logitech.com/2015/08/13/harmony-announces-4-new-smart-home-integrations/?utm_source=cta



Why Insteon?   ::)  :'(
Title: Re: Logitech harmony ultimate
Post by: reneboer on August 20, 2015, 06:50:57 am


Hi aptalca,

I found that the behaviour you are describing happens when the communication timeout is set to 5 seconds or less. I am now testing a fix that will show the plugin as busy until the activity has really started. This will also fix an issue where the CurrentActivityID value would be changing multiple times between the old and new activity. If you have a scene or notification on the current activity you would trigger that multiple times.

I hope to release the new version tomorrow. Need a bit more regression testing.

Cheers Rene

Hi Rene,

The latest update seems to work every time. No more lock ups.

The only thing is, when I issue the "activity on" command through the echo, which in turn sends the http request to the plugin, I guess it takes too long to get the response back so the echo says "the device named media center cannot be reached" every time. It's not a big deal as the command goes through and the devices turn on nonetheless, but I thought I'd let you know.

Thanks
Hi aptalca,

The HTML interface indeed does not return anything until the activity has started and that can be well over 30 seconds as you know. Maybe I can see how to enhance that, maybe by not waiting on completion for the HTML requests. Would require some logic change but should be doable. Nice one to mull about after a relaxing vacation :-)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 12:35:18 am
Cool idea on the cameras - I don't have any cameras setup yet, but I'll keep this in mind when I add some.
How about using something like this?

Create a new scene, and add this to the LUUP tab. Change harmonyId and activity at the top to match your harmony device ID in vera and the activity id for your android plugin:

Code: [Select]
local harmonyId = 40           -- ID of the Harmony plugin
local delay = 30                   -- Delay in Seconds
local activity = "11982862"     -- The ID of the activity you want to switch To

--store the current activity ID
local cur_activity = luup.variable_get("urn:rboer-com:serviceId:Harmony1", "CurrentActivityID", harmonyId)

if (cur_activity == activity) then
     return false
end

--Tell the Harmony to start the new activity
luup.call_action("urn:rboer-com:serviceId:Harmony1", "StartActivity", {newActivityID = activity}, harmonyId)
-- Call the function to put the previous activity back after delay seconds
luup.call_delay( 'restore_previous_activity', delay, tostring(cur_activity))

function restore_previous_activity(activity_to_restore)
   luup.call_action("urn:rboer-com:serviceId:Harmony1", "StartActivity", {newActivityID = tonumber(activity_to_restore)}, harmonyId)
end

I have another setup that i'd love to be able to use this plugin to control. I think it could be incorporated into the LUUP that Starcruiser1229 provided a while back. Essentially i need the code to select the "Off" activity if a specific activity is the current activity.

The application in this case is different. I have some blinds that have an IR sensor which can raise or lower them. I was able to add them as a device on my Hamony Hub and i ran an IR emitter from the hub to the IR sensor on the blinds. So i have two activities (Raise & Lower) setup in the Harmony Hub.

In terms of the plugin, I'm successfully using the code above from Starcruiser1229 to control the blinds with minimal interruption while watching TV or other activity. However, if the current activity happens to be "Blinds Lower" i don't want the plugin to recall that if i run the "Blinds Raise" activity and vice versa, for obvious reasons. I intend to make two scenes that raises the blinds at sunrise and lowers them at sunset. My concern is that if no other activity run inbetween those two scenes, the hub will keep one of them activated and (based on the previous LUUP) would recall that.

Would it be possible to include in the code the rule that if the current activity is either Raise or Lower then the activity switches to Off?
Thanks so much, in advance, for any help anyone is able to provide. This plugin is great and much more useful than what logitech's hub extender seems to be.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 10, 2015, 10:02:20 am
Hi wsyaeger,

I must admit I do not quite follow why you have defined an activity to raise and lower the blinds. If you have a device created on your Harmony you can also create that device on your Vera and define the buttons to raise and lower. You can control those commands via the UI, include them as commands in a scene or from LUUP.

If you want to automatically lower the blinds when the TV activity is started, you can make a scene that lowers the blinds and is triggered when the Harmony Hub activity changes to TV. You can also make one scene that raises them when an other activity then TV is started and it is not past sunset yet.

Not sure if that covers all your scenarios, but plenty of options. And not all require you to define a new activity on the Harmony.

have fun. Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 11:10:24 am
Thanks Rene. I wish it was that easy.  And I expected that confusion.  I should have classified initially. 
Unfortunately my blinds require multiple "IR activations" to power on and then be controlled.  For example, using the original manufacturer remote, I have to hold the up button for 5-10 seconds before the blinds actually start raising.  As such, on the beta device that was created a single push on the up button had no effect.  I've also tried creating a scene in vera in which the up button is pressed multiple times but the shortest delay between actions in beta scene creation is 1 sec.  and that is too long to be effective as well. 
So, my only working option was to create an activity through the hub in which I could send 15 immediate button presses.  Unfortunately, once that activity is started, it doesn't turn off automatically.  In the activity I have all of the button presses in the start activity sequence and no commands in the end sequence. 
I hope that clears up the confusion.
Thanks again for your time and input. 
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 11:13:53 am
Hi wsyaeger,

I must admit I do not quite follow why you have defined an activity to raise and lower the blinds. If you have a device created on your Harmony you can also create that device on your Vera and define the buttons to raise and lower. You can control those commands via the UI, include them as commands in a scene or from LUUP.

If you want to automatically lower the blinds when the TV activity is started, you can make a scene that lowers the blinds and is triggered when the Harmony Hub activity changes to TV. You can also make one scene that raises them when an other activity then TV is started and it is not past sunset yet.

Not sure if that covers all your scenarios, but plenty of options. And not all require you to define a new activity on the Harmony.

have fun. Cheers Rene


Thanks Rene. I wish it was that easy.  And I expected that confusion.  I should have clarified initially. 
Unfortunately my blinds require multiple "IR activations" to power on and then be controlled.  For example, using the original manufacturer remote, I have to hold the up button for 5-10 seconds before the blinds actually start raising.  As such, on the vera device that was created a single push on the up button had no effect.  I've also tried creating a scene in vera in which the up button is pressed multiple times but the shortest delay between actions in vera scene creation is 1 sec.  and that is too long to be effective as well. 
So, my only working option was to create an activity through the harmony hub in which I could send 15 immediate button presses.  Unfortunately, once that activity is started, it doesn't turn off automatically.  In the activity I have all of the button presses in the start activity sequence and no commands in the end sequence. 
I hope that clears up the confusion.
Thanks again for your time and input.

Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 11:16:28 am
Hi wsyaeger,

I must admit I do not quite follow why you have defined an activity to raise and lower the blinds. If you have a device created on your Harmony you can also create that device on your Vera and define the buttons to raise and lower. You can control those commands via the UI, include them as commands in a scene or from LUUP.

If you want to automatically lower the blinds when the TV activity is started, you can make a scene that lowers the blinds and is triggered when the Harmony Hub activity changes to TV. You can also make one scene that raises them when an other activity then TV is started and it is not past sunset yet.

Not sure if that covers all your scenarios, but plenty of options. And not all require you to define a new activity on the Harmony.

have fun. Cheers Rene


Thanks Rene. I wish it was that easy.  And I expected that confusion.  I should have clarified initially. 
Unfortunately my blinds require multiple "IR activations" to power on and then be controlled.  For example, using the original manufacturer remote, I have to hold the up button for 5-10 seconds before the blinds actually start raising.  As such, on the vera device that was created a single push on the up button had no effect.  I've also tried creating a scene in vera in which the up button is pressed multiple times but the shortest delay between actions in vera scene creation is 1 sec.  and that is too long to be effective as well. 
So, my only working option was to create an activity through the harmony hub in which I could send 15 immediate button presses.  Unfortunately, once that activity is started, it doesn't turn off automatically.  In the activity I have all of the button presses in the start activity sequence and no commands in the end sequence. 
I hope that clears up the confusion.
Thanks again for your time and input.
I apologize for the double post.  I was trying to edit on my mobile while out with my kids and clearly have no idea what I'm doing. 
Title: Re: Logitech harmony ultimate
Post by: Aaron on October 10, 2015, 11:27:48 am
@wsyaeger
I suggest decoupling your Vera scene(s) for your Blinds into several state conditions - and keeping track of the state of the blinds using PLEG, MultiString, MultiSwitch (my favorite for multiple variables requiring manual control/testing on occasion), Virtual Device (favorite for frequent manual control via Smartphone/Web), etc.

This way you can create a SmartSwitch, LUUP scene, or PLEG condition/action that has more fine tuned control.

example...

Harmony Virtual Device (HVD) keeps track of if the Blinds are up/down (VD is on/off)
When you use your Harmony, PLEG sees this and turns HVD on/off.
PLEG detects this HVD change, time of day, and if Kodi is playing a video to close or open the Blinds (2 separate conditions/actions)
PLEG detects when you stop watching a show, time of day, to determine if it should turn the VD on or off
PLEG detects you stopped watching a show and after 5 minutes of no Motion it closes the Blinds
...etc
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 10, 2015, 12:13:20 pm
Thanks Rene. I wish it was that easy.  And I expected that confusion.  I should have classified initially. 
Unfortunately my blinds require multiple "IR activations" to power on and then be controlled.  For example, using the original manufacturer remote, I have to hold the up button for 5-10 seconds before the blinds actually start raising.  As such, on the beta device that was created a single push on the up button had no effect.  I've also tried creating a scene in vera in which the up button is pressed multiple times but the shortest delay between actions in beta scene creation is 1 sec.  and that is too long to be effective as well. 
So, my only working option was to create an activity through the hub in which I could send 15 immediate button presses.  Unfortunately, once that activity is started, it doesn't turn off automatically.  In the activity I have all of the button presses in the start activity sequence and no commands in the end sequence. 
I hope that clears up the confusion.
Thanks again for your time and input.
You can tweak some of the Harmony Hub code in L_Harmony.lua. If you look for function Harmony_IssueDeviceCommand you see I send a press followed by a release command to simulate a short key press. If you change that to a long press with a 5 second delay before the release is issued it may work for you. You can add it as a new action you can then use with the luup.call_action from your LUUP code.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 02:59:34 pm
@wsyaeger
I suggest decoupling your Vera scene(s) for your Blinds into several state conditions - and keeping track of the state of the blinds using PLEG, MultiString, MultiSwitch (my favorite for multiple variables requiring manual control/testing on occasion), Virtual Device (favorite for frequent manual control via Smartphone/Web), etc.

This way you can create a SmartSwitch, LUUP scene, or PLEG condition/action that has more fine tuned control.

example...

Harmony Virtual Device (HVD) keeps track of if the Blinds are up/down (VD is on/off)
When you use your Harmony, PLEG sees this and turns HVD on/off.
PLEG detects this HVD change, time of day, and if Kodi is playing a video to close or open the Blinds (2 separate conditions/actions)
PLEG detects when you stop watching a show, time of day, to determine if it should turn the VD on or off
PLEG detects you stopped watching a show and after 5 minutes of no Motion it closes the Blinds
...etc

Thank you Aaron. I have yet to figure out (or at least find the time to really understand PLEG). So for me, at the moment, I don't foresee success any time soon with this method.
Additionally, not sure if it really matters, but i'm not trying to trigger the blinds based on activities. The blinds are actually in another room than my entertainment center. So no cool scenes, like lowering the blinds when starting a movie for me. My desire is pure automation to have my bedroom blinds raise and lower and the beginning and end of the day. I can successfully accomplish this through the harmony app. The limitation i'm running into though is since the blinds are unrelated to entertainment activities, I need it all to run in the background. So if i'm watching tv at sunset and and the blinds (as scheduled) lower, I don't want the switching of activities (from tv to blinds) to turn off the tv (or make the tv uncontrollable by remote, which is what happens currently). Hence, using the recall function to the previous activity.

I think Rene's suggestion may be the best way to implement what i'm looking for. Thank you for your input!
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 03:52:11 pm
You can tweak some of the Harmony Hub code in L_Harmony.lua. If you look for function Harmony_IssueDeviceCommand you see I send a press followed by a release command to simulate a short key press. If you change that to a long press with a 5 second delay before the release is issued it may work for you. You can add it as a new action you can then use with the luup.call_action from your LUUP code.

Cheers Rene

Thank you so much Rene. This sounds very promising although it sounded more promising when I think I misunderstood your suggestion.  Although my likely misunderstanding did give me a thought that would simplify this application for me and may be of use to more users. 

So I'll start with what I initially thought you were saying and I think would be ideal.  When the plugin creates a device and populates the buttons based on what is in the harmony hub, could there be a way to customize how the device buttons respond to a press and either act like a short press or a long press?
For my need this would be ideal because I don't really want to change activities just to control the blinds, I just want to be able to press the device buttons.  But to overcome the long press limitation I've had to create an activity to send multiple short presses, but leads to other complications.  If the plugin device buttons are capable of simulating a long press, that would be the end of my problems and I imagine may help other users that may be able to utilize a long press (for instance a single volume button press simulates a 2 second press thereby changing the volume multiple increments rather than repeated presses resulting in single increment volume changes). I don't know the difficulty of incorporating this function into the plugin but I do see some value. 

Back to what you were trying to explain - I downloaded the L_Harmony.lua file from my vera and found three instances of Harmony_IssueDeviceCommand but I can't determine from there how I would add a delay to create a new action, let alone add that to to the luup using luup.call_action.

Could you please provide further guidance.  Thank you so much.  I really appreciate your time and efforts. 
Title: Re: Logitech harmony ultimate
Post by: Aaron on October 10, 2015, 05:10:22 pm
Thank you Aaron. I have yet to figure out (or at least find the time to really understand PLEG). So for me, at the moment, I don't foresee success any time soon with this method.
Additionally, not sure if it really matters, but i'm not trying to trigger the blinds based on activities. The blinds are actually in another room than my entertainment center. So no cool scenes, like lowering the blinds when starting a movie for me. My desire is pure automation to have my bedroom blinds raise and lower and the beginning and end of the day. I can successfully accomplish this through the harmony app. The limitation i'm running into though is since the blinds are unrelated to entertainment activities, I need it all to run in the background. So if i'm watching tv at sunset and and the blinds (as scheduled) lower, I don't want the switching of activities (from tv to blinds) to turn off the tv (or make the tv uncontrollable by remote, which is what happens currently). Hence, using the recall function to the previous activity.

I think Rene's suggestion may be the best way to implement what i'm looking for. Thank you for your input!

*don't take this as nagging, I promise it is not my intent - just trying to help*

The method you are chasing down might work but IMO you are trying to make Harmony do something that is not the core intent of the hardware/software... vs using Vera which is meant to do exactly what you are trying to do and can do it much better for many reasons - and without messing up your Harmony activities.
Harmony is not meant for background actions ("real" home automation); it is meant for very basic input/response (Push Button = TV ON & Light OFF, etc)

1) Vera is a far more robust method that can late be integrated into more home automation later - with almost no effort. And as you say, run in the background... the entire reason you most have a Vera :) ?

2) You can trigger the action(s) by simply using any button you wish on your Harmony remote. I assign the color buttons (Yellow, Blue, Green, Red) to do specific things. Works perfectly.

Hope you get it running :)
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 10, 2015, 06:08:15 pm
Again, thank you Aaron.  I appreciate your thoughts and do agree with you.  However that's what I really love about this plugin- I think it adds so much more potential to the harmony hub.  It allows me to take advantage of some older tech in my home that otherwise would go unused (I have some IR controlled lights that I use the harmony hub via vera to control as an independent device).  When I moved into my my home the IR lights and IR blinds were already installed.  So I'm basically trying to bring them up to current tech standards. 
At one point I really wanted the hub extender but after learning about its capabilities and knowing the capabilities of this plugin, there's no reason I could think of to add the extender.  This plugin is what the extender should have been. 
Anyway, yes, there are better ways for me to add these devices and functionality to vera. Really I could upgrade the equipment or use a device like IP to IR adapter like. global cache but the extra expense is hard to justify.  Besides the tinkering and learning is half the fun, albeit frustrating and time consuming. 
Thank you again for your time.  I hope I get it running too! :D
Title: Re: Logitech harmony ultimate
Post by: Aaron on October 10, 2015, 06:41:13 pm
Gotcha. Agreed, I'm not sure what benefit, if any, the Logitech Hub Extender would provide... I suspect none as we can do everything with the Vera. And, I have a Wink so that adds ZWave+ and Zigbee support that can be leverage with the Vera also.

I envy you with the IR controlled blinds... I have so many windows in this house I need automation for them... the main room alone has six 72" tall windows with roll shades... would love to automate them, been waiting for a cheap Zwave or Wifi method like this device uses to replace the cord tensioner... https://www.kickstarter.com/projects/789589988/movemotorize-blinds-and-shades
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 12, 2015, 04:26:41 am
Thank you so much Rene. This sounds very promising although it sounded more promising when I think I misunderstood your suggestion.  Although my likely misunderstanding did give me a thought that would simplify this application for me and may be of use to more users. 

So I'll start with what I initially thought you were saying and I think would be ideal.  When the plugin creates a device and populates the buttons based on what is in the harmony hub, could there be a way to customize how the device buttons respond to a press and either act like a short press or a long press?
For my need this would be ideal because I don't really want to change activities just to control the blinds, I just want to be able to press the device buttons.  But to overcome the long press limitation I've had to create an activity to send multiple short presses, but leads to other complications.  If the plugin device buttons are capable of simulating a long press, that would be the end of my problems and I imagine may help other users that may be able to utilize a long press (for instance a single volume button press simulates a 2 second press thereby changing the volume multiple increments rather than repeated presses resulting in single increment volume changes). I don't know the difficulty of incorporating this function into the plugin but I do see some value. 
Hi,
I like the idea of adding a possible delay to the button definitions. I will work on that in the next two weeks (tad busy) for the new release.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 12, 2015, 07:49:57 am


Hi,
I like the idea of adding a possible delay to the button definitions. I will work on that in the next two weeks (tad busy) for the new release.

Cheers Rene

Awesome! Thanks so much, Rene. Please let me know if there's anything I can do to help or test. 
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 12, 2015, 08:53:37 pm


Gotcha. Agreed, I'm not sure what benefit, if any, the Logitech Hub Extender would provide... I suspect none as we can do everything with the Vera. And, I have a Wink so that adds ZWave+ and Zigbee support that can be leverage with the Vera also.

I envy you with the IR controlled blinds... I have so many windows in this house I need automation for them... the main room alone has six 72" tall windows with roll shades... would love to automate them, been waiting for a cheap Zwave or Wifi method like this device uses to replace the cord tensioner... https://www.kickstarter.com/projects/789589988/movemotorize-blinds-and-shades

I only wish the previous owner of my house had given all the blinds IR control. That Kickstarter looks pretty cool.  Like you, I'd love an affordable solution to add automation functionality to blinds throughout the house.  One day...

As Rene has shown, yet another huge perk of this over the harmony hub extender - awesome support and access! There are a lot of great developers out there helping the community :D
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 15, 2015, 12:49:11 pm
Hi All,

Just uploaded version 2.5. See the first topic for details http://forum.micasaverde.com/index.php/topic,28689.0.html (http://forum.micasaverde.com/index.php/topic,28689.0.html).

It has the option to send a device command for multiple seconds. I.e. simulate a button hold.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: wsyaeger on October 15, 2015, 01:28:37 pm
Hi All,

Just uploaded version 2.5. See the first topic for details http://forum.micasaverde.com/index.php/topic,28689.0.html (http://forum.micasaverde.com/index.php/topic,28689.0.html).

It has the option to send a device command for multiple seconds. I.e. simulate a button hold.

Cheers Rene

What a turn around! Thank you so much, Rene! I forced the plugin update and so far so good. I really appreciate your efforts.
Title: Re: Logitech harmony ultimate
Post by: reneboer on October 15, 2015, 02:55:25 pm
Hi All,

Just uploaded version 2.5. See the first topic for details http://forum.micasaverde.com/index.php/topic,28689.0.html (http://forum.micasaverde.com/index.php/topic,28689.0.html).

It has the option to send a device command for multiple seconds. I.e. simulate a button hold.

Cheers Rene

What a turn around! Thank you so much, Rene! I forced the plugin update and so far so good. I really appreciate your efforts.
Yes found some time to trace the android app and found out how to do it. Much of the rest I had done, so a release was due any way.

Hope you get your blinds working ok now.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 08, 2016, 09:54:09 pm
Just found this thread after asking some questions in the Harmony Hub Extender thread. I am trying to find out if it's possible, with just and Ultimate and Hub, to have soft buttons on the Ultimate to trigger scenes on the Vera through a simple line of web code?

I use a web string command to control the Vera to activate scenes automatically when using CinemaVision in Kodi. CV reaches a point in it's sequence and sends a simple command and the Vera responds perfectly. Is it possible to program this command into the Harmony Ultimate as a custom button to send the string wirelessly to the network and trigger the Vera?

Ths string looks like this.

http://<Vera IP Address>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<SceneNumber>

Thanks!
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 10, 2016, 07:18:35 am
Hi Batiatus,

Sadly no. The Harmony Hub does not report any command it received and relays. It only reports the current activity.

What I did is install a Keene KIRA and use the plugin from Rex. See this post for some more details http://forum.micasaverde.com/index.php/topic,28689.msg240734.html#msg240734 (http://forum.micasaverde.com/index.php/topic,28689.msg240734.html#msg240734).

I do know there are some more options that others used, like the Amazone Echo (US only :-( ) or with a Raspberry PI.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 10, 2016, 02:30:18 pm
Thanks for the reply. Sounds like the simplest is it just pick up the hub extender.
Title: Re: Logitech harmony ultimate
Post by: reneboer on January 11, 2016, 04:59:53 am
Hi Batiatus,

That is sure an option although it seem to have its problems too. Have you read this tread?
http://forum.micasaverde.com/index.php/topic,34206.0.html (http://forum.micasaverde.com/index.php/topic,34206.0.html)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 11, 2016, 03:12:50 pm
I have read that thread and posted in it. I'm not in the US with access to the Echo Bridge. Simply want to have a few soft buttons on the Harmony Ultimate that will execute specific scenes on the Vera. 5 or 6 total. I don't want to control individual Z-Wave devices with the Ultimate or set specific light levels or lock the front door or anything complicated. Simply execute scene 1 through 5 as already defined in the Vera.

On a web browser on the network I can enter the string I posted before and it will trigger the Vera to execute the scene. This instalation doesn't have a PC on full time and if the Hub Extender will give control over the Vera to the Ultimate, even just to execute scenes, that's far simpler than setting up a Pi with programming commands and so on that the end user will never ber able to understand should something stop functioning.

Bummer there's no simpler way than adding another $100 to an already $300 remote.
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 29, 2016, 11:36:09 pm
Another things I've been curious about. With the Hub Extender is it possible to create a Vera scene to trigger an activity on the Ultimate? Turn on, switch,turn off activities? If so I could use a z-wave keypad to activate a scene which turns on all lights to proper levels while firing the hub to turn on all equipment and similarly turn everything off as well.
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on January 30, 2016, 03:42:45 am
Another things I've been curious about. With the Hub Extender is it possible to create a Vera scene to trigger an activity on the Ultimate? Turn on, switch,turn off activities? If so I could use a z-wave keypad to activate a scene which turns on all lights to proper levels while firing the hub to turn on all equipment and similarly turn everything off as well.

You don't need the extended for that.
You can do what already with the normal hub and plugin.

I have my harmony turning all off when I set my alarm, tv scene on in the morning and setting to news send I've got a set of RGB LED's with an ir control.mounted under my tv unit.
These are a device on harmony but not in a harmony scene.
Vera controls these via the plugin setting the color based on outside temp.

Lastly the feedback from harmony to Vera as to which scene is selected I use as a trigger for 2 things.
Harmony "watch movie night" is a trigger for Vera to turn my living room lights off.
Harmony scene "party with mtv"  causes Vera to turn on a disco ball and turn off the lights.

The extender allows harmony to see the devices on your Zwave network so you can include them in harmony scenes or change them as devices on harmony.
Great if your Vera network is purely zwave. As half mine is 433Mhz it's not something I'm going to bother with.
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 30, 2016, 05:43:46 am
I'm sorry, what plugin (and where ) is required for this?

What I'd like to be able to do is 2 things. Have a Vera Scene that can be manually triggered (on an app or by z-wave remote) that will tell the Harmony to run activity "Watch TV" and if all equipment is off turn it on, switch inputs etc. Basically the Vera telling the Harmony to run activity "Watch TV" and the Harmony does whatever it does to make sure everything is on and switched. Same for turning all equipment off.

Second I'd like if possible to have mapped buttons on the Harmony to trigger scenes on the Vera to control lights. Scene 1 to turn these lights on. Scene 2 to dim these lights and so on.

Are either of these possible without the Extender and if so, and please forgive my ignorance, what is needed to get them set up?
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on January 30, 2016, 06:11:30 am
Just search on your install apps for harmony and you'll get the plugin.


It talks via up to the harmony hub, no need for the extender.

You can easily do the first part of what you want.
The harmony plugin mimics the  control you have with a mobile harmony app.
So you can control everything that harmony does, every button or harmony scene.

Harmony doesn't communicate anything more than what harmony scene is running though however, so the second part of what you want can't be done via the plugin.

Vera polls harmony to see what scene is currently running, you can then get Vera to act on that.

I have 4 scenes on harmony that are almost identical except for different audio settings on my sound bar.

Watch satellite, watch satellite night, watch satellite movie, party with mtv.

Although each is almost the same at the harmony end, when Vera polls harmony and sees the different mode, that triggers a scene in Vera.
Watch satellite does nothing, watch satellite night turns off my lamp, watch satellite movie is all lights and blinds, party with mtv is all lights, blinds and turns on a disco light.

You cannot with the pluging turn a Vera device on and off directly, but with the extender hub you can. But as far as I'm aware the extender just acts as a secondary Zwave controller, so I'm not sure if it can run Vera scenes or plugins. Only zwave as far as I am aware
Title: Re: Logitech harmony ultimate
Post by: Batiatus on January 30, 2016, 06:31:08 am
So with the Harmony app on the Vera, you are using Vera scenes to get your Vera to tell the Harmony Hub to control your devices and activities?

Just trying to make sure I fully understand what you are saying.
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on January 30, 2016, 07:17:30 am
No, I'm using harmony scenes, which Vera detects and rubs it's own scene based in that.
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on January 30, 2016, 07:18:35 am
Vera can control harmony.

Harmony can only tell Vera what harmony scene is currently running
Title: Re: Logitech harmony ultimate
Post by: Batiatus on February 04, 2016, 02:51:42 pm
How are you able to get the IP address for the Harmony Hub? I've got everything else set-up to that point but tried several things and I'm stumped and stuck!
Title: Re: Logitech harmony ultimate
Post by: integlikewhoa on February 04, 2016, 03:12:39 pm
How are you able to get the IP address for the Harmony Hub? I've got everything else set-up to that point but tried several things and I'm stumped and stuck!

I'm sure there is probley an easier way but I can see all IP addresses when I login to my routers IP. I'm assuming it might also be in the Harmony app somewhere too.

The other thing since your asking this question........
You IP address need to stay the same. So most of use would have already done this but in your router settings you should set a IP reservation for your Harmony HUB among all other devices involved so if they were ever disconnected and reconnected they would still have the same IP and things would still work. If power went out you might have alot of things broken if the IP's all change and they can't find or talk to each other again.

If you post more info on router we can help point you to instructions for "DHCP reservation" or google it.
Title: Re: Logitech harmony ultimate
Post by: CarlosB on February 04, 2016, 03:13:19 pm
How are you able to get the IP address for the Harmony Hub? I've got everything else set-up to that point but tried several things and I'm stumped and stuck!
What I did was gave it a static IP through my router with the Mac address on the hub

*edit*
What @integlikewhoa said, lol
Title: Re: Logitech harmony ultimate
Post by: Batiatus on February 04, 2016, 03:38:08 pm
I will have to look into this later. Thanks for the help everyone!
Title: Re: Logitech harmony ultimate
Post by: integlikewhoa on February 04, 2016, 03:45:29 pm
I will have to look into this later. Thanks for the help everyone!

Vera should also be done this same way along with any other devices that you expect to be on the same IP all the time. Really besides guest devices you can setup all your regular devices this way both wifi and wired. Ping sensor plugin will ping the IP of your phones but you need to have you phones IP the same everytime.

Every router should have this ability and it check the MAC address of the device connecting to the router and the router gives it either a random empty IP or if you set it, it will give it the IP you have chosen.

If you have forced the device on the other end to hold a certain IP rather then doing it in the router (router handles all IP's) then you might run into a conflict where the router hands out the same IP to a device that you have another device to force that same IP. DHCP reservation is recommended over STATIC IP's in the end device.
Title: Re: Logitech harmony ultimate
Post by: Batiatus on February 04, 2016, 03:49:31 pm
LOL I have almost 0 experience with managing networks outside of plug in and set the password. But I'm sure I'll be able to figure it out. Sadly won't be able to for a little bit.
Title: Re: Logitech harmony ultimate
Post by: integlikewhoa on February 04, 2016, 04:08:01 pm
LOL I have almost 0 experience with managing networks outside of plug in and set the password. But I'm sure I'll be able to figure it out. Sadly won't be able to for a little bit.

No worries you can always post back if you need help. The model of the router and a google search should bring up the directions you need. If not post the model number here. If you never been in your router before you will need an user and password to get in and it's probley still the default (Find that on google and know it's a security risk) or its something on a decal under the unit. 
Title: Re: Logitech harmony ultimate
Post by: Batiatus on February 11, 2016, 06:03:04 pm
Got into the router and determined the IP. Added that to the Vera app and set up all the buttons I could want. Created scenes to run them (from various apps/controllers) and it works like a charm. Thanks everyone!
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on February 11, 2016, 07:15:05 pm
Glad you got sorted
Title: Re: Logitech harmony ultimate
Post by: n0ir on February 24, 2016, 07:49:56 pm
Great app!

Just upgraded my old Harmony One to the Harmony Companion with a hub, and this app made it possible to control all my equipment from my Vera! Wo-ho! ;)

However, I can't seem to understand how to make my television tuner to switch to s specific channel outside 1-9? If I for example want to switch to channel 77, how would I do that?
Title: Re: Logitech harmony ultimate
Post by: wezley69 on February 24, 2016, 09:15:26 pm
Create a scene and add the harmony hub for the device.  Under "Advanced Editor" You can then chose device and commands to send.  You can't send "77" at the same time with no delay.  You will have to send "7" then delay one second and then "7" again.  That's how I do it.  You can name it what you like and if you have an amazon echo and integrate you can say "Alexa turn on Sci-Fi.  I do use it with DirecTV.  See screenshot of the scene.
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 25, 2016, 05:06:02 am
Hi,

I actually have not thought about sending multiple like that for channel selections. Not quite sure how to fit it in the current set-up of the child devices, but I will add it to the required features list. There is now a child board for this plug in, you can post this type of suggestions there too. http://forum.micasaverde.com/index.php/board,83.0.html (http://forum.micasaverde.com/index.php/board,83.0.html)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: n0ir on February 25, 2016, 05:45:38 am
Thanks @wezley69! I'll try this when I get home!

@reneboer, please do! My plan is to use a easy button (maybe a Flic) to start our TV set and switch to a specific channel so the kids can watch their saturday cartoons without waking me and the wife... ;)
Title: Re: Logitech harmony ultimate
Post by: reneboer on February 25, 2016, 06:43:32 am
Thanks @wezley69! I'll try this when I get home!

@reneboer, please do! My plan is to use a easy button (maybe a Flic) to start our TV set and switch to a specific channel so the kids can watch their saturday cartoons without waking me and the wife... ;)
Wouldn't it be better to make an activity on the Hub for that they can start? The plug in will not be as smart as the Hub, it will just shoot out some commands in sequence.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: B3rt on April 04, 2016, 09:41:07 am
I got myself today a harmony hub and installed the app.

I added a few childs (2 devices) which i can control using the vera UI7.

Now i wanted to use/include them in my LUA/luup code..

Is there an example how i can switch on/off a (child) devices using lua code.
For example i added my aplifier as child device (id #231) and assinged 2 buttons, button 1 is 'Off' and button 2 is 'On', when i press them in vera UI they work.

Which lua code can i use to switch the amplifier on and off  in a scene?
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 04, 2016, 11:40:27 am
Hi B3rt,

Each of the buttons map to a command send to the Hub. Something like PowerOn, PowerOff, PowerToggle. You can use those in the luup.call_action function as shown in the user guide found here http://forum.micasaverde.com/index.php/topic,36437.0.html (http://forum.micasaverde.com/index.php/topic,36437.0.html).

If you just want to turn a device on or of in a Scene you can also include the device in the scene directly. It is not required to use LUA, but of-course you can (I do  ;) ).

Have fun.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: B3rt on April 04, 2016, 05:07:21 pm
Do you have a working example?

When i use the examples in the manual and try to alter them into my setup they do not work.

I tried the following once with no result:

luup.call_action("urn:rboer-com:serviceId:Harmony1", "SendDeviceCommand",{Command="Power On",Duration="0"},231)
luup.call_action("urn:rboer-com:serviceId:Harmony1", "SendDeviceCommand",{Command="Power Off",Duration="0"},231)
luup.call_action("urn:rboer-com:serviceId:Harmony1", "SendDeviceCommand",{Command="Power Toggle",Duration="0"},232)

None of them work, i also get no error but the harmony simply does not repsond, when i press the button in the gui it works.

device 231 = amplifier with a On and Off function (deviceID: 34916985)
device 232 = intel NUC with a powertoggle function (deviceID: 34916985)
harmony app itself = device 229
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 05, 2016, 04:01:21 am
Hi B3rt,

First the commands never have a space character in them. So it should be PowerOn, not Power On. the latter is the description of the command. There are two options to see the actual commands of a device. You can look at the child device variables there you can see all commands you have defined for a button. E.g. Command1 with the command to use like PowerOn and CommandDesc1 with its description. Or you enable the HTTP Request Handler in the settings and use the HTML commands listed in the user guide to query the hub and get a full list of the commands.

Second for the SendDeviceCommand you have to use the SID "urn:rboer-com:serviceId:HarmonyDevice1". In the LuaPNP.log you would have seen an error message that the SendDeviceCommand does not have an implementation. This is an indication that either the command or SID is incorrect.

Success with further development. Let me know when you have it working.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: B3rt on April 05, 2016, 08:14:15 am
Still no luck.

I tried to remove the space but still no responce..
luup.call_action("urn:rboer-com:serviceId:Harmony1", "SendDeviceCommand",{Command="PowerOff",Duration="0"},231)
luup.call_action("urn:rboer-com:serviceId:Harmony1", "SendDeviceCommand",{Command="PowerOn",Duration="0"},231)

I do not understand why i should remove the space, when i open the child app and use setting the commands can be chosen, here a space is used.
So how should i know when to use a space and when not?

But i do not get is, do you have a working example code to switch device 231 on or off?
What is wrong with my code, it is correct, it gives no error but the device does not turn on or off, when i press the button in vera it does, but not using the lua code

When i try to retrieve a list using (229 = my harmony hub and 34916985 is the deviceID of the applifier [id231]) is use this
http://192.168.1.3:3480/data_request?id=lr_Harmony229&cmd=list_device_commands&cmdp1=34916985
The vera unit respond with:  No handler
When i try this:
http://192.168.1.3:3480/data_request?id=lr_Harmony229&cmd=list_activities
I get the same result: No handler

My vera IP is indeed 192.168.1.3 and the ID of the harmony hub app is #229

So i have no idea what i am doing wrong here....
(do you got this manual in dutch aswel?)

I also noticed hat the vera gui does not show the current activity if the harmony hub when set by remote or phone app.
When i change the activity using vera gui it changes and on the remote it is updated aswell, but when i change it again on the remote the vera gui display current activity the last activity set by vera gui NOT what is actually running.

So it seems the app does not retrieve current/live info from the hub but only send commands, is this correct?
Title: Re: Logitech harmony ultimate
Post by: reneboer on April 05, 2016, 11:52:16 am
Hi B3rt,

The correct command is (note the HarmonyDevice1 instead of Harmony1):
Code: [Select]
luup.call_action("urn:rboer-com:serviceId:HarmonyDevice1", "SendDeviceCommand",{Command="PowerOff",Duration="0"},231)
In the settings did you set Enable HTTP Request Handler to yes?

I did find one thing changed and you have to use a slightly different (more standard) way to use the HTTP request handler. This should work, I will update the user guide.
Code: [Select]
http://192.168.1.3/port_3480/data_request?id=lr_Harmony229&cmd=list_activities
The plug in will show the current activity when you set the Current Activity Poll Interval to something else than No Polling. I recommend not anything below 15 seconds to keep the load on the Vera and hub reasonable.

Sorry no Dutch manual (it's my native tongue too, but don't have the time).

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: B3rt on April 05, 2016, 12:31:11 pm
Thx, got it finally working :)
I can now try to use them more interactive/detailed into my scenes!

ps:
I noticed you where dutch (as am i) that is why i asked....
Title: Re: Logitech harmony ultimate
Post by: Scoutmedic on December 24, 2016, 10:31:24 pm
Wow, this topic has a lot of info in in but hasn't been active in quite some time.

Well, I "needed" a new remote for all of my devices and decided to pull the trigger on a Harmony Ultimate and a hub. It was a good deal and worth trying out. It hasn't shown up yet and my time is almost up, so I probably won't get to do much more than just looking at it for a while.

So, what I really want the accomplish, outside of the normal all in one remote, is to have Vera recognize when I'm watching TV and not trigger light scenes based on motion sensors. Then, when I turn things off, the scene is ok to run. From what I've read, it's rather easy to get Vera to control the devices, but tricky to get Vera to recognize the hub state?

Anyone have some input on this? I'd appreciate it.
Title: Re: Logitech harmony ultimate
Post by: Chrisfraser05 on December 25, 2016, 01:40:45 pm
It's fairly simple to get Vera to recognize the state.
All you have to do it set the polling on the harmony plugin to a low enough setting to satisfy your need.

I currently have a pleg condition that reads the harmony scene and writes to a variable container to display the scene on a tablet (tasker).
I have the polling set to about 5 minutes I think because i don't need this to that up to date.

I used to have it set to 5 seconds iirc. This is what I'll do when u add my zwave blinds when i get them. So i can close them on harmony movie scene.
Title: Re: Logitech harmony ultimate
Post by: ascari 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
Title: Re: Logitech harmony ultimate
Post by: reneboer 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
Title: Re: Logitech harmony ultimate
Post by: francoislegrange 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?
Title: Re: Logitech harmony ultimate
Post by: weirdinin on April 09, 2017, 02:21:56 am
Hello,
I have a issue with harmony hub control app (v 2.17). Once in a while the ip address of the harmony hub is lost from the settings of the app. When that happens, I'm not able to control harmony hub via vera. Instead, vera gives an error that harmony hub is not reachable.

The ip of the harmony hub is provided by router so it's static. I have tried to set that static ip to the settings of the app but it disappears from there sometimes. Is anyone else having this problem?

Title: Re: Logitech harmony ultimate
Post by: reneboer on April 12, 2017, 05:35:20 pm
Hi,

Sadly it is a known issue and even worse I have not found out why this happens for some people. I posted a workaround here
http://forum.micasaverde.com/index.php/topic,28689.msg291247.html#msg291247 (http://forum.micasaverde.com/index.php/topic,28689.msg291247.html#msg291247)

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: weirdinin on April 26, 2017, 02:39:39 pm
Many thanks for your reply. I edited the L_Harmony.lua file. Could you please check if I inserted the code on the right line.
Bolded line is the added line:

        local success = true
--   local ipa = luup.devices[HData.DEVICE].ip
   local ipa = luup.attr_get("ip", HData.DEVICE)
   local ipAddress = string.match(ipa, '^(%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?)')
   local ipAddress = '192.168.0.100'
   -- Some cases IP gets stuck in variable and no in attribute (openLuup or ALTUI bug)
   if (ipAddress == nil) or (email == '') or (pwd == '') then
      setStatusIcon(HData.Icon.ERROR)
      SetBusy(false,false)
      setluupfailure(1, HData.DEVICE)
      return false, "Configure IP Address, email and password.", HData.Description
   end
   log("Using Harmony Hub: IP address " .. ipAddress, 3)
   Harmony = HarmonyAPI(ipAddress, email, pwd, commTimeOut, wait)
   if (Harmony == nil) then
      success = false
   else
Title: Re: Logitech harmony ultimate
Post by: reneboer on May 03, 2017, 06:57:21 am
Hi,

yes that is the place to put it in case of trouble.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Bric on August 12, 2017, 01:19:25 pm
Hi,

I upgraded my veralite to UI7, instaled amazon beta and it's working well alexa with vera.
All my setting went ok to UI7.


Problem:  I have scenes on vera that control Harmony Hub with command os.execute(Harmonyhub ......)
These commands are not working any more.  Why?

I have static IP to harmony hub and for vera configured at my router as was always, and always worked.
Title: Re: Logitech harmony ultimate
Post by: reneboer on August 14, 2017, 04:31:49 am
Hi,

I upgraded my veralite to UI7, instaled amazon beta and it's working well alexa with vera.
All my setting went ok to UI7.


Problem:  I have scenes on vera that control Harmony Hub with command os.execute(Harmonyhub ......)
These commands are not working any more.  Why?

I have static IP to harmony hub and for vera configured at my router as was always, and always worked.
Hi Bric,

That is the old executable right?. Maybe one of the last Harmony firmwares is causing issues with that, I don't know. Could be time to switch to the Harmony plug in.

Cheers Rene
Title: Re: Logitech harmony ultimate
Post by: Bric on August 21, 2017, 06:47:16 pm
Hi,

I upgraded my veralite to UI7, instaled amazon beta and it's working well alexa with vera.
All my setting went ok to UI7.


Problem:  I have scenes on vera that control Harmony Hub with command os.execute(Harmonyhub ......)
These commands are not working any more.  Why?

I have static IP to harmony hub and for vera configured at my router as was always, and always worked.
Hi Bric,

That is the old executable right?. Maybe one of the last Harmony firmwares is causing issues with that, I don't know. Could be time to switch to the Harmony plug in.

Cheers Rene

Tks! Will see that.  Because was working well few days/weeks ago. 
information about Harmony plugin is at this topic?
Title: Re: Logitech harmony ultimate
Post by: Bric on August 21, 2017, 07:26:28 pm
I really don t know whats happening.



I updated to UI7.  May this be the problem?  Can't i send luup comands like before on UI7 ?

I searched for my harmony hub on router and it is ok with same mac adress and same fixed IP.

Title: Re: Logitech harmony ultimate
Post by: Sammy2 on August 22, 2017, 04:33:11 pm
Quick question..

Elite or Ultimate?