# GitHub integration and Smartthings

**URL:** <https://community.smartthings.com/t/github-integration-and-smartthings/34012>\
**Category:** Devices & Integrations\
**Created:** [December 31, 2015, 4:32am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012 "2015-12-31T04:32:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![BBoy486](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bboy486/32/96682_2.png) [@BBoy486](https://community.smartthings.com/u/BBoy486)\
**Post date:** [December 31, 2015, 4:32am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/1 "2015-12-31T04:32:42Z")

</div>

I noticed I can sync GitHub with my ST hub. As I am just starting to use Github I was wondering if I could automatically pull in the code into the needed smartapp or smart device without having to copy and paste.

As I mentioned very new to it so any help would be welcomed. I’ll also YouTube it in the meantime.

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [December 31, 2015, 7:35am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/2 "2015-12-31T07:35:39Z")

</div>

> [@BBoy486](#):
>
> I noticed I can sync GitHub with my ST hub. As I am just starting to use Github I was wondering if I could automatically pull in the code into the needed smartapp or smart device without having to copy and paste.

Yes… though technically GitHub integration is much more complicated than cut and paste until you get the hang of it, but once you get it working, it is the streamlined approach for the long term.

Ummm… We need to make this a FAQ or video of the Steps to Integrate GitHub… especially for the “read-only” mode that many users are asking for.

… heck, I still barely use the function, but I don’t run a lot of Community code that is updated frequently.

---

<div class="post-metadata">

**Author:** ![TheMillHouse](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@TheMillHouse](https://community.smartthings.com/u/TheMillHouse)\
**Post date:** [December 31, 2015, 9:07am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/3 "2015-12-31T09:07:16Z")

</div>

We should also use GitHub for what the Good Lord intended it for more, as well - I’ve lost count of the number of times I’ve seen people pasting patches into forum threads rather than links to pull requests 😃

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [December 31, 2015, 9:34am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/4 "2015-12-31T09:34:16Z")

</div>

> [@TheMillHouse](#):
>
> We should also use GitHub for what the Good Lord intended it for more, as well - I’ve lost count of the number of times I’ve seen people pasting patches into forum threads rather than links to pull requests 😃

True… but we also should _ **respect** _ the fact that many clever folks here have barely begun to get their feet wet with **Groovy** (or perhaps _any_ programming) … it’s quite possible to do a lot of SmartThings coding by just following examples and modifying templates, etc…

Understanding **Git** & **GitHub** (_and_ the extra layer of the actual “integration”!) is a non-trivial burden.

(Though for those who are “graphically inclined”, as opposed to CLI), I highly recommend the free tool [**SourceTree**](https://www.sourcetreeapp.com/) … It’s perhaps overkill for Repositories with trivial branching, but I like the way it lets me visualize and navigate).

Well… let’s see if a discussion of the process (along with the existing documentation, etc.) leads to the creation of a good FAQ … and/or a Wiki page at: **[http://ThingsThatAreSmart.wiki](http://ThingsThatAreSmart.wiki)**!

---

<div class="post-metadata">

**Author:** ![TheMillHouse](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@TheMillHouse](https://community.smartthings.com/u/TheMillHouse)\
**Post date:** [December 31, 2015, 9:35am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/5 "2015-12-31T09:35:07Z")

</div>

I ought to at least volunteer to help here, since I get paid to use Git 😃

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [December 31, 2015, 9:45am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/6 "2015-12-31T09:45:58Z")

</div>

> [@TheMillHouse](#):
>
> I ought to at least volunteer to help here, since I get paid to use Git 😃

**Perfect!**

I don’t get paid (unfortunately?), but I’m rather OCD, so I love version control systems. Took me a while to adapt from RCS, SCCS, and even Subversion; but I think I have the hang of the most common procedures and “best” practices … of course, how one uses Git is partially up to the individual, as long as it meshes with their teams.

For tracking updates, I actually recommend a “per page” web tracker (I wrote up a suggested method to a member here, but didn’t get confirmation it was working well for him) – since GitHub notifications are at the entire Repository level, not the individual file.

Combine my less-experienced but fast-learning with your experience – and your practices using the SmartThings integration? – we ought to be able to come up with a three part FAQ or something (Beginner, Intermediate, Advanced…?).

We can take the discussion offline to PM if this Topic meanders to much; but feel welcome to take a stab at it and we’ll iterate?

---

<div class="post-metadata">

**Author:** ![TheMillHouse](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@TheMillHouse](https://community.smartthings.com/u/TheMillHouse)\
**Post date:** [December 31, 2015, 9:49am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/7 "2015-12-31T09:49:19Z")

</div>

I’ll see what I can come up with while hiding from the teenager’s video party/sleepover this weekend 😃  
 ![](https://global.discourse-cdn.com/smartthings/original/3X/9/2/92f3278ffc1242a7279a91b8eeb07e2d06e3720a.png)

---

<div class="post-metadata">

**Author:** ![Mbhforum](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mbhforum/32/93879_2.png) [@Mbhforum](https://community.smartthings.com/u/Mbhforum)\
**Post date:** [December 31, 2015, 1:00pm UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/8 "2015-12-31T13:00:55Z")

</div>

Awesome. Included in this video should be:

- How to sync with SmartThings Master Repository

- How to sync with other developer’s repositories

- How to setup your own repository so other users can sync to it

---

<div class="post-metadata">

**Author:** ![schapper05](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@schapper05](https://community.smartthings.com/u/schapper05)\
**Post date:** [February 13, 2016, 3:25am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/9 "2016-02-13T03:25:39Z")

</div>

Reviving an old thread… I stumbled on this looking for a nice GitHub FAQ, but instead found this fun little bit

> [@tgauchat](#):
>
> … heck, I still barely use the function, but I don’t run a lot of Community code that is updated frequently.

I bet this isn’t true anymore with @bravenel’s rapid releases of Rule Machine. =D

---

<div class="post-metadata">

**Author:** ![BBoy486](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bboy486/32/96682_2.png) [@BBoy486](https://community.smartthings.com/u/BBoy486)\
**Post date:** [December 23, 2016, 1:32am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/10 "2016-12-23T01:32:18Z")

</div>

What’s rule machine?

---

<div class="post-metadata">

**Author:** ![PC4urPC](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@PC4urPC](https://community.smartthings.com/u/PC4urPC)\
**Post date:** [June 19, 2017, 1:55am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/11 "2017-06-19T01:55:18Z")

</div>

Hello all, I’m new to the community and hoping to find some answers!

I’m in the process of "trying’ to setup the integration between github and smarthings. I’m currently reading the instructions located here, [http://docs.smartthings.com/en/latest/tools-and-ide/github-integration.html#github-integration-help](http://docs.smartthings.com/en/latest/tools-and-ide/github-integration.html#github-integration-help). I’m completely stumped on step 1. lol. I’m no developer by any means, but I’m a self taught technie so I’m fairly good at following instructions and figuring things out on my own. I just can’t quite figure out the pre-requisites on how to add the “enable github integration” to my api.

I’m hoping someone can lead me in the right direction? Hope to hear from someone soon and TIA!

---

<div class="post-metadata">

**Author:** ![marktheknife](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@marktheknife](https://community.smartthings.com/u/marktheknife)\
**Post date:** [June 19, 2017, 3:44am UTC](https://community.smartthings.com/t/github-integration-and-smartthings/34012/12 "2017-06-19T03:44:40Z")

</div>

What exactly do you mean by you’re stumped?

You don’t see the enable github integration button in the IDE?

Or maybe you don’t know how to access the IDE?

If you’re not in the US, you won’t see that button (as that article explains at the top).

If you want to login to the web-based management console called the integrated development environment (IDE), see this post:

> [@FAQ: How to find out what "shard" (cloud slice IDE URL) your Account / Location is on?](https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923):
>
> When SmartThings went for sale in the UK, they added the first of what will be many “shards” to split the SmartThings Cloud workload into multiple, somewhat independent, clusters of servers. SmartThings automatically replicates a lot of stuff between the shards when they deploy updates and so on, but if you are doing development and you Publish “For Me”, then you need to be sure to be logged into the correct shard, or your self-published SmartApp or custom Device Type Handler will not work. You won’t find it in the mobile App! Eventually you may not need to know your shard. Eventually, SmartThings may make this process automatic and when you self-publish, it will go to the “right” shard without intervention. Update: The URL: [https://account.smartthings.com](https://account.smartthings.com) should take you to your correc…
