From 32e6a3ad7bdd3e7b3baf24c4cc17e93949f35265 Mon Sep 17 00:00:00 2001 From: sirmrak Date: Mon, 12 Oct 2026 12:23:22 +0300 Subject: [PATCH] Add files/openwrt_ha --- files/openwrt_ha | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 files/openwrt_ha diff --git a/files/openwrt_ha b/files/openwrt_ha new file mode 100644 index 0000000..fb2c423 --- /dev/null +++ b/files/openwrt_ha @@ -0,0 +1,42 @@ +# ============================================ +# Конфигурация OpenWrt HA Presence Tracker +# ============================================ +# Для редактирования: vi /etc/config/openwrt_ha +# После изменений выполните: +# /etc/init.d/openwrt_presence restart +# /usr/bin/mqtt_ha_discovery.sh + +# ============================================ +# НАСТРОЙКИ MQTT БРОКЕРА +# ============================================ +config mqtt 'main' + option host '192.168.1.100' + option port '1883' + option user 'mqtt_user' + option pass 'mqtt_password' + option base_topic 'openwrt' + +# ============================================ +# ПРИМЕРЫ УСТРОЙСТВ (раскомментируйте при необходимости) +# ============================================ + +# --- Трекер (для людей, статусы home/not_home) --- +# config device 'device1' +# option name 'Телефон' +# option macs '14:e0:1d:c7:05:76' +# option type 'tracker' +# option delay '30' + +# --- Тревога/IoT (для розеток, статусы online/offline) --- +# config device 'device2' +# option name 'Розетка гостиная' +# option macs 'aa:bb:cc:dd:ee:ff' +# option type 'alarm' +# option delay '0' + +# --- Устройство с несколькими MAC (телефон + часы) --- +# config device 'device3' +# option name 'Планшет ребенка' +# option macs '11:22:33:44:55:66 77:88:99:aa:bb:cc' +# option type 'tracker' +# option delay '60' \ No newline at end of file