Problem or issues reports

Rene,
I am running v3.6 of plugin on UI5. I just started running into problems a few weeks back, I keep getting error “Startup Lua failed”. Any help is appreicated.

Hi @daveofla,

Can you update to the latest 3.16 version and see what happens? If you still have problems, can you check the vera log file for the error? I do not have UI5 to test with anymore.

Cheers Rene

Rene,
I updated to 3.17 and these are errors I receive.

Hi @daveofla,

I see that for some reason the alternate json decode file harmony_json.lua got corrupted in the repository. No idea why as I have not touched that for ages. It seems your system does not have dkjson.lua installed (all UI7 systems do) so that is why you are running into this.
Attached is the correct version for you to upload to your UI5 Vera. I will update the App market as well.
harmony_json.zip (7.6 KB)
Cheers Rene

Rene,
I loaded the new file and here is log.

Hi daveofla,

I see where this goes wrong. Its a call that is not supported on UI5 so I’ll have to change that. I’ll try to have an update for next Monday. Meantime you could simply comment out that line 438. It only shows a message you need to configure the plugin after the initial install.

Cheers Rene

Hello, I have been having issues with my Vera Plus UI7 Luup reloading, support have logged in and advised this

The harmony plugin is being called every one second, I think that’s a little too extreme and I would advise to lower it down to 30 seconds

I have some other issues they have advised me to sort but I thought I would just share this, has anyone else made this change, thanks

The Harmony plugin is not know for causing reloads. Maybe in combination with something else, but not by it self (and I am running it on a Lite for months in a row without a reload). The plugin does check every second if there is incoming data from the Harmony Hub, but if there is no data it is just three lines of code. This cannot be delayed to once per 30 seconds as then data will be lost. More plugins use this technique and never caused problems.

Cheers Rene

Hello reneboer

ok thank you

Hi Reneboer
My Vera edge has recently died completely, so I am moving to openLUUP without a fallback option!
I am running openLUUP on a raspberryPI and have installed several plugins (reactor, and virtual http devices) and they are working OK.
But I cannot get the harmony plugin to work. It installs OK and I am able to set the IP address for the vera hub. But pressing the update configuration button does not bring any activities into the plugin.
And the control tab fields stay null / blank.

When I press the update configuration button, the log does not show any error that I can see.

The hub has a static address and I can ping it (and was working fine on my VERA)

Can you suggest what else to check?
Thanks in advance
Craig

Hi Craig,

Did you install the bitop library?

  • apt-get install lua-bitop

Else please set the log level to debug and pm me what you see in there.

Cheers Rene

I am getting these errors after several hours of this working fine - this is using your plug-in to control a portable AC unit - once these errors start it will no longer send the command until I restart the LUA engine, after which it again works fine for several hours. It will not recover by itself until LUA is restarted. The Harmony remote works fine throughout - I can use that to turn on and off the AC unit while this failure occurs. Note that this is a “Toggle”, so I lose state once this fails.

Any thoughts how I can fix this?

06 07/28/21 16:46:40.092 Device_Variable::m_szValue_set device: 72 service: urn:rboer-com:serviceId:HarmonyDevice1 variable: LastDeviceCommand was: now: PowerToggle #hooks: 0 upnp: 0 skip: 0 v:0x1149d40/NONE duplicate:0 <0x770dd320>
06 07/28/21 16:46:40.092 Device_Variable::m_szValue_set device: 72 service: urn:rboer-com:serviceId:HarmonyDevice1 variable: IconSet was: 0 now: 2 #hooks: 0 upnp: 0 skip: 0 v:0x1149cd8/NONE duplicate:0 <0x770dd320>
02 07/28/21 16:46:40.093 luup_log:34: Harmony Control_warning: IssueDeviceCommand communication is busy <0x770dd320>
01 07/28/21 16:46:40.094 luup_log:34: Harmony Control_error: IssuingDeviceCommand ERROR 307, Communication is busy… <0x770dd320>

I am now having luck at changing the command duration from “0.3” seconds to 0 (click). It has run for 12 hours successfully after this change. In case anyone has the same problem.

Spoke too soon; communication errors still occur when set to “click” duration (0). Just takes longer for it to happen. Does not recover.

Hi @wmichael3

Can you set the log level to Test Debug in the plugin settings. Restart luup and PM me the /tmp/TeslaCar.log that got created?

Cheer Rene

Changed the log level in (the Vera Harmony) Device | Settings to “Debug” and restarted the engine, but can’t find a /tmp/TeslaCar.log. Used Putty, cd’d to /tmp. Looked in /tmp/log and /tmp/log/cmh as well.

Mike

Hi Mike,

There should be one more option called “Test Debug” that will create the plugin log file.

Cheers Rene

These are the options I have - Error, Warning, Info, Debug, Develop. The plug-in version is 4.4

Mike

Sorry, just back from a good vacation and mixed up two of my plugins. Set for Develop and look for the file /tmp/rboer_plugin.log

Cheers Rene

No worries. I had a feeling that TeslaLog wasn’t the right file. Here is that is in the log so far. As I noted, it takes many hours before the connection error appears. I put in a scheduled reload of luup in the early morning (2:15) and so far that has worked.

03/08/2021 11:25:04: Keep hub connection open
03/08/2021 11:25:49: Keep hub connection open
03/08/2021 11:26:34: Keep hub connection open
03/08/2021 11:27:19: Keep hub connection open
03/08/2021 11:28:04: Keep hub connection open
03/08/2021 11:28:49: Keep hub connection open
04/08/2021 11:54:47: Web-socket to Hub is opened…
04/08/2021 11:54:47: polling is enabled.
04/08/2021 11:54:47: Button definitions found : 3
04/08/2021 11:54:47: Harmony Hub Control: init_module completed.
04/08/2021 11:54:50: Harmony_CreateChildren start
04/08/2021 11:54:50: Child devices to create : 55903719,.
04/08/2021 11:54:50: CreateChildren: Device files for 55903719 exist.
04/08/2021 11:54:50: Child device id HAM34_55903719 (HRM: LG Climate Control), number 55903719
04/08/2021 11:54:50: Button definitions found : 6
04/08/2021 11:54:50: GetStateDigest: Start
04/08/2021 11:54:50: Harmony_CB_StateDigestNotify start.
04/08/2021 11:54:50: connect.stateDigest?notify activity : 46526102.
04/08/2021 11:55:35: Keep hub connection open
04/08/2021 11:56:20: Keep hub connection open
04/08/2021 11:57:05: Keep hub connection open
04/08/2021 11:57:50: Keep hub connection open
04/08/2021 11:58:35: Keep hub connection open
04/08/2021 11:59:20: Keep hub connection open
04/08/2021 12:00:05: Keep hub connection open
04/08/2021 12:00:50: Keep hub connection open