Files
home_control/service.yaml
T
2026-08-26 18:35:33 +02:00

87 lines
2.1 KiB
YAML

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
file: /tmp/home_control_log.txt
arrival_detection:
enabled: true
zyxel:
host: http://192.168.178.2
username: admin
password: KYKPXWJ8
timeout: 10
verify_tls: true
hosts_oid: lanhosts
# 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"
polling:
interval_seconds: 5
present_after: 2
absent_after: 4
error_retry_seconds: 30
event_log: log/detect-arrivals.txt
notify:
enabled: true
filter:
# Empty accept lists allow all values. Ignore lists always take precedence.
accept:
events: [empty, first_arrival]
ids: []
ignore:
events: [departed]
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
message: "{sender}: {event} ({id})"
messages:
arrived: "{id} arrived home"
first_arrival: "{id} is the first to arrive 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
event_url: https://www.suy.nl/home_logger/event
# event_url: http://127.0.0.1:29651/home_logger/event
timeout: 10
filter:
# Empty accept lists allow all values. Ignore lists always take precedence.
accept:
events: []
ids: []
ignore:
events: []
ids: []
# Available placeholders: {sender}, {event}, {id}, {text}.
message: "{datetime} {sender}: {event} ({id})"