Plugin: Harmony Hub Control

Hi,

Make sure you keep the Ctrl key pressed so the newly selected child device gets added to the list and the existing selection is kept. Else the currently selected are deselected and thus delete

Cheers Rene[/quote]

Got it. Thanks

Hi guys,

I had luup codes on some scene and triggers to send command to Harmony hub. I had UI5 on veralite.

I updated to UI7. May this be the problem? Can’t i send luup comands like before on UI7 ?

I buyed amazon echo too, and instaled the skill for harmony logitech.

I searched for my harmony hub on router and it is ok with same mac adress and same fixed IP.

I really don t know whats happening. Someone told me , may be the last upgrade firmware on harmony hub that stoped accepting luup codes.

Can someone help me?

Hi,

The functionalities between UI5 and UI7 for the plugin are identical, however the control files are different between a UI5 and UI7 version of the plugin and upgrading the firmware may have you stuck with the UI5 version on UI7. You can force an upgrade of the plugin. Go into the variables and empty the version number field. Then reload luup, your Vera may restart one more time., then refresh your browser and try again.

Cheers Rene

Hi

I’m having problems since the latest firmware update. Vera doesn’t seem to be able to consistently communicate with the Harmony hub.

I get the following:

Link Status:Error
Current Activity ID :-1
Last command:list_activities

When I go into settings it says: Error : Failed to get data from Hub

Only if I open the Harmony app on my phone and connect can I go back to Vera and see that it can communicate properly again. Before the firmware upgrade I’ve had no issues at all.

Is there any extra info that would be useful to provide?

Hi,

You can set the Error logging to debug and look at the vera log file on what gets reported by the plugin.

Cheers Rene

I recently started experiencing inconsistency in the responses from Harmony Hub (I also just added second one but I also know there was a firmware update at the same time). I enabled debug logs and here is what I get:

50 09/09/17 9:40:22.967 luup_log:103: Harmony Control: IssueDeviceCommand, devID : 35317426, devCmd : PowerToggle, devDur : 0 <0x774bc320>
50 09/09/17 9:40:22.967 luup_log:103: Harmony Control: Sending command cmd=issue_device_command <0x774bc320>
50 09/09/17 9:40:23.015 luup_log:103: Harmony Control: SubmitCommand, invalid response from Hub instead of acknowledge : <?xml <0x774bc320>
50 09/09/17 9:40:23.015 luup_log:103: Harmony Control: CMD: errcode=503, errmsg=Unknown Harmony response <0x774bc320>
50 09/09/17 9:40:23.016 luup_log:103: Harmony Control: task: CMD: Failed sending command issue_device_command to Harmony Hub - errorcode=503, errormessage=Unknown Harmony response <0x774bc320>
50 09/09/17 9:40:23.016 luup_log:103: Harmony Control: Sending command cmd=issue_device_command <0x774bc320>
50 09/09/17 9:40:23.059 luup_log:103: Harmony Control: SubmitCommand, invalid response from Hub instead of acknowledge : <?xml <0x774bc320>
50 09/09/17 9:40:23.060 luup_log:103: Harmony Control: CMD: errcode=503, errmsg=Unknown Harmony response <0x774bc320>
50 09/09/17 9:40:23.060 luup_log:103: Harmony Control: task: CMD: Failed sending command issue_device_command to Harmony Hub - errorcode=503, errormessage=Unknown Harmony response <0x774bc320>
50 09/09/17 9:40:23.061 luup_log:103: Harmony Control: ERROR: IssueDeviceCommand, failed to Issue Device Command
 errorcode=503, errormessage=Unknown Harmony response <0x774bc320>

Anyone else experiencing similar things?

Hi

I am getting the same problem :frowning:

It works inconsistently - most often it starts working straight after I run the Harmony app on my smartphone (like it wakes up the hub properly)

My debug log:
03 09/10/17 8:09:15.324 luup_log:187: Harmony Control: Harmony device #187 is initializing! <0x2bb49680>
03 09/10/17 8:09:15.439 luup_log:187: Harmony Control: Version is current : 2.17 <0x2bb49680>
03 09/10/17 8:09:15.440 luup_log:187: Harmony Control: Using Harmony Hub: IP address 192.168.1.85 <0x2bb49680>
50 09/10/17 8:09:15.441 luup_log:187: Harmony Control: Harmony Hub Control: init_module completed <0x2bb49680>
50 09/10/17 8:09:18.100 luup_log:187: Harmony Control: Harmony device #187 is starting up! <0x2e149680>
50 09/10/17 8:09:18.101 luup_log:187: Harmony Control: HTTPServer 1 <0x2e149680>
50 09/10/17 8:09:18.102 luup_log:187: Harmony Control: Harmony_CreateChildren for device <0x2e149680>
50 09/10/17 8:09:18.150 luup_log:187: Harmony Control: Child devices to create : 41351623,41340955,41030122,41030127,41030123 <0x2e149680>
50 09/10/17 8:09:18.151 luup_log:187: Harmony Control: GetConfig <0x2e149680>
50 09/10/17 8:09:18.151 luup_log:187: Harmony Control: Sending command cmd=get_config <0x2e149680>
50 09/10/17 8:09:20.321 luup_log:187: Harmony Control: SubmitCommand, invalid response from Hub instead of acknowledge :
50 09/10/17 8:09:20.322 luup_log:187: Harmony Control: CMD: errcode=503, errmsg=Unknown Harmony response <0x2e149680>
50 09/10/17 8:09:20.322 luup_log:187: Harmony Control: task: CMD: Failed sending command get_config to Harmony Hub - errorcode=503, errormessage=Unknown Harmony response <0x2e149680>
50 09/10/17 8:09:20.335 luup_log:187: Harmony Control: GetConfig, failed to send GetConfig command
 errorcode=503, errormessage=Unknown Harmony response <0x2e149680>
50 09/10/17 8:09:20.335 luup_log:187: Harmony Control: Failed to obtain the current devices from Hub. Hub may be off. Will analyse current Child devices <0x2e149680>
50 09/10/17 8:09:20.374 luup_log:187: Harmony Control: Found existing child device, lets save! id HAM187_41351623 <0x2e149680>

This happened after I updated the firmware on the hub to 4.13.100

I have scenes that run on the Harmony activity, and these no longer work reliabily

Hi

I just tried to create a scene with a trigger that when an IR device command button is pressed it turns on a Z-Wave light.

However it only seems to work when I press the button on the Harmony device in the Vera web GUI.

If I press the actual button on the IR remote control handset nothing happens.

So I am assuming the Harmony plug-in cannot detect when buttons have been pressed on an IR remote control handset ? And act on that as a trigger etc.

Thanks.

Hi cw-kid,

That is correct. See this tread for more information [url=http://forum.micasaverde.com/index.php/topic,38849.0.html]http://forum.micasaverde.com/index.php/topic,38849.0.html[/url].

Cheers Rene

[quote=“reneboer, post:529, topic:184450”]Hi cw-kid,

That is correct. See this tread for more information [url=http://forum.micasaverde.com/index.php/topic,38849.0.html]http://forum.micasaverde.com/index.php/topic,38849.0.html[/url].

Cheers Rene[/quote]

Hi Rene

Thanks for the reply.

So it sounds like we can only use the Harmony activities as triggers to run Vera scenes when using the Harmony plug-in for Vera correct?

I am using the Java HA Bridge for integrating some scenes and devices in to Alexa. Maybe I can do something with this ?

Also there is a new Keene device called KiraGet which is a IR to HTTP bridge see here. But its expensive.

For Kodi on the HTPC I can use the “KodiRemote” plug-in and have the lights change when I pause or play etc.

However for an IR Blu-ray player for example I cannot do this. I was hoping that the Harmony plug-in for Vera would detect when I pressed the Play / Pause buttons on the Blu-ray players remote control handset but it doesn’t seem to be able to do this.

Thanks.

Hi

Looking at the user manual here, I cannot see any examples of how to use the Vera scene advanced editor with the Harmony Control device and using the “IssueDeviceCommand” function. I am not sure what to put in to the Command / String field ?

For example, if I wanted to issue a PowerOn command to the Harmony device with ID= 47170847

EDIT: cmdP1=47170847&cmdP2=PowerOn&cmdP3=5

I guess the other option is not to use the Scene advanced editor and to use the Luup code section of the scene and add in Luup.call_action calls instead in there.

EDIT: luup.call_action(“urn:rboer-com:serviceId:Harmony1”,“IssueDeviceCommand”,{DeviceID=47170847,Command=“PowerOn”,Duration=“5”},184)

Thanks.

Can’t seem to get luup.call_action to work either.

luup.call_action("urn:rboer-com:serviceId:HarmonyDevice1", "IssueDeviceCommand",{DeviceID=47170847,Command="PowerOn",Duration="0"},184)

I put the above call in to a scene, but it doesn’t turn the TV on, when I run the scene.

If I use this http command instead in a web browser, this does work and turns on the TV.

http://192.168.1.100/port_3480/data_request?id=lr_Harmony184&cmd=issue_device_command&cmdP1=47170847&cmdP2=PowerOn&cmdP3=5

What am I doing wrong?

Thanks.

EDIT:

Got it working now:

luup.call_action("urn:rboer-com:serviceId:Harmony1","IssueDeviceCommand",{DeviceID=47170847,Command="PowerOn",Duration="0"},184)

[quote=“citizenxnz”]Hi

I am getting the same problem :frowning:

It works inconsistently - most often it starts working straight after I run the Harmony app on my smartphone (like it wakes up the hub properly)

My debug log:
0309/10/17 8:09:15.324luup_log:187: Harmony Control: Harmony device #187 is initializing! <0x2bb49680>
0309/10/17 8:09:15.439luup_log:187: Harmony Control: Version is current : 2.17 <0x2bb49680>
0309/10/17 8:09:15.440luup_log:187: Harmony Control: Using Harmony Hub: IP address 192.168.1.85 <0x2bb49680>
5009/10/17 8:09:15.441luup_log:187: Harmony Control: Harmony Hub Control: init_module completed <0x2bb49680>
5009/10/17 8:09:18.100luup_log:187: Harmony Control: Harmony device #187 is starting up! <0x2e149680>
5009/10/17 8:09:18.101luup_log:187: Harmony Control: HTTPServer 1 <0x2e149680>
5009/10/17 8:09:18.102luup_log:187: Harmony Control: Harmony_CreateChildren for device <0x2e149680>
5009/10/17 8:09:18.150luup_log:187: Harmony Control: Child devices to create : 41351623,41340955,41030122,41030127,41030123 <0x2e149680>
5009/10/17 8:09:18.151luup_log:187: Harmony Control: GetConfig <0x2e149680>
5009/10/17 8:09:18.151luup_log:187: Harmony Control: Sending command cmd=get_config <0x2e149680>
5009/10/17 8:09:20.321luup_log:187: Harmony Control: SubmitCommand, invalid response from Hub instead of acknowledge :
5009/10/17 8:09:20.322luup_log:187: Harmony Control: CMD: errcode=503, errmsg=Unknown Harmony response <0x2e149680>
5009/10/17 8:09:20.322luup_log:187: Harmony Control: task: CMD: Failed sending command get_config to Harmony Hub - errorcode=503, errormessage=Unknown Harmony response <0x2e149680>
5009/10/17 8:09:20.335luup_log:187: Harmony Control: GetConfig, failed to send GetConfig command
 errorcode=503, errormessage=Unknown Harmony response <0x2e149680>
5009/10/17 8:09:20.335luup_log:187: Harmony Control: Failed to obtain the current devices from Hub. Hub may be off. Will analyse current Child devices <0x2e149680>
5009/10/17 8:09:20.374luup_log:187: Harmony Control: Found existing child device, lets save! id HAM187_41351623 <0x2e149680>

This happened after I updated the firmware on the hub to 4.13.100

I have scenes that run on the Harmony activity, and these no longer work reliabily[/quote]Have you had any luck? Mine is still pretty inconsistent.

Sent from my Nexus 6P using Tapatalk

If it works from a browser mayBe try sending a curl command within luup instead? Just a guess. Something like this:

os.execute(“curl -d http://192.168.1.100/port_3480/data_request?id=lr_Harmony184&cmd=issue_device_command&cmdP1=47170847&cmdP2=PowerOn&cmdP3=5”)

Hi

What is the best way if possible? To have an ON/OFF button in the Imperihome mobile app, to turn on / off a Harmony IR device ?

I just read that Imperihome supports the Vera MultiSwitch plug-in but I cannot see anyway in Imperihome how to add a MultiSwitch button.

Or is there another better way ?

Thanks.

EDIT:

Figured it out in the Imperihome app I went to Flat devices list and in to the room where the MultiSwitch is located. I then selected the option to show hidden devices and all the MultiSwitches then appear. I was then able to add a ON / OFF button to the dashboard.

@cw-kid - were you aware that Imperihome now has direct support for Harmony hub? Does this not provide you with the IR/RF on/off control you were needing?

Hey,

Quick question. How would one go about writing the current state of the harmony to a log file.

I had the idea that this would give me a quick and dirty way to see how much TV we actually watched in a given period.

Thanks!

Hi Judeman,

If you have DataMine, DataYours or Eventwacher installed you can see what the CurrentActivityID variable gets set to and when. Alternatively you can set the log level to debug, but the log will rotate so you would need to check frequently.

Cheers Rene

[quote=“reneboer, post:538, topic:184450”]Hi Judeman,

If you have DataMine, DataYours or Eventwacher installed you can see what the CurrentActivityID variable gets set to and when. Alternatively you can set the log level to debug, but the log will rotate so you would need to check frequently.

Cheers Rene[/quote]

Thanks for the quick responce! I will look into those options.

I tried using the synology log center, but couldn’t seem to get it configured properly.

Anyway, Love the plug in! Thanks for the work!

Hi,

I have used the syslog option to a synology my self. You configure its IP:514. I cannot remember what I did on the NAS it self. One problem I do have with multiple items is if the NAS and other device is not on the same subnet. (but routable).

Cheers Rene