Repository navigation
Die erste Version von lite-addon-notify: Benachrichtigungen für openccu-lite 1.2.0 und neuer.
- Was es meldet: die Warnungen der Status-Seite, neu und behoben (auch die Hinweise, die andere Addons dort ablegen); die Servicemeldungen der Geräte – Kommunikation gestört, Batterie schwach, Sabotage und Störungen, Konfiguration oder Firmware-Update steht an –, neu und behoben, mit Gerätename und Raum; eigene Datenpunkt-Regeln (ein Wert ist wahr oder falsch, gleich, über oder unter einer Schwelle, auf Wunsch erst nach einer Zeit: „Fenster länger als zehn Minuten offen“); Systemereignisse (Systemupdate verfügbar, Update installiert, Sicherung erstellt, Sicherung fehlgeschlagen, Neustart); ein Tagesbericht, der „Alles in Ordnung“ sagt oder was offen ist.
- Wohin es sendet: Pushover, Telegram (ein Bot), E-Mail (SMTP mit STARTTLS, TLS oder unverschlüsselt, mit oder ohne Anmeldung), ntfy, Gotify, Signal (über einen signal-cli-REST-Server, den Sie betreiben), Discord, Slack und Matrix (über ihre Webhook-URLs; Matrix über eine Webhook-Brücke), ein allgemeiner Webhook (die Nachricht als JSON oder mit eigener Vorlage) und MQTT (ohne Angabe der Mosquitto auf dem System).
- Ein Test-Knopf je Kanal, der im Klartext sagt, was nicht geht: Der Name lässt sich nicht auflösen, die Verbindung wird abgelehnt, das Zertifikat ist nicht vertrauenswürdig, der Server bietet kein STARTTLS, die Anmeldung wird abgelehnt, der Absender oder ein Empfänger wird zurückgewiesen – jeweils mit der Antwort des Servers.
- Regeln: eine Quelle, ein Filter und die Kanäle. Drei Regeln sind von Anfang an da und senden an jeden Kanal; der erste Kanal, den Sie anlegen, bekommt also sofort Warnungen, Servicemeldungen und Systemereignisse. Dazu Bündelung (mehrere Ereignisse im Fenster sind eine Nachricht; was im Fenster kommt und geht, keine), eine Wartezeit für Servicemeldungen, Ruhezeiten, Wiederholungsunterdrückung, ein Mengenlimit je Kanal, drei Prioritäten, „behoben“-Nachrichten und eigene Vorlagen für Titel und Text (Jinja-Syntax) mit Vorschau.
- Zustellung: eine Warteschlange je Kanal, Wiederholung nach 10 s, 1 min, 5 min und 15 min, ein Verlauf der letzten 200 Zustellungen mit dem Grund jedes Fehlers; ein Kanal, der dauerhaft scheitert, erscheint als Hinweis auf der Status-Seite.
- Eingehender Webhook:
POST http://127.0.0.1:8300/inboundmit einem Geheimnis, für andere Addons, Node-RED-Flows und Skripte auf dem System; aus, bis Sie ihn einschalten, und nur vom System selbst erreichbar. - Das Addon liest nur vom System (
system:read,rpc:read,meta:read), schaltet und ändert nichts und öffnet keinen Port im Netz. Es verbindet sich mit nichts, bis Sie einen Kanal anlegen. „Sicherung erstellt“ braucht openccu-lite 2.0.0 oder neuer.
notify-<arch>-0.1.0.tar.gz über die Addons-Seite des Systems installieren (aarch64 für einen Raspberry Pi 3/4/5, x86_64 für die OVA, armv7l für ein 32-Bit-System).
The first release of lite-addon-notify: notifications for openccu-lite 1.2.0 and later.
- What it reports: the Status page's warnings, new and resolved (the notices other addons post there included); the devices' service messages - communication disturbed, battery low, sabotage and faults, configuration or firmware update pending - new and resolved, with the device's name and room; datapoint rules of your own (a value is true or false, equals, is above or below a threshold, if you like only after a time: "window open for more than ten minutes"); system events (system update available, update installed, backup made, backup failed, restart); a daily digest that says "all clear" or what is open.
- Where it sends: Pushover, Telegram (a bot), email (SMTP with STARTTLS, TLS or neither, with or without a login), ntfy, Gotify, Signal (through a signal-cli REST server you run), Discord, Slack and Matrix (through their webhook URLs; Matrix through a webhook bridge), a generic webhook (the message as JSON, or a template of your own) and MQTT (the Mosquitto on the system when you name none).
- A Test button per channel that says in clear what does not work: the name does not resolve, the connection is refused, the certificate is not trusted, the server offers no STARTTLS, the login is refused, the sender or a recipient is rejected - each with the server's own answer.
- Rules: a source, a filter and the channels. Three rules are there from the start and send to every channel, so the first channel you add receives warnings, service messages and system events at once. With batching (several events within the window are one message; one that comes and goes within it is none), a hold time for service messages, quiet hours, repeat suppression, a rate limit per channel, three priorities, "resolved" messages and title and body templates of your own (Jinja syntax) with a preview.
- Delivery: a queue per channel, retries after 10 s, 1 min, 5 min and 15 min, a history of the last 200 deliveries with the reason of every failure; a channel that keeps failing shows as a notice on the Status page.
- Inbound webhook:
POST http://127.0.0.1:8300/inboundwith a secret, for other addons, Node-RED flows and scripts on the system; off until you switch it on, and reachable from the system itself only. - The addon only reads from the system (
system:read,rpc:read,meta:read), switches and changes nothing, and opens no port to the network. It connects to nothing until you add a channel. "Backup made" needs openccu-lite 2.0.0 or later.
Install notify-<arch>-0.1.0.tar.gz through the system's Addons page (aarch64 for a Raspberry Pi 3/4/5, x86_64 for the OVA, armv7l for a 32-bit system).