2021-04-12 12:12:57 -07:00
---
2022-03-08 23:10:41 -08:00
id: ext-notif-module
2021-04-12 12:12:57 -07:00
title: External notifications
sidebar_label: External notifications
2021-04-12 12:25:10 -07:00
---
2022-03-18 05:53:08 -07:00
import PluginModule from '@site/docs/_blocks/_plugin_module.mdx';
2022-03-08 23:10:41 -08:00
2021-04-12 12:25:10 -07:00
## About
2022-03-08 23:10:41 -08:00
The ExternalNotification Module will allow you to connect a speaker, LED or other device to notify you when a message has been received from the mesh network.
2021-04-12 12:25:10 -07:00
## Configuration
2022-03-18 06:53:31 -07:00
< PluginModule name = "ext_notification_" rename = "ext_notification_" / >
2022-03-18 05:53:08 -07:00
2021-04-12 12:25:10 -07:00
These are the settings that can be configured.
2022-03-08 23:10:41 -08:00
ext_notification_module_enabled
Is the module enabled?
2021-04-12 12:25:10 -07:00
0 = Disabled (Default)
1 = Enabled
2022-03-08 23:10:41 -08:00
ext_notification_module_active
2021-04-12 12:25:10 -07:00
Is your external circuit triggered when our GPIO is low or high?
0 = Active Low (Default)
1 = Active High
2022-03-08 23:10:41 -08:00
ext_notification_module_alert_message
2021-04-12 12:25:10 -07:00
Do you want to be notified on an incoming message?
0 = Disabled (Default)
1 = Alert when a text message comes
2022-03-08 23:10:41 -08:00
ext_notification_module_alert_bell
2021-04-12 12:25:10 -07:00
Do you want to be notified on an incoming bell?
0 = Disabled (Default)
1 = Alert when the bell character is received
2022-03-08 23:10:41 -08:00
ext_notification_module_output
2021-04-12 12:25:10 -07:00
What GPIO is your external circuit attached?
GPIO of the output. (Default = 13)
2022-03-08 23:10:41 -08:00
ext_notification_module_output_ms
2021-04-12 12:25:10 -07:00
How long do you want us to trigger your external circuit?
2022-03-08 23:10:41 -08:00
Amount of time in ms for the alert. Default is 1000.
2021-04-12 12:25:10 -07:00
## Usage Notes
For basic usage, start with:
2022-03-08 23:10:41 -08:00
ext_notification_module_enabled = 1
ext_notification_module_alert_message = 1
2021-04-13 14:07:38 -07:00
2021-12-27 13:28:55 -08:00
Depending on how your external circuit is configured, you may need to set the active state to true.
2021-04-12 12:25:10 -07:00
2022-03-08 23:10:41 -08:00
ext_notification_module_active = 1
2021-04-13 14:16:14 -07:00
:::note
2022-03-08 23:10:41 -08:00
The device must be restarted after the settings have been changed for the module to take effect.
2021-04-13 14:16:14 -07:00
:::
2022-03-08 23:10:41 -08:00
2021-04-12 12:25:10 -07:00
### Alert Types
We support being alerted on two events:
2022-03-08 23:10:41 -08:00
1. Incoming Text Message
2021-04-12 12:25:10 -07:00
2022-03-08 23:10:41 -08:00
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.
2021-04-12 12:25:10 -07:00
#### Bell Character
2022-03-08 23:10:41 -08:00
The bell character is ASCII 0x07. Include 0x07 anywhere in the text message and with ext_notification_module_alert_bell enabled, we will issue an external notification.
2021-04-12 12:25:10 -07:00
## External Hardware
2021-12-27 11:39:42 -08:00
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.
2021-04-12 12:25:10 -07:00
Ideas for external hardware:
2022-03-08 23:10:41 -08:00
- LED
- Active Buzzer
- Flame thrower
- Strobe Light
- Siren
2021-04-12 12:25:10 -07:00
## Known Problems
2022-03-08 23:10:41 -08:00
- This won't directly support a passive (normal) speaker as it does not generate any audio wave forms.
- This currently only supports the ESP32. Other targets may be possible, I just don't have to test with.
- This module only monitors text messages. We won't trigger on any other packet types.