FAQ: Github Integration How to Add and Update from Repositories

I think this is broken :frowning:

It’s not broken. If you are in the UK, GitHub is not officially supported, but you can enable it through a different process. Since you were very vague in your post, I’m just guessing this is your issue.

Having a hard time linking to EventGhost repository, what I am doing wrong?
Below is a link to the Gibhub:

I am going to Settings > Add new repository > aderusha (owner) > SmartThings (name) > master (Branch)
Then when I go to Update from Repo, nothing is there.
I’ve done this before, IO have a few SmartApps linked such as webCoRE.

I have seen the happen if the folders “devicetypes” and “smartapps” aren’t defined underneath “master” in GitHub. For now you will have to manually update code.

kinda working now i dont see any accessories :frowning:

I’m not quite sure what you mean. Accessories?

Can you give a little more detailed information in what you are expecting to see, versus what you are seeing?

Screenshots help to understand more. :slightly_smiling_face:

followed the steps and seems that homebridge is working and running in the raspberry pi, added the home bridge to homekit but in the apple homekit app don’t see any accessories like switches that i have in the smartthings hub

My reply to you was simply for being able to enable GitHub functionality / accessibility in the UK. That’s all that was for.

That sounds like a totally unrelated issue to this thread. I would post this new issue in the appropriate thread related to Apple Homekit.

Hi. I see how to turn off and delete my github integration from the IDE, but how to I return my smartthings hub to “stock” code? I’ve removed my github integration and removed all custom smartapps, handlers, etc.

Thanks for any help.

It would appear that Github integration is only available if you are in the US!!!?!?!?!!

The IDE documentation states:

Warning

Before proceeding to enable GitHub integration in the IDE, be aware that:

GitHub IDE integration is not supported outside the US.

Basically, it appears if you are not in US, no one wants your custom! I do not get the option to enable Github integration.

A quick search in the community “Github UK” would have brought you to this:

https://graph-eu01-euwest1.api.smartthings.com/githubAuth/step1

Thank you for that. That will teach me for looking at the documentation.

1 Like

ok so digging up this post two years later.

I added the repository info as shown here:

but when I click the device box, click the publish box, and then ‘Execute’ button I get this:


How do I figure out what is wrong? I’m the owner not sure how to troubleshoot this…
but code works fine with the copy/paste method
image

The repository structure doesn’t look right. The device-name.groovy file is normally in a devicetypes/namespace/device-name.src folder. The structure has to be correct and match the definition() in the handler.

I usually start from the IDE and commit the changes to the repository to create the structure.

1 Like

Made the following change on the GitHub structure side of things:

Saw the change on the Smartthings ide:

Shows this:

Interesting…received 500 error now:
image

It’s almost there…it’s ok to explain/dumb down the steps even more, this is new stuff: what am I missing?

Did this the second go around from IDE to GitHub (first time ever doing this, always use the copy/paste method)…and the device handler and service commit are now there:

I’ll do some quick test to confirm it’s all good now…

That 500 error is due to spaces in the filename which you corrected.

oneapp-flume-water-flow-dh.src/oneapp-flume-water-flow-dh.groovy will work while
oneapp flume water flow dh.src/oneapp-flume-water-flow-dh.groovy will throw an error.

1 Like

@Brad_ST Thank for clarification, looks like doing the commit from Smarthings IDE to GitHub made the correct structure versus me doing it manually on GitHub and not adding the - to folder names…I’m able to publish now successfully.

Thanks again @orangebucket, good to go now.

1 Like