Files
home_control/service.yaml
T

83 lines
1.9 KiB
YAML
Raw 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-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.
debug: true
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
event_log: log/detect-arrivals.txt
notify:
enabled: true
filter:
# Empty accept lists allow all values. Ignore lists always take precedence.
accept:
events: [empty]
ids: []
ignore:
events: [arrived, departed]
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
message: "{sender}: {event} ({id})"
messages:
arrived: "{id} arrived home"
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-23 08:26:40 +02:00
event_url: http://www.suy.nl: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:
events: [empty]
ids: []
ignore:
events: [arrived, departed]
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
message: "{datetime} {sender}: {event} ({id})"