[pushover] Migration of Pushover OH1 action to OH3 binding (#8586)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2020-11-29 12:31:21 +01:00
committed by GitHub
parent 5d60d6464b
commit 6e0cacab31
24 changed files with 1725 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="pushover" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:binding="https://openhab.org/schemas/binding/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
<name>Pushover Binding</name>
<description>Pushover - Simple Notifications.</description>
</binding:binding>

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<config-description:config-descriptions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:pushover:pushover-account">
<parameter name="apikey" type="text" required="true">
<context>password</context>
<label>API Token / Key</label>
<description>Your API token / key (APP_TOKEN) to access the Pushover Message API.</description>
</parameter>
<parameter name="user" type="text" required="true">
<context>password</context>
<label>User / Group Key</label>
<description>Your user key or group key (USER_KEY) to which you want to push notifications.</description>
</parameter>
<parameter name="title" type="text">
<label>Title</label>
<description>The default title of a message.</description>
<default>openHAB</default>
</parameter>
<parameter name="format" type="text">
<label>Format</label>
<description>The default format of a message.</description>
<default>none</default>
<options>
<option value="none">None</option>
<option value="html">HTML</option>
<option value="monospace">monospace</option>
</options>
</parameter>
<parameter name="sound" type="text">
<label>Notification Sound</label>
<description>The default notification sound on target device.</description>
<default>default</default>
</parameter>
<parameter name="retry" type="integer" min="30" unit="s">
<advanced>true</advanced>
<label>Retry</label>
<description>The retry parameter specifies how often the Pushover servers will send the same notification to the
user.</description>
<default>300</default>
</parameter>
<parameter name="expire" type="integer" min="0" max="10800" unit="s">
<advanced>true</advanced>
<label>Expire</label>
<description>The expire parameter specifies how long your notification will continue to be retried.</description>
<default>3600</default>
</parameter>
</config-description>
</config-description:config-descriptions>

View File

@@ -0,0 +1,52 @@
# user defined messages
offline.conf-error-missing-apikey = The 'apikey' parameter must be configured.
offline.conf-error-missing-user = The 'user' parameter must be configured.
# actions
sendMessageActionLabel = send a plain text message
sendMessageActionDescription = This method is used to send a plain text message.
sendMessageActionOutputLabel = Sent
sendMessageActionOutputDescription = true, if message has been sent successfully
sendMessageActionInputMessageLabel = Message
sendMessageActionInputMessageDescription = Message to be sent.
sendMessageActionInputTitleLabel = Title
sendMessageActionInputTitleDescription = The title of the message.
sendURLMessageActionLabel = send a plain text message with an URL
sendURLMessageActionDescription = This method is used to send a message with an URL.
sendMessageActionInputURLLabel = URL
sendMessageActionInputURLDescription = A supplementary URL to show with the message.
sendMessageActionInputURLTitleLabel = URL Title
sendMessageActionInputURLTitleDescription = A title for the URL, otherwise just the URL is shown.
sendHTMLMessageActionLabel = send a HTML message
sendHTMLMessageActionDescription = This method is used to send a HTML message.
sendMonospaceMessageActionLabel = send a monospace message
sendMonospaceMessageActionDescription = This method is used to send a monospace message.
sendAttachmentMessageActionLabel = send a plain text message with an attachment
sendAttachmentMessageActionDescription = This method is used to send a message with an attachment.
sendMessageActionInputAttachmentLabel = Attachment
sendMessageActionInputAttachmentDescription = A (local) path to the attachment.
sendMessageActionInputContentTypeLabel = Content Type
sendMessageActionInputContentTypeDescription = The content type of the attachment. Defaults to "image/jpeg".
sendPriorityMessageActionLabel = send a priority message
sendPriorityMessageActionDescription = This method is used to send a priority message.
sendPriorityMessageActionOutputLabel = Receipt
sendPriorityMessageActionOutputDescription = Receipt, if priority message sent successfully.
sendMessageActionInputPriorityLabel = Priority
sendMessageActionInputPriorityDescription = Priority to be used. Defaults to 2.
cancelPriorityMessageActionLabel = cancel a priority message
cancelPriorityMessageActionDescription = This method is used to cancel a priority message.
cancelPriorityMessageActionOnputLabel = Cancelled
cancelPriorityMessageActionOnputDescription = true, if message has been cancelled successfully.
cancelPriorityMessageActionInputReceiptLabel = Receipt
cancelPriorityMessageActionInputReceiptDescription = Receipt of the message to be canceled.
sendMessageToDeviceActionLabel = send a plain text message to a specific device
sendMessageToDeviceActionDescription = This method is used to send a message to a specific device.
sendMessageActionInputDeviceLabel = Device
sendMessageActionInputDeviceDescription = The name of a specific device (multiple devices may be separated by a comma).

View File

@@ -0,0 +1,75 @@
# binding
binding.pushover.description = Pushover - Einfache Benachrichtigungen.
# thing types
thing-type.pushover.pushover-account.label = Pushover Konto
thing-type.pushover.pushover-account.description = Ermöglicht den Zugriff auf die Pushover Message API.
# thing type config description
thing-type.config.pushover.pushover-account.apikey.label = API Token / Key
thing-type.config.pushover.pushover-account.apikey.description = API Token / Schlüssel für den Zugriff auf die Pushover Message API.
thing-type.config.pushover.pushover-account.user.label = User / Group Key
thing-type.config.pushover.pushover-account.user.description = User / Group Key (USER_KEY) an den / die Nachrichten gesendet werden sollen.
thing-type.config.pushover.pushover-account.title.label = Titel
thing-type.config.pushover.pushover-account.title.description = Standardtitel der Nachricht.
thing-type.config.pushover.pushover-account.format.label = Format
thing-type.config.pushover.pushover-account.format.description = Standardformat der Nachricht.
thing-type.config.pushover.pushover-account.sound.label = Benachrichtigungston
thing-type.config.pushover.pushover-account.sound.description = Standardbenachrichtigungston auf dem Endgerät.
thing-type.config.pushover.pushover-account.retry.label = Wiederholungen
thing-type.config.pushover.pushover-account.retry.description = Dieser Parameter gibt an, in welchen Abständen eine Prioritätsnachricht wiederholt an den Benutzer gesendet werden soll.
thing-type.config.pushover.pushover-account.expire.label = Verfall
thing-type.config.pushover.pushover-account.expire.description = Dieser Parameter gibt an, wie lange eine Prioritätsnachricht wiederholt wird.
# user defined messages
offline.conf-error-missing-apikey = Der Parameter 'apikey' muss konfiguriert werden.
offline.conf-error-missing-user = Der Parameter 'user' muss konfiguriert werden.
# actions
sendMessageActionLabel = eine Textnachricht senden
sendMessageActionDescription = Action zum Versenden einer Textnachricht.
sendMessageActionOutputLabel = Gesendet
sendMessageActionOutputDescription = true, wenn die Nachricht erfolgreich versendet wurde.
sendMessageActionInputMessageLabel = Nachricht
sendMessageActionInputMessageDescription = Die Nachricht.
sendMessageActionInputTitleLabel = Titel
sendMessageActionInputTitleDescription = Titel der Nachricht.
sendURLMessageActionLabel = eine Textnachricht mit URL senden
sendURLMessageActionDescription = Action zum Versenden einer Textnachricht mit einer URL.
sendMessageActionInputURLLabel = URL
sendMessageActionInputURLDescription = Eine zusätzliche URL, die mit der Nachricht angezeigt werden soll.
sendMessageActionInputURLTitleLabel = URL Title
sendMessageActionInputURLTitleDescription = Ein Titel für die URL, andernfalls wird nur die URL angezeigt.
sendHTMLMessageActionLabel = eine HTML-Nachricht senden
sendHTMLMessageActionDescription = Action zum Versenden einer HTML-Nachricht.
sendMonospaceMessageActionLabel = eine monospace-Nachricht senden
sendMonospaceMessageActionDescription = Action zum Versenden einer monospace-Nachricht.
sendAttachmentMessageActionLabel = eine Textnachricht mit Anhang senden
sendAttachmentMessageActionDescription = Action zum Versenden einer Textnachricht mit Anhang.
sendMessageActionInputAttachmentLabel = Anhang
sendMessageActionInputAttachmentDescription = Lokaler Pfad zum Anhang.
sendMessageActionInputContentTypeLabel = Content-Type
sendMessageActionInputContentTypeDescription = Der Content-Type für den Anhang. Default: "image/jpeg".
sendPriorityMessageActionLabel = eine Prioritätsnachricht senden
sendPriorityMessageActionDescription = Action zum Versenden einer Prioritätsnachricht.
sendPriorityMessageActionOutputLabel = Receipt
sendPriorityMessageActionOutputDescription = ID der Prioritätsnachricht, wenn diese erfolgreich versendet wurde.
sendMessageActionInputPriorityLabel = Priorität
sendMessageActionInputPriorityDescription = Die Priorität. Default: 2.
cancelPriorityMessageActionLabel = eine Prioritätsnachricht annullieren
cancelPriorityMessageActionDescription = Action zum Annullieren einer Prioritätsnachricht.
cancelPriorityMessageActionOnputLabel = Annulliert
cancelPriorityMessageActionOnputDescription = true, wenn die Prioritätsnachricht erfolgreich annulliert wurde.
cancelPriorityMessageActionInputReceiptLabel = Receipt
cancelPriorityMessageActionInputReceiptDescription = Die ID der Prioritätsnachricht.
sendMessageToDeviceActionLabel = eine Nachricht an ein Endgerät
sendMessageToDeviceActionDescription = Action zum Versenden einer Nachricht an ein Endgerät.
sendMessageActionInputDeviceLabel = Endgerät
sendMessageActionInputDeviceDescription = Der Name des Endgeräts (mehrere Geräte können durch ein Komma getrennt werden).

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="pushover"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
<thing-type id="pushover-account">
<label>Pushover Account</label>
<description>Provides access to the Pushover Messages API.</description>
<representation-property>apikey</representation-property>
<config-description-ref uri="thing-type:pushover:pushover-account"/>
</thing-type>
</thing:thing-descriptions>