[BETA] Hubitat Package Manager

Staff have also made it pretty clear over time that they would prefer not to get into the business of officializing (if that’s a word :upside_down_face:) community developer code for drivers and apps.

Built-in apps and drivers can receive updates with new platform versions. For those of us that use custom apps and drivers, the responsibility is still on us to decide how and when to install updated versions.

1 Like

Howdy. I've added a package to package manager, but it isn't showing up when searching for packages. Does this suggest I have something wrong with the manifest file?

Please see the following repo: https://github.com/jakelehner/Hubitat

Nothing comes back in Hubitat package when searching for "Wyze" or "WyzeHub", however I was able to match the app once installed manually and have HPM install the remaining drivers.

Forget how often it rebuilds keywords but may need to give it few hours

https://raw.githubusercontent.com/jakelehner/Hubitat/master/repositories.json

This file is incorrect. The tags should be an array but you have it as a string.

"tags": "Lights & Switches",
should be
"tags": ["Lights & Switches"],

You'll notice there are a lot of warnings getting thrown for your repo:

Try fixing that and we can see what happens.

1 Like

That did it :+1:

1 Like

Now the package shows up, but two of the drivers don't download or install. The "plug" and "plug group". At initial glance all looks ok and the github links appear valid.

Will troubleshoot more later.

Did you check the logs?

Edit: Actually, you have duplicate ids in your file. Those have to be unique.

:unamused:

The ID's were it. And no, there was nothing in the logs this time.

2 Likes

Hi @dman2306,

I'm a huge fan of HPM and I can't stop suggesting every time I have the opportunity that developers should use it. Really nice piece of code - and a large piece of code I must say!

I would like to know if the support of libraries in HPM is in your plans. I believe that it would add a very useful functionality to HPM.

Once more, thank you for your excellent work!

2 Likes

It's been on my list to do, I started working on it. Free time has been the issue, plus the fact that I never really used the libraries myself and I haven't heard many devs clamoring to get it added to HPM. I'm hoping to get some time to work on it before the end of the year.

3 Likes

Great!

I don't know about other devs, but on my app/drivers that I released, whenever I had the need to share the same code among app/drivers, I moved it to the app. It is not as functional as a #include since I have to explicitly use the "parent." reference whenever I need to use the code moved up to the app. I'd rather prefer to keep the app and drivers code separated - no special reason, however.

I really appreciate your work. Thank you!

1 Like

I installed the code, i have enabled local security. entered credentials but get an error: An error occurred logging into the hub. Please verify your Hub Security username and password.
I do not see any logging. Stuck....

Either the username/password is incorrect, or double check that your hub actually has security enabled.

Thanks for the quick reply!

  1. I added the code
  2. Installed the app
  3. Used my email/password
  4. Realized i needed to setup local security. created an admin user/password
  5. uninstalled the app
  6. reinstalled and used the correct credentials.

Perhaps there is some caching somewhere?
Here are some logs:
app:102021-12-02 07:34:25.686 pm errorjava.lang.NullPointerException: Cannot get property 'label' on null object on line 52 (method main)

app:92021-12-02 07:32:03.131 pm debugprefPkgMatchUp

app:92021-12-02 07:32:02.690 pm debugRefreshing repository list

app:92021-12-02 07:31:07.074 pm debugprefPkgMatchUp

app:92021-12-02 07:31:06.441 pm debugRefreshing repository list

app:92021-12-02 07:30:48.498 pm debugRefreshing repository list

app:92021-12-02 07:30:45.903 pm debugInstalling HPM Manifest

app:92021-12-02 07:30:45.747 pm debugGrabbing list of installed apps

app:92021-12-02 07:30:45.320 pm debugRefreshing repository list

app:92021-12-02 07:30:45.319 pm debugConverted update mode to Never

app:92021-12-02 07:30:45.305 pm debugMigrating auto updater mode

app:92021-12-02 07:30:45.301 pm debugAdding GitHub and PayPal URLs to manifests...

app:92021-12-02 07:30:45.104 pm debugStoring repository listing in state

app:72021-12-02 07:30:36.812 pm debuguninstalling app

app:72021-12-02 07:23:39.894 pm debugprefPkgMatchUp

app:72021-12-02 07:23:39.428 pm debugRefreshing repository list

app:72021-12-02 07:23:19.741 pm debugprefPkgMatchUp

app:72021-12-02 07:23:18.944 pm debugRefreshing repository list

app:72021-12-02 06:12:23.794 pm errorError logging in: java.io.IOException: Stream closed

app:72021-12-02 06:12:22.975 pm debug

Wait, not totally sure I understanding. Are you saying it's working now or no? Looking at those logs it seems app id 9 (the new reinstall) was able to login.

No, I get an error message when I run the app. wonder if there is caching - I could remove the dev install too if that will help...

Sorry, I'm not following. What "dev install"? I'm not sure what that means.

There is no cache or anything like that. If the username and password match it will log in. But those logs also don't show any error occurring so I'm not really sure I understand what error your saying you see.

I logged in and out to verify the username password.
There is a section to install the "Apps Code" (I referred to as "dev install")
Then there is "Adding the App"
I removed the App and tried the username/password a few times and it keeps giving the same error.
I did not tri to delete and reinstall the app code.

I'm stuck.

Also I see the correct username when i click the package installer link. It shows *** for password (I assume that is not representing the password length which is longer)

Also, I noticed the connection is http (there is no local ssl) could that be related?
image