# \[APP\]\[Pro\] The Things Network - Make Homey part of a global LoRaWAN Network

**URL:** https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869
**Category:** Apps
**Tags:** app, tools
**Created:** [June 27, 2021, 7:50pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869 "2021-06-27T19:50:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [June 27, 2021, 7:50pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/1 "2021-06-27T19:50:33Z")

</div>

> Mod Edit

[The Things Network App for Homey | Homey](https://homey.app/a/com.connector.ttn/)

> **[The Things Network](https://homey.app/en-us/app/com.connector.ttn/The-Things-Network/)**
>
> Make Homey part of a global LoRaWAN Network

[App](https://github.com/OOHehir/connector.ttn) to connect Homey to The Things Stack

---

<div class="post-metadata">

### Author: ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)
#### Post date: [June 27, 2021, 10:47pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/2 "2021-06-27T22:47:52Z")

</div>

Nice to call it TTS, unfortunaly it sounds like Text To Speech

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 1, 2021, 11:37am UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/3 "2021-07-01T11:37:59Z")

</div>

True, renamed.

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 3, 2021, 10:52am UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/4 "2021-07-03T10:52:35Z")

</div>

App now released for [testing](https://tools.developer.homey.app/apps/app/com.connector.ttn)

Instructions for [use](https://github.com/OOHehir/connector.ttn#readme)

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 3, 2021, 2:05pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/5 "2021-07-03T14:05:37Z")

</div>

Well done, I’m hoping to try this out this weekend

---

<div class="post-metadata">

### Author: ![Peter\_Johansson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_johansson/32/15617_2.png) [@Peter\_Johansson](https://community.homey.app/u/Peter_Johansson)
#### Post date: [July 4, 2021, 12:23pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/6 "2021-07-04T12:23:06Z")

</div>

Hi! The link for testing seams to goto you dev account and that will not work for us users. Do you have a link to the app for users instead?

And b.t.w. thanks for doing a app for ttn its much appreciated!

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 4, 2021, 2:00pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/7 "2021-07-04T14:00:26Z")

</div>

Peter,

Apologies, but looks like the app has limited distribution as it hasn’t been [reviewed](https://homey.app/en-ie/blog/the-new-homey-app-store/) yet:

> When you upload your app, as described above, it’s _Draft._ You can then release it to _Test_ . This allows users with a link, available in your dashboard, to test your app. _Note that apps that never have been reviewed cannot be tested by external users._

If you don’t want to wait you could go through the process of installing the SDK to your computer, cloning the repo & sending it to your homey, but thats a bit of hassle. The app should hopefully be released within 2 weeks.

Regards,

---

<div class="post-metadata">

### Author: ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)
#### Post date: [July 4, 2021, 2:04pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/8 "2021-07-04T14:04:42Z")

</div>

Nice work! I hope to receive my first loraWan device tomorrow. Can’t wait to play around with it and see how it works with Homey 👍

---

<div class="post-metadata">

### Author: ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)
#### Post date: [July 4, 2021, 3:01pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/9 "2021-07-04T15:01:12Z")

</div>

Or put it in [The Community AppStore](https://community.homey.app/t/homey-community-app-store/29865)!

---

<div class="post-metadata">

### Author: ![Peter\_Johansson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_johansson/32/15617_2.png) [@Peter\_Johansson](https://community.homey.app/u/Peter_Johansson)
#### Post date: [July 8, 2021, 11:41am UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/10 "2021-07-08T11:41:44Z")

</div>

Seams to be some bugs in it… When i tried to add it with cli i runs for a little while then it stops… From the log i get this…  
─────────────── Logging stdout & stderr ───────────────  
Warning: Trying to access `Homey.env.WEBHOOK_ID` but the environment variable has not been set!  
Warning: Trying to access `Homey.env.WEBHOOK_SECRET` but the environment variable has not been set!  
[log] 2021-07-08 11:39:37 [App] New key path value (x-user-id): XXXXXXXXXX  
Unable to initialize app Error: Missing required parameter: webhookId  
at Remote Process

— INFO: com.connector.ttn has been killed —

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 8, 2021, 2:21pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/11 "2021-07-08T14:21:32Z")

</div>

Peter,

The app has just been released in the [app store](https://homey.app/en-ie/app/com.connector.ttn/The-Things-Network/) so you’ll be able to save yourself all the hassle.

The reason the app failed to build was because of a missing file [env.json](https://apps.developer.homey.app/cloud/webhooks#1-creating-a-webhook). Its not uploaded in order to prevent apps sharing webhooks & the ensuing chaos!

Hope you like the app!

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 8, 2021, 2:51pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/12 "2021-07-08T14:51:00Z")

</div>

Please note there is an issue with the Homey webhook template on the TTN website, I’ve submitted a patch & hopefully it’ll be rectified over the next few days. In the meantime please use the [custom webhook](https://github.com/OOHehir/connector.ttn#setup-using-custom-webhook) method instead.

Regards,

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 9, 2021, 1:56am UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/13 "2021-07-09T01:56:35Z")

</div>

Had a quick play tonight - I think I’ve got the webhook copied correctly to TTS and also the key path added but I don’t seem to get any flow triggers coming through in Homey. It’s late I’ll try some more tomorrow.

Should I see this web hook registered on my Developer Tools page - (I dont)

(I presume I can leave the ‘and’ condition empty and all triggers would just pass through)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/143779f7bced3d046f8b68736a6f64573149f04f.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d1df7fa3086890fbad98d7c51db8e9807015da6.png)

truncated on RHS

I’ll try and verify the web hooks are being triggered from TTS too

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 9, 2021, 10:02am UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/14 "2021-07-09T10:02:08Z")

</div>

The settings that I can see look correct.  
No, I don’t think you’ll see a webhook on your developers page.  
Correct, no need for any ‘and’ condition.

I’ve check & the **app does not trigger** unless you include a payload formatter similiar to the script shown [here](https://github.com/OOHehir/connector.ttn#payload-formatters). This is likely your issue. I’ll correct this is the next version.

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 9, 2021, 3:32pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/15 "2021-07-09T15:32:19Z")

</div>

I’ve tried including the formatter at both the app level and the device level in TTS and I see the payload being formatted correctly but still no trigger into the Homey flows…

I’m going to see if I can confirm the webhooks are being originated from TTS

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 9, 2021, 3:50pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/16 "2021-07-09T15:50:12Z")

</div>

Do you see any ‘forward uplink data message’ on the ‘live data’ on the TTN console?

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 9, 2021, 3:59pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/17 "2021-07-09T15:59:57Z")

</div>

Yes … I do

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f8988737cdbd7ee8e6e619fbc2a5430831f5100e.png)

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 9, 2021, 4:09pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/18 "2021-07-09T16:09:20Z")

</div>

Never tried webhooks in TTS before but I have a feeling the webhook is not being sent by TTS  
What’s the best way/tool to emulate a webhook into Homey ?

---

<div class="post-metadata">

### Author: ![Leo838](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leo838/32/12912_2.png) [@Leo838](https://community.homey.app/u/Leo838)
#### Post date: [July 9, 2021, 4:27pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/19 "2021-07-09T16:27:14Z")

</div>

You could use: [https://requestbin.com/](https://requestbin.com/)

You can setup your own webhook on that service & using the details on TTS/TTN see if your getting any traffic

---

<div class="post-metadata">

### Author: ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)
#### Post date: [July 9, 2021, 5:00pm UTC](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869/20 "2021-07-09T17:00:25Z")

</div>

I will continue playing - I set up a webhook using a youtube tutorial on v3 and [tago.io](http://tago.io) and that worked fine - but it’s using a template. Maybe I will await the template correction on TTN.

[Next page](https://community.homey.app/t/app-pro-the-things-network-make-homey-part-of-a-global-lorawan-network/48869.md?page=2)
