Skip to content

Rhizomatics Open Source

Mikrotik SMS Notifier

Notify using SMS service via LTE modem on a Mikrotik router.

Sends to multiple notify targets, where each target is a phone number, optionally using E.164 international style.

Filter out broken numbers, and control for premium rate and international numbers.

Setup

Register this GitHub repo as a custom repo in your HACS configuration.

A username and password is required on the Mikrotik router.

Configure in the main Home Assistant config yaml, or an included notify.yaml

- name: Mikrotik SMS
  platform: mikrotik_sms
  host: 192.168.88.200
  username: !secret mikrotik_user
  password: !secret mikrotik_password
  port: lte1
  ban_premium: true # default
  country_codes_allowed: 91, 43 # automatically adds country code for Home Assistant configured region

With the user and password added to the HomeAssistant secrets.yaml file

Optionally an smscentre can be configured, and also timeout in seconds tuned ( default 20 seconds).

To allow calling to any international code, use 0 as the wildcard in country_codes_allowed

Options

In the notification data section, type and channel can optionally be specified. See the Mikrotik documentation for understanding of those.

Reference

https://wiki.mikrotik.com/wiki/Manual:Tools/Sms

pre-commit