[BETA] Hubitat Package Manager

Did you do as the message says and verify the hub security settings? That's where the problem lies.

@dman2306 Yes, I did. What's strange is two nights ago I updated my hub platform and tonight I received another update. Now that I updated my platform HPM is working. All I did was an update to version 2.2.4.156 from platform version 2.2.4.153. YEAH

  • List item
5 Likes

Hi, trying to upgrade Ecobee Suite and it's failing. The dev said it looks like a HPM or github issue. Any ideas?

Error Occurred During Installation
An error occurred while installing the package: Failed to upgrade app https://raw.githubusercontent.com/SANdood/Ecobee-Suite/master/smartapps/sandood/ecobee-suite-manager.src/ecobee-suite-manager.groovy.

Logs:

app:3282020-12-07 03:05:23.957 pm infoFatal error occurred, rolling back
app:3282020-12-07 03:05:23.953 pm errorError upgrading app: groovyx.net.http.ResponseParseException: Server Error
app:3282020-12-07 03:05:23.859 pm infoUpgrading Ecobee Suite Manager
app:3282020-12-07 03:05:23.856 pm errorError retrieving app source: groovyx.net.http.ResponseParseException: Server Error
app:3282020-12-07 03:05:23.385 pm infoDownloading Ecobee Suite Thermostat
app:3282020-12-07 03:05:22.951 pm infoDownloading Ecobee Suite Manager
app:3282020-12-07 03:05:22.599 pm debugPerforming update
app:3282020-12-07 03:05:19.227 pm debugprefPkgVerifyUpdates
app:3282020-12-07 03:05:14.690 pm debugUpdates available

Have you tried a repair on HPM itself?

Good idea. That didn't seem to have any effect, so I ran a repair on ecobee suite, and that seems to have done the trick, but now I have two copies of all of the ecobee suite apps and drivers. I guess I should delete the older copies of them?

Well, it could have replaced some bad parts. Did the logs show anything?

It’s as if one ecobee suite was installed manually and the other by HPM. How many does HPM think it is managing? (View apps and drivers)

What happens if you do a match up?

If you can figure out which is which.

tl;dr: Got everything working again.

HPM thought just one instance was installed, so I did a match up and it found Ecobee Suite again. But then it still only thought one instance was installed (not two), so I did another repair on Ecobee Suite. Then I just deleted the oldest modified copies of the Ecobee apps/drivers, did another repair (just to confirm everything was happy) and I think whatever weird issue was going on seems to be cleared up. :smile: shrug

1 Like

I will be going from a C-4 to a new C-7 soon. Can PM be used in helping me migrate?

When you do that the best way is to do a backup of the C4 and restore to the C7. Everything on the 4 will be moved over to the 7...including HPM and any apps.

3 Likes

Not really.

It’s an app that installs (or updates) other apps and drivers on your hub.

Nothing to do with transferring any information from one hub to another.

You "should" be able to restore from the old hub top the new one. The zigbee devices are easy, you'll need to pretend to add them again and they'll work (going to each one). Zwave is not so easy, you'll need to re-add them, but keep the original and then replace them in the restored automations. Afterwards delete the "old" zwave devices. The automations and everything will come over.

@buckchucko, This thread has some excellent information to help you migrate your Z-Wave network. It helped me a lot when I did my migration!

5 Likes

Thanks for all the info.

Now I am not sure if I should migrate, or just add the new C-7 and run dual hubs. I just found Hubmesh but so far not much info about it. But it looks promising to be able to take some load off the C-4 which should make it stable again.

@dman2306 A feature request. I just installed HPM on a new hub. No devices, no Apps, nothing. No reason to Match Up existing apps. Maybe an option to not do a Match Up on an install for this use case?

I'll think about that.

As a note, I have been working on performance improvements to HPM as well. A matchup on my hub used to take 90 seconds to find the matching packages. With the rewrite I'm working on it took 40 seconds. Basically, a match up has to download hundreds of files to do the comparisons. Previously each of these were done one after the other. With the change I am working on now it will download 10 files simultaneously. I'm working on doing this in a few areas where HPM does a lot of network I/O. It should result in a bunch of noticeable performance improvements. That said, it's a fairly major change so it will take some time to thoroughly test.

9 Likes

It’s really fine as-is.

3 Likes

Thanks. However, that’s a matter of opinion. There have been many people complaining about the speed. Regardless, there are better ways to do it than the way I did it so I plan to change it.

3 Likes

Oh man. Haters gonna hate.

It’s a great app and the didn’t have to write it themselves.

5 Likes

This sounds like a cool app! I need some help actually installing it though.

I have gone to the GitHub page here: GitHub - dcmeglio/hubitat-packagemanager

I see README file and it starts with what looks like information on how to manage apps AFTER this package manager is installed, but it doesn't say how to install the package manager itself. So I started poking around and found this file:

I tried to import this file, but it never actually puts anything in the app editor. So I downloaded the file and copy/pasted the code directly. When I try to save it I get this:

unexpected token: < @ line 7, column 1.

Since looking through this thread and not being able to find anyone else asking this I realize I'm the odd man out here, but I have installed other Smart Apps successfully so any pointers are appreciated!

Thanks!