Files

87 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2026-08-23 08:16:15 +02:00
controller:
plugins:
_arrival_detection:
module: lib._arrival_detection
factory: create
config: arrival_detection
on_event: [_notify, _cloud_logger]
actions:
_notify:
module: lib._notify
handler: on_event
config: notify
_cloud_logger:
module: lib._cloud_logger
handler: on_event
config: cloud_logger
logging:
level: INFO
2026-08-23 15:09:18 +02:00
file: /tmp/home_control_log.txt
2026-08-23 08:16:15 +02:00
2026-08-22 16:12:14 +02:00
arrival_detection:
enabled: true
zyxel:
host: http://192.168.178.2
username: admin
password: KYKPXWJ8
timeout: 10
verify_tls: true
hosts_oid: lanhosts
2026-08-23 08:16:15 +02:00
# Log every router/API call and its result without logging credentials.
2026-08-26 18:50:46 +02:00
debug: false
2026-08-23 08:16:15 +02:00
devices:
- id: ignace
mac: "ce:68:53:a8:fc:07"
- id: janine
mac: "dc:10:57:9b:85:0e"
- id: Fatima
mac: "02:f8:26:33:2f:d9"
2026-08-22 16:12:14 +02:00
polling:
interval_seconds: 5
present_after: 2
absent_after: 4
error_retry_seconds: 30
2026-08-23 08:16:15 +02:00
2026-08-26 18:50:46 +02:00
event_log: /tmp/detect-arrivals.txt
2026-08-23 08:16:15 +02:00
notify:
enabled: true
filter:
# Empty accept lists allow all values. Ignore lists always take precedence.
accept:
2026-08-26 18:17:03 +02:00
events: [empty, first_arrival]
2026-08-23 08:16:15 +02:00
ids: []
ignore:
2026-08-26 18:17:03 +02:00
events: [departed]
2026-08-23 08:16:15 +02:00
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
message: "{sender}: {event} ({id})"
messages:
arrived: "{id} arrived home"
2026-08-26 18:17:03 +02:00
first_arrival: "{id} is the first to arrive home"
2026-08-23 08:16:15 +02:00
departed: "{id} left home"
empty: "The house is empty"
# May also be supplied through the NTFY_TOPIC_URL environment variable.
topic_url: "https://ntfy.sh/VK20_Home_Alert_______4671938674123049873459"
timeout: 10
cloud_logger:
enabled: true
2026-08-26 18:35:33 +02:00
event_url: https://www.suy.nl/home_logger/event
# event_url: http://127.0.0.1:29651/home_logger/event
2026-08-23 08:16:15 +02:00
timeout: 10
filter:
# Empty accept lists allow all values. Ignore lists always take precedence.
accept:
2026-08-23 15:09:18 +02:00
events: []
2026-08-23 08:16:15 +02:00
ids: []
ignore:
2026-08-23 15:09:18 +02:00
events: []
2026-08-23 08:16:15 +02:00
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
2026-08-23 15:09:18 +02:00
message: "{datetime} {sender}: {event} ({id})"