# \[Feature Request\] email notification when gateway disconnected for more than x time

**URL:** <https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724>\
**Category:** The Things Stack v3\
**Created:** [June 25, 2022, 9:02am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724 "2022-06-25T09:02:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfmateos](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jfmateos/32/48524_2.png) [@jfmateos](https://www.thethingsnetwork.org/forum/u/jfmateos)\
**Post date:** [June 25, 2022, 9:02am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/1 "2022-06-25T09:02:19Z")

</div>

I think it would help to keep gateways online to receive an email notification when they are disconnected for more than a certain ammount of time.

I know this can be accomplished using external scripts, but that is not easy for non techie users.

Kind regards.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 25, 2022, 10:58am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/2 "2022-06-25T10:58:11Z")

</div>

All feature requests need to be entered on GitHub - the TTI dev team don’t frequent the forum as a matter of course. If you link to the issue then people can vote for it to show popularity but that doesn’t mean it will necessarily be done.

On the other hand, what are the challenges for people that can setup LoRaWAN stuff but can’t get an email notification sorted? What backend do you use for your data - maybe that could give you heads up?

---

<div class="post-metadata">

**Author:** ![jfmateos](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jfmateos/32/48524_2.png) [@jfmateos](https://www.thethingsnetwork.org/forum/u/jfmateos)\
**Post date:** [June 25, 2022, 11:08am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/3 "2022-06-25T11:08:25Z")

</div>

Ok, thank you very much @descartes. I will ask in github.

Some gateways are installed in our relatives’ homes or other community members that only use TTN at basic user level.

---

<div class="post-metadata">

**Author:** ![jfmateos](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jfmateos/32/48524_2.png) [@jfmateos](https://www.thethingsnetwork.org/forum/u/jfmateos)\
**Post date:** [June 25, 2022, 11:31am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/4 "2022-06-25T11:31:49Z")

</div>

It was already there:

> <https://github.com/TheThingsNetwork/lorawan-stack/issues/4730>
>
> \<!--
> Thanks for submitting a feature request. Please fill the template below,
> …otherwise we will not be able to process this feature request.
> \--\>
> 
> \#### Summary
> Alerting gateways UP or DOWN in TTN V3 (connected versus disconnected)
> Feature: sent an email when status af gateways change (name and current status (from UP tot DOWN of from DOWN to up) + date & time
> 
> \#### Why do we need this?
> The uptime and therefore coverage of the TTN Community network if important. The new TTN V3 stack has a better and more accurate status of a gateway. Know as "Connected" versus "Disconnected"
> 
> The status from Connected to Disconnected is shown in the Console seconds/minutes after I bring one of my gateways down.
> 
> It should be easy that if you update this status, the Console can sent an email alert about the status change
> 
> 
> \#### What is already there? What do you see now?
> Yes, V3 has an API where everyone can build this feature by them selves. 
> 1.000 and more users had to program this where it can be achieved from one source; TTN
> 
> But I believe it is a key feature of a system that monitors the status of hardware and not informing the user/admin :-(
> 
> 
> \#### What is missing? What do you want to see?
> E-mail alert if the status af o gateway change:
> \* name of the gateway
> \* date & time
> \* status: from UP to DOWN and of course from DOWN to up
> \* email address (and preferable some more to add ;-) 
> 
> \#### Environment
> The TTN V3 Console where every body logins to
> 
> 
> \#### How do you propose to implement this?
> TTN has already the status of a gateway bij showing in the Console: "Connected"or "Disconnected"
> If can't be hard to sent an email when this change as the change is already in TTN V3 Console
> 
> \#### How do you propose to test this?
> I am glas to help. I have 3 gateways at home to test
> ...
> 
> \#### Can you do this yourself and submit a Pull Request?
> No, I do not have the knowlegde
> 
> Best
> Marc
> www.ttn0478.nl, the 100% open and 100% free LoRaWAN network in NL-Venray

I have upvoted it 😉

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 25, 2022, 11:37am UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/5 "2022-06-25T11:37:00Z")

</div>

The gateways at relatives home isn’t applicable - it’s presumably your gateway so you can do the config. Even using TTN as a basic user level requires quite a lot of configuration & setup.

What about the backend that’s being used - can that not alert you?

What is the challenge with the current potential solutions.

The more detail the more people can chime in ideas.

And, sure, it may have already been suggested, but as per the comments, it is a load on the backend that may not make it to TTN. Whereas if you read the meta data of your devices you can see which gateways heard the uplink and from that you can infer that if your gateway isn’t included (or the uplink is overdue) that the gateway is down.

And as I’ve contributed a number of integrations for v3, if I know what level a ‘basic’ user operates at, I can think on how it could work - at the minimum the integrations require a Python script running at home or a small bit of web space to upload a ‘no configuration necessary’ PHP script.

---

<div class="post-metadata">

**Author:** ![jfmateos](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jfmateos/32/48524_2.png) [@jfmateos](https://www.thethingsnetwork.org/forum/u/jfmateos)\
**Post date:** [June 25, 2022, 5:22pm UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/6 "2022-06-25T17:22:00Z")

</div>

Thank you very much @descartes

I hope this feature will find its way into TTN and will wait for it.

As a local community, we have helped other users to configure their gateways, but we don’t keep control on them, and their owners sometimes don’t realise that the gateways are down for days or even weeks.

Every user chooses its prefered backend (some very easy ones as IFTTT, or our Telegram solution myIoTlegram).

Kind regards from Madrid.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [June 25, 2022, 8:22pm UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/7 "2022-06-25T20:22:12Z")

</div>

> [@jfmateos](#):
>
> Every user chooses its prefered backend (some very easy ones as IFTTT, or our Telegram solution myIoTlegram).

Tell us about it then maybe the non techie users can also implement it.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 25, 2022, 8:29pm UTC](https://www.thethingsnetwork.org/forum/t/feature-request-email-notification-when-gateway-disconnected-for-more-than-x-time/57724/8 "2022-06-25T20:29:28Z")

</div>

> [@jfmateos](#):
>
> I hope this feature will find its way into TTN and will wait for it.

It would be nice, but I personally don’t want features adding that increase the load on the TTN servers if we can do it ourselves. Particularly as you now say you have at least two solutions. So, very happy to see in the TTI instances, but not so much in TTN.

We can’t just expect TTI to add extra compute-expensive functionality. The community can build solutions, but as I asked above, need the information to know how to provide it - but no response - hopefully you can oblige.
