gotify-Adapter für ioBroker
Sende Push-Benachrichtigungen von ioBroker an Gotify
Installation
Vorbereitung
- Melden Sie sich mit Ihrem Benutzer bei gotify an.
- Erstellen Sie eine Anwendung für ioBroker
- Notieren Sie sich das Token Ihrer neuen Anwendung.

In ioBroker
- Zum Adapter gehen
- Klicken Sie auf das GitHub-Katzensymbol.
- Wechseln Sie zur Registerkarte „Benutzerdefiniert“.
- Besuchen Sie https://github.com/ThomasPohl/ioBroker.gotify
- Installieren
- Erstellen Sie eine neue Instanz für den gotify-Adapter.
- Geben Sie die URL Ihrer Installation ein.
- Fügen Sie das zuvor erstellte Token hinzu.
Verwendung
Blockly
Um Nachrichten mit Blockly zu senden, fügen Sie einfach den gotify-Block zu Ihrem Skript hinzu:
Wenn Sie Markdown als Format wählen, können Sie Ihre Nachrichten mit Markdown formatieren.
Javascript
Senden Sie eine einfache Nachricht mit dem Standardtoken:
sendTo('gotify.0', 'send', {
title: 'DG lüften',
message: 'Luftfeuchtigkeit im DG zu hoch!',
});
Senden Sie eine Nachricht mit einem benutzerdefinierten Token (überschreibt das konfigurierte Standardtoken):
sendTo('gotify.0', 'send', {
title: 'Custom notification',
message: 'This message uses a different token',
priority: 8,
contentType: 'text/markdown',
token: 'AaBbCcDdEeFfGg123456',
});
Kommunikation
Das folgende Diagramm veranschaulicht, wie ioBroker Push-Benachrichtigungen an Ihr Smartphone sendet.
Sowohl ioBroker als auch die Smartphone-App verbinden sich über REST mit dem gotify-Server. Die mobile App hält eine offene WebSocket-Verbindung zum gotify-Server aufrecht, um neue Benachrichtigungen empfangen zu können.
Wenn der ioBroker-Adapter eine Benachrichtigung senden möchte, sendet er eine POST-Anfrage an den Gotify-Server. Der Gotify-Server kümmert sich dann um die Weiterleitung der Benachrichtigung an den Client.
Changelog
WORK IN PROGRESS
- (copilot) Adapter requires node.js >= 22 now
0.5.0 (2025-12-28)
- (Thomas Pohl) Allow to overwrite token when sending messages (javascript only not for blockly)
- (Thomas Pohl) Update dependencies
0.4.0
- (Thomas Pohl) Support for notification-manager was added
- (Thomas Pohl) Blockly can now send messages with priority 10
0.3.0
- (Thomas Pohl) The token is stored now encrypted
- (Thomas Pohl) node.js 22 is supported
0.2.1
- (Thomas Pohl) Optimized startup behavior when adapter is not configured
0.2.0
- (Thomas Pohl) Add timeout for http calls
- (Thomas Pohl) Update dependency versions
License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2024-2026 Thomas Pohl post@thomaspohl.net