2022-06-25 00:39:41 -07:00
---
id: external-notification
2022-06-29 08:55:33 -07:00
title: External Notification Module Configuration
2022-11-02 11:46:54 -07:00
slug: /settings/moduleconfig/external-notification
2022-06-25 00:39:41 -07:00
sidebar_label: External Notification
---
2023-01-19 05:01:57 -08:00
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
The External Notification Module will allow you to connect a buzzer, speaker, LED, or other device to notify you when a message has been received from the mesh network. You can enable up to 3 pins independently from each other.
2022-06-25 00:39:41 -07:00
2023-06-24 22:23:16 -07:00
<object data="https://www.youtube.com/embed/MWt3RHMpifo?autohide=1&autoplay=0" width="100%" height="400"></object>
2023-01-19 05:01:57 -08:00
## External Notification Module Config Values
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
### Enabled
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Enables the external notification module.
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
### Alert when receiving a bell (general / LED, Vibra and Buzzer)
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies if an alert should be triggered when receiving an incoming bell.
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
### Alert when receiving a message (general / LED, Vibra and Buzzer)
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Specifies if an alert should be triggered when receiving an incoming message.
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
### Active (general / LED only)
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
Specifies whether the external circuit is active when the device's GPIO is low or high.
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
### GPIO Pins (general / LED, Vibra and Buzzer)
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
Specifies the GPIO that your external circuit is attached to on the device. On devices that have a PWM buzzer, you can use the buzzer for notifications by setting the use_pwm property to TRUE. The Buzzer Pin will be ignored and the device.buzzer_gpio is used instead. If you enable PWM mode, the device will use
so-called RTTTL ring tones for notification. You can find examples of RTTTL ring tones [here](https://www.laub-home.de/wiki/RTTTL_Songs) and upload them to the device via a client application.
2022-06-25 00:39:41 -07:00
2022-10-22 03:50:49 -07:00
:::info
2022-11-02 11:46:54 -07:00
On ESP32 based boards, GPIOs 34 to 39 are GPIs – input only pins. These pins do not have internal pull-up or pull-down resistors. They can not be used as outputs, so you can NOT use these pins as outputs.
2022-10-22 03:50:49 -07:00
:::
2022-06-29 12:08:30 -07:00
### How long monitored GPIO is triggered
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
Specifies how long in milliseconds you would like your GPIOs to be active. In case of the repeat option, this is the duration of every tone and pause.
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
Default of 0 is 1000ms
2022-06-25 00:39:41 -07:00
2023-01-19 06:53:02 -08:00
### Repeat (Nag Timeout) (general / LED, Vibra and Buzzer)
Specifies if the alert should be repeated. If set to a value greater than zero, the alert will be repeated until the user button is pressed or 'value' number of seconds have past.
2022-06-29 12:08:30 -07:00
## External Notification Module Config Client Availability
2022-06-25 00:39:41 -07:00
<Tabs
groupId="settings"
2022-07-14 22:33:45 -07:00
defaultValue="apple"
2022-06-25 00:39:41 -07:00
values={[
{label: 'Android', value: 'android'},
2022-06-29 12:08:30 -07:00
{label: 'Apple', value: 'apple'},
2022-06-25 00:39:41 -07:00
{label: 'CLI', value: 'cli'},
{label: 'Web', value: 'web'},
]}>
2022-06-29 12:08:30 -07:00
<TabItem value="android">
2022-06-25 00:39:41 -07:00
:::info
2022-12-04 13:28:19 -08:00
External Notification Config options are available for Android.
1. Open the Meshtastic App
2023-06-17 22:06:11 -07:00
2. Navigate to: **Vertical Ellipsis (3 dots top right) > Radio Configuration > External Notification**
2022-12-04 13:28:19 -08:00
2022-06-25 00:39:41 -07:00
:::
2022-06-29 12:08:30 -07:00
</TabItem>
<TabItem value="apple">
2022-06-25 00:39:41 -07:00
:::info
2022-06-29 12:08:30 -07:00
All external notification module config options are available on iOS, iPadOS and macOS at Settings > Modules > External Notification.
2022-06-25 00:39:41 -07:00
:::
2022-06-29 12:08:30 -07:00
</TabItem>
<TabItem value="cli">
2022-06-25 00:39:41 -07:00
2023-01-06 16:02:38 -08:00
:::info
2022-11-02 11:46:54 -07:00
All external notification module config options are available in the python CLI. Example commands are below:
2022-06-25 00:39:41 -07:00
2023-01-06 16:02:38 -08:00
:::
2023-01-24 01:03:24 -08:00
| Setting | Acceptable Values | Default |
2023-01-19 06:53:02 -08:00
| :----------------------------------------: | :----------------------: | :-----: |
2023-01-24 01:03:24 -08:00
| external_notification.enabled | `true`, `false` | `false` |
| external_notification.active | `true`, `false` | `false` |
| external_notification.alert_bell | `true`, `false` | `false` |
| external_notification.alert_bell_vibra | `true`, `false` | `false` |
2023-01-19 06:53:02 -08:00
| external_notification.alert_bell_buzzer | `true`, `false` | `false` |
2023-01-24 01:03:24 -08:00
| external_notification.alert_message | `true`, `false` | `false` |
2023-01-19 06:53:02 -08:00
| external_notification.alert_message_vibra | `true`, `false` | `false` |
| external_notification.alert_message_buzzer | `true`, `false` | `false` |
2023-01-24 01:03:24 -08:00
| external_notification.output | `integer` | `0` |
| external_notification.output_vibra | `integer` | `0` |
| external_notification.output_buzzer | `integer` | `0` |
| external_notification.output_ms | `integer` (milliseconds) | `0` |
| external_notification.use_pwm | `true`, `false` | `false` |
| external_notification.nag_timeout | `integer` (seconds) | `0` |
2022-06-25 00:39:41 -07:00
2023-01-06 16:02:38 -08:00
:::tip
Because the device will reboot after each command is sent via CLI, it is recommended when setting multiple values in a config section that commands be chained together as one.
```shell title="Example:"
meshtastic --set external_notification.enabled true --set external_notification.alert_bell true
```
:::
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable External Notification Module"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.enabled true
meshtastic --set external_notification.enabled false
2022-06-25 00:39:41 -07:00
```
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable alert on incoming bell"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.alert_bell true
meshtastic --set external_notification.alert_bell false
2022-06-25 00:39:41 -07:00
```
2022-11-02 11:46:54 -07:00
```shell title="Set GPIO active high / low (default of false is low)"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.active false
meshtastic --set external_notification.active true
2022-06-29 12:08:30 -07:00
```
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
```shell title="Enable/Disable alert on incoming message"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.alert_message true
meshtastic --set external_notification.alert_message false
2022-06-29 12:08:30 -07:00
```
2022-06-25 00:39:41 -07:00
2022-06-29 12:08:30 -07:00
```shell title="Set GPIO to monitor to 21"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.output 21
2022-06-25 00:39:41 -07:00
```
2022-06-29 12:08:30 -07:00
```shell title="Set monitored GPIO output duration (default of 0 is 1000ms)"
2022-08-30 23:55:11 -07:00
meshtastic --set external_notification.output_ms 0
meshtastic --set external_notification.output_ms 1500
2022-06-25 00:39:41 -07:00
```
2023-01-19 05:01:57 -08:00
2022-06-29 12:08:30 -07:00
</TabItem>
2023-01-06 16:02:38 -08:00
<TabItem value="web">
2022-06-25 00:39:41 -07:00
:::info
2022-08-03 08:16:18 -07:00
All External Notification module config is available for the Web UI.
2022-06-25 00:39:41 -07:00
:::
2023-01-19 05:01:57 -08:00
2023-01-06 16:02:38 -08:00
</TabItem>
2022-06-25 00:39:41 -07:00
</Tabs>
2022-06-29 12:08:30 -07:00
2022-07-14 22:17:44 -07:00
:::warning
GPIO access is fundamentally dangerous because invalid options can physically damage or destroy your hardware. Ensure that you fully understand the schematic for your particular device before trying this as we do not offer a warranty. Use at your own risk.
This module requires attaching a peripheral accessory to your device. It will not work without one.
:::
2022-07-03 11:20:04 -07:00
## Examples
### Alert Types
We support being alerted on two events:
1. Incoming Text Message
2. Incoming Text Message that contains the ASCII bell character. At present, only the Python API can send an ASCII bell character, but more support may be added in the future.
:::info
2022-08-03 08:16:18 -07:00
The bell character is ASCII 0x07. Include 0x07 anywhere in the text message and with ext_notification.alert_bell enabled, we will issue an external notification.
2022-07-03 11:20:04 -07:00
:::
## External Hardware
Be mindful of the max current sink and source of the ESP32 GPIO. The easiest devices to interface with would be either an LED or Active Buzzer.
Ideas for external hardware:
- LED
- Active Buzzer
- Flame thrower
- Strobe Light
- Siren
2023-06-22 05:27:09 -07:00
## Known Limitations
2022-07-03 11:20:04 -07:00
2022-10-22 03:50:49 -07:00
- This module only monitors text messages. We won't trigger on any other packet types.