[BETA] Hubitat Package Manager

I have to look. I thought I did move it all over to new one I think. I'm on version 0.5.1 and Internal name OpenWeatherMap-Alerts Weather Driver but maybe I didn't remove the old one. I will have to look. Thanks again.

Thanks! I think I fixed it. I did remove move it all over the new version and removed the old drivers. However, I must not have done from the HPM application. I ran a list saw how came up in the list and then moved from there. All good now. Thanks.

1 Like

Hey @dman2306, I finally got around to sorting my AlertMe and Salus drivers out. Would you mind reviewing my pull request when you get chance?

I actually got tired of manually updating my own drivers. :laughing:

Should get to it later tonight. Work + holidays = busy!

2 Likes

No Errors. These are from the app activity. I have it set up to notify at 8AM. (I get all other notifications, so it is not an issue with the device or the hub)

Shows notification of Battery Check at 8:05, but doesn't even show an attempt for HPM at 8.

HPM Settings

HPM Logs - Text Only

app:372020-12-23 08:09:28.260 am debugRefreshing repository list
app:372020-12-23 08:08:12.108 am debugUpdates complete
app:372020-12-23 08:08:07.310 am infoUpgrading Sleep Number Bed
app:372020-12-23 08:07:51.360 am infoUpgrading Sleep Number Controller
app:372020-12-23 08:07:51.051 am infoDownloading Sleep Number Bed
app:372020-12-23 08:07:50.823 am infoDownloading Sleep Number Controller
app:372020-12-23 08:07:50.338 am debugPerforming update
app:372020-12-23 08:07:44.637 am debugprefPkgVerifyUpdates
app:372020-12-23 08:07:43.015 am debugUpdates available
app:372020-12-23 08:07:38.492 am debugUpdates available
app:372020-12-23 08:07:37.991 am infoChecking for updates for webCoRE
app:372020-12-23 08:07:37.767 am infoChecking for updates for Weather Dot Gov
app:372020-12-23 08:07:37.533 am infoChecking for updates for iPhone WiFi Presence Sensor
app:372020-12-23 08:07:37.305 am infoChecking for updates for Google SDM API - Nest Integration
app:372020-12-23 08:07:37.093 am infoChecking for updates for Auto Lock Door
app:372020-12-23 08:07:36.899 am infoChecking for updates for NOAA Weather Alerts (Latest)
app:372020-12-23 08:07:36.701 am infoChecking for updates for Hubitat Package Manager
app:372020-12-23 08:07:36.503 am infoChecking for updates for Hub Watchdog
app:372020-12-23 08:07:36.295 am infoChecking for updates for Device Watchdog
app:372020-12-23 08:07:36.071 am infoChecking for updates for Smartly Inject
app:372020-12-23 08:07:35.846 am infoChecking for updates for Combined Presence
app:372020-12-23 08:07:35.604 am infoChecking for updates for Hub Rebooter
app:372020-12-23 08:07:35.602 am debugUpdates found package for https://raw.githubusercontent.com/rvrolyk/SleepNumberController/master/packageManifest.json -> null (force production: true)
app:372020-12-23 08:07:35.599 am debugUpdates found for package https://raw.githubusercontent.com/rvrolyk/SleepNumberController/master/packageManifest.json
app:372020-12-23 08:07:35.365 am infoChecking for updates for Sleep Number Controller
app:372020-12-23 08:07:35.139 am infoChecking for updates for Inovelli Drivers (Gen 2)
app:372020-12-23 08:07:34.873 am infoChecking for updates for Vacation Lighting Director
app:372020-12-23 08:07:34.633 am infoChecking for updates for Laundry Manager
app:372020-12-23 08:07:34.425 am infoChecking for updates for Chromecast Helper
app:372020-12-23 08:07:34.189 am infoChecking for updates for Samsung MultiRoom Speakers
app:372020-12-23 08:07:34.050 am debugUpdate chosen
app:372020-12-23 08:07:18.645 am debugRefreshing repository list
app:372020-12-23 08:00:04.597 am infoChecking for updates for webCoRE
app:372020-12-23 08:00:04.332 am infoChecking for updates for Weather Dot Gov
app:372020-12-23 08:00:04.172 am infoChecking for updates for iPhone WiFi Presence Sensor
app:372020-12-23 08:00:03.854 am infoChecking for updates for Google SDM API - Nest Integration
app:372020-12-23 08:00:03.600 am infoChecking for updates for Auto Lock Door
app:372020-12-23 08:00:03.291 am infoChecking for updates for NOAA Weather Alerts (Latest)
app:372020-12-23 08:00:03.137 am infoChecking for updates for Hubitat Package Manager
app:372020-12-23 08:00:02.987 am infoChecking for updates for Hub Watchdog
app:372020-12-23 08:00:02.838 am infoChecking for updates for Device Watchdog
app:372020-12-23 08:00:02.570 am infoChecking for updates for Smartly Inject
app:372020-12-23 08:00:02.307 am infoChecking for updates for Combined Presence
app:372020-12-23 08:00:02.086 am infoChecking for updates for Hub Rebooter
app:372020-12-23 08:00:02.083 am debugUpdates found package for https://raw.githubusercontent.com/rvrolyk/SleepNumberController/master/packageManifest.json -> null (force production: true)
app:372020-12-23 08:00:02.073 am debugUpdates found for package https://raw.githubusercontent.com/rvrolyk/SleepNumberController/master/packageManifest.json
app:372020-12-23 08:00:01.747 am infoChecking for updates for Sleep Number Controller
app:372020-12-23 08:00:01.458 am infoChecking for updates for Inovelli Drivers (Gen 2)
app:372020-12-23 08:00:01.265 am infoChecking for updates for Vacation Lighting Director
app:372020-12-23 08:00:01.023 am infoChecking for updates for Laundry Manager
app:372020-12-23 08:00:00.803 am infoChecking for updates for Chromecast Helper
app:372020-12-23 08:00:00.545 am infoChecking for updates for Samsung MultiRoom Speakers
app:372020-12-23 08:00:00.468 am infoA new repository was added, https://raw.githubusercontent.com/birdslikewires/hubitat/master/repository.json
app:372020-12-23 08:00:00.159 am debugRefreshing repository list

HPM Logs - Image - UPDATES FOUND BUT NO NOTIFICATION

Phone Device Events - No notification attempted apparently. But does show the prior and later notifications

I'm not sure it's the word Beta.

It's also perhaps that this is a great idea/tool and therefore should be "integral to the platform" as a standard mechanism of app submission / deployment.

For new folks coming in there is a great deal of figuring out "who's writing what" , "what protocols & standards exist" and "what's scantioned , sustainable, and going to be supported" long term.

It's scary to us old schoolers :scream:

This is a step in the right direction,

but some of what folk are coming up with seems more root level functional than add-on-optional.

I also use repair in HPM as a sort of revert for when I start hacking on my own drivers but don't like where things are headed. :upside_down_face:

4 Likes

When it gets enough developers onboard maybe they'll toss em a boatload of cash and integrate the app.

1 Like

When you get some time could you add my repo? Pull request submitted.

1 Like

Merged

2 Likes

Lewis, you might want to check your repo json.

I tried, didn’t work.
Repeat by:
(1) use HPM, uninstall Chris Sayer’s Auto Lock.
(2) install, search on Lock, yours doesn’t appear.
(3) copy import URL from your repo’s comments
(4) try to add new app, paste the URL, nothing comes.
(5) manual add parent app & child app by copy/paste of Groovy code from your repo, success.
(6) Do HPM Match Up, here’s what I got:

HPM Match Up logs screenshot

@lewis.heidrick, there are some missing commas in the "packages" section in of repository.json, and "tags" is missing a closing square brace. I did a PR if you want to use it.

2 Likes

As a general thing, I highly recommend JSONLint for basic JSON validation.

@dman2306, just a thought thought... it would be really cool if there were a JSON schema for HPM entries.

2 Likes

Yeah I could do that, it wouldn't be hard to put together. As you know though, Groovy has no built in JSON Schema validator so I can give it to developers for reference, but I can't do much with it in HPM directly (at least not easily)

For what it's worth. I added a third hub to my network. I use login security on each hub as well as hub mesh. When installing hpm on a hub that already has security you need to give the credentials for the login, and after that when hpm is restarted it will fail saying it can't login to the hub. Rebooting the hub will let hpm login to the hub. I made several attempts without rebooting but this was the only way I got it to work.

On my first hub I installed hpm before I used login security. But with hub mesh and door locks I have security enabled on all my hubs.

Could be useful to document in the installation popup screen for security.

I have one hub in my mesh that doesn't have hpm and that has security enabled. I can do some debugging on that hub for you if you want, just tell me what you want me to do to help you out?

Hi ..
Firstly thank you for this app that admittedly will be the first custom app I have tried to install as a brand new Hubitat user, coming from Wink... so be gentle if this just a rookie problem.

I have attempted to install and come across the error "Importing [groovy.json.internal.LazyMap] is not allowed" when attempting to save the code. The hub is running v2.2.4.158

Thanks in advance for advice
Carla

EDIT: Figured it out - crisis averted. The problem was that I had downloaded an older version (1.1.0) found in the "Releases" versions as opposed to the more recent, not-released current version (1.7.0). 1.7.0 installed without issue/errors.

2 Likes

Understand that you cannot use it in HPM directly, but I think just allowing devs to use an external validator would be of benefit.

Well, if what you said is true, it is a bug so I'd rather fix it than document it. That said, I just tried and couldn't reproduce it. I'm guessing no since it was a couple of days ago, but any chance you still have the logs from when this happened? It would help me track it down.

I found nothing in the logs. I have one more hub that never had hpm on it. Let me try on that one. I'll do it tomorrow night.

Thanks! Any info you can provide will help!