Mikrotik router integration for Home Assistant
Monitor and control your Mikrotik device from Home Assistant.
Monitor and control status on each Mikrotik interface, both lan and wlan. Both physical and virtual.
Monitor and control individual NAT rules.
More information about NAT rules can be found on Mikrotik support page.
Monitor and control individual Mangle rules.
More information about Mangle rules can be found on Mikrotik support page.
Control simple queues.
More information about simple queues can be found on Mikrotik support page.
NOTE: FastTracked packets are not processed by Simple Queues.
Control and monitor PPP users.
Track availability of all network devices. All devices visible to Mikrotik device can be tracked, including: LAN connected devices and both Wireless and CAPsMAN from Mikrotik wireless package.
Track netwatch status.
Execute Mikrotik Router scripts. You can execute scripts by automatically created switches or using services.
Monitor and control Kid Control.
Monitor per-IP throughput tracking based on Mikrotik Accounting.
Feature is present in Winbox IP-Accounting. Make sure that threshold is set to reasonable value to store all connections between user defined scan interval. Max value is 8192 so for piece of mind I recommend setting that value.
More information about Accounting can be found on Mikrotik support page.
NOTE: Accounting does not count in FastTracked packets.
In RouterOS v7 Accounting feature is deprecated so alternative approach for is to use Kid Control Devices feature (IP - Kid Control - Devices).
This feature requires at least one 'kid' to be defined, after that Mikrotik will dynamically start tracking bandwidth usage of all known devices.
Simple dummy Kid entry can be defined with
/ip kid-control add name=Monitor mon=0s-1d tue=0s-1d wed=0s-1d thu=0s-1d fri=0s-1d sat=0s-1d sun=0s-1d
Monitor your UPS.
Monitor your GPS coordinates.
Update Mikrotik OS and firmare directly from Home Assistant.
This integration is distributed using HACS.
You can find it under "Integrations", named "Mikrotik Router"
Minimum requirements:
If you are using development branch for mikrotik, some features may stop working due to major changes in RouterOS. Use integration master branch instead of latest release to keep up with RouterOS beta adjustments.
Configuration -> Integrations -> Add -> Mikrotik Router
.
You can add this integration several times for different devices.NOTES:
First options page:
Second options page:
Select sensors you want to use in Home Assistant.
To help out with the translation you need an account on Lokalise, the easiest way to get one is to click here then select "Log in with GitHub". After you have created your account click here to join Mikrotik Router project on Lokalise.
If you want to add translations for a language that is not listed please open a Feature request.
Download diagnostics data for investigation:
To enable debug for Mikrotik router integration, add following to your configuration.yaml:
logger:
default: info
logs:
custom_components.mikrotik_router: debug