Can't import Apps Code

Hope someone can help here. Just got my Hubitat hub and I plan to migrate everything over from Smart Things. I thought the first thing I should do is install the HubConnect app but when I go to Apps Code and try to import using the URL's, it doesn't import anything. I don't get an error or anything and I don't see it throwing any error's into the log.

Any idea what I'm doing wrong?

Are you using the RAW GitHub URL when using the import feature? Also, some portions are Apps, and others are Device Drivers.

Wow, thanks for the VERY fast reply! It's the one in the PDF documentation and the URL starts with raw.githubusercontent so I'm assuming it is.

I'm not seeing an edit button but I wanted to add, I got around it by pasting in the code for now, I just wondered if I am missing something that's stopping me from importing.

1 Like

I found that once the raw code has been pasted and then saved, go back into the import URL screen, paste it in and save again, should work fine moving forward

Rick

Thanks! I'll give that a try.

I've had a busy week and I'm just now getting back to this. It still won't let me import apps or drivers via URL.

Anyone idea why? Some setting or something?

Hey bluzeman,

Just to be sure I am following you, you are saying that after you successfully create a driver, save it, then go back in and paste in the URL, then save that, the URL is not there the next time you go in?

Mine seems to be working fine

Rick

Hey Rick(I'm also a Rick) :slight_smile:

Nothing happens at all. I paste in the URL, click OK and it doesn't do anything, just sits at a blank screen. Nothing I've created, I'm just trying to set up HubConnect. I can copy and paste the code but importing doesn't work.

RAW?

There's two ways to get the URL.

  • The HubConnect code has the URL as the top line.
  • Browse to the GitHub repository all the way down to "raw" and the use the URL from your browser.

In GitHub, the page showing the code, where the raw button lives, isn't a usable URL for importing.


That's where the RAW button can be found...

28%20PM

But the browser's URL on that page is what Import needs. starts with https://raw.....

1 Like

Hi csteele. I was using the right url but your post prompted me to do a little further investigation.

It turns out that copying the URL from the PDF document for HubConnect was inserting a line break between /hubitat and /apps. When I pulled up the page with the code in Firefox, then copied the URL from there and pasted it into import, it worked fine. So I pasted both URL's into notepad and saw the one from the documentation broke into two lines.

I didn't even suspect that, as Firefox didn't have a problem with it, so I was assuming there was something wrong with the import ability.

Thanks, you pushed me in the right direction.

2 Likes