[Release] Logitech Harmony Hub Driver v0.1.20230311

Using the Parent Logitech Harmony Hub device, not one of the Activity Child Devices, you will see it has a "Switch" attribute. This 'switch' represents whether or not any of the Activities are currently 'on' or 'off'.

Example, all Activities are OFF

Example, my "Watch Apple TV" activity is On.

So, you should be able to simply use the Parent's Switch attribute to know if the Harmony Hub has any of your Activities currently On.

Does this answer your question? I do not really understand what you mean by "TV Power Off" switch in your post above... :thinking:

Edit: Now I think I know what you're referring to... The "Power Off" child activity device, as circled below...

image

Yes, that child device should always display the opposite state of the Parent Harmony Hub device's 'switch' attribute. So, this should help to make things much more clear (I hope!)

2 Likes

Yes, that was exactly my question! And that did help a lot! Thanks so much.

I thought the home control part of this integration was dead but seems like it might not be. I too however see the the same unhandled data messages. @Bloodtick_Jones did you ever figure out how to register the button presses again?

And i figured it out..... All works great now.

I had been configuring a backup harmony companion's buttions by accident in the app. at no point before was i configuring the harmony elite. Once i figured that out everything started working again.

2 Likes

I am getting this warn in my logs now. Just got the c8 pro up and running.
method webSocketStatus of device [Harmony Remote] Bedoom ran for 225,395ms

So I have the harmony hub driver installed and working, but when I press pause on the remote it pauses what I am watching, but I do not see anything in the logs showing I pressed pause. Does the driver not show commands that are pressed on the remote?

Is there a way to see commands when pressed on the remote?

No, there is no way for Hubitat to see Harmony remote control button presses.

I upgraded yesterday to the newest version of this driver. I upgraded because I was having problems with one of my harmony hubs working to turn on the activity through the dashboard but then when I tried to turn it off tit would not turn off and the button would stay stuck on sending. Then coming back to check it after a dash refresh it would now say it was still on (which it was)

After the upgrade that hub is still behaving the same and also now my other hub is doing similar with the exception that it does turn off the device but even though it is off the dash still says sending then shows it turned back on (it is off)

Both error logs are giving:

dev:2262024-07-08 12:59:47.245 PMerrorReceived errorString = 'RF link lost' and errorCode = '503' from Harmony Hub
dev:2262024-07-08 10:38:28.075 AMerrorReceived errorString = 'RF link lost' and errorCode = '503' from Harmony Hub
dev:2262024-07-07 03:17:57.761 PMtraceCreated child device with network id: 226-PowerOff

Both hubs are set up with DHCP to be on the same IP and I only have one router. I am using a dash tile with the device I want to control and the switch as I always have.

Summary

I did upgrade from my old install but deleted the old child devices so there is only one of each. And it only seems to affect power off activites power on works fine.

Any ideas?

Two Harmony hubs on one IP number!! Your router should have warned you not to do that. How would Hubitat know which one to talk too?

Sorry not the same IP not what I meant. same subnet.

A quick scan of the driver source code doesn't have this message which suggests that it is from the harmony hub. Is it telling you that the Harmony remote has gone missing or bad. Both Hubs/Remotes? - That may be a clue. Some Harmony hubs had remote blasters if I remember.

Are you mapping those [Hue] Home control buttons?

FWIW my driver version is "v0.2.20221231" and hasn't been updated for years.

I'm not mapping the home control buttons. And I installed v0.2.20230311. The newest version I saw on the download site. Should I downgrade?

I do not believe there is any reason to downgrade, as the changes were very minor and would not explain the issue you are seeing

 *    2022-12-30  Dan Ogorchock  BREAKING CHANGE: Modified to use Hubitat built-in "Generic Component" child drivers, for HomeKit compatibility.  BREAKING CHANGE!
 *    2022-12-31  Dan Ogorchock  Very minor tweak to prevent running the PowerAoff activity if everything is already off.
 *    2023-03-11  Dan Ogorchock  Added missing manual push() and hold() command routines, to allow testing of button events from the parent device page.

The big change came with the 2022-12-30 release. That was a breaking change, as the child device drivers were changed from custom to Hubitat's built-in child drivers.

The subsequent changes since then were very minor.

Well i think I found the problem. I had enabled wifi6 on my router a few months ago (kinda forgot I did it :rofl:) So I disabled wifi6 and rebooted all devices multiple times and the problem seems to be fixed. All working normal now with newest driver. Strangely I had noticed other things like a mac computer not connecting to 5G but working fine with 2.4 and other devices here and there having trouble staying online.

1 Like

I haven't coded since the 80's. Would I just add it to the area in the app that has a few of these entries...in this case "Pause" and then the device number/id from the log dump?

def Pause(String device) {
deviceCommand("Pause", 81339163)
}

Seems a little too easy. Really sorry to be a bother. Thanks!

Why not simply use the “deviceCommand()” directly? Or, use the built-in “pause” command to pause the current Activity?

If you really want to add a custom command, please declare it at the top of parent device’s driver code. Use a unique name, like “myPause” as you do not want to conflict with the existing “pause” command.

Then declare the “myPause()” command using the code you posted above.

Didn't really understand you had built that in ...other than the power on/off stuff. I have not built the rule yet...but that make perfect sense.

Thanks...

@Steve9123456789 are your home control buttons still working? Presumably using the local control option?

They are still working. I just moved and remapped them to new lights yesterday

2 Likes

Hi, I had this running fine but had to move the Harmony hub to a new Hubitat and can't recreate my steps.

I am trying to create a device to send out one discrete command for my projector. The command is in the Harmony Hub. I am following the section on Child Devices for Child Commands but can't for the life of me figure out how to connect this to the one IR command that I want to send out? Thanks for any help.

@rebecca