uid: blocklibrary_pushover tags: [] props: parameters: [] parameterGroups: [] timestamp: Mar 28, 2024, 12:44:47 PM component: BlockLibrary config: name: Pushover Block Library slots: blocks: # sendMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: TITLE type: field_input text: "openHAB" colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: true lastDummyAlign0: right message0: Send Message %1 to Pushover %2 with title %3 nextStatement: "" previousStatement: "" tooltip: "" type: sendBasicMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendMessage( {{input:MESSAGE}}, '{{field:TITLE}}' ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # sendHtmlMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: TITLE type: field_input text: "openHAB" colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: true lastDummyAlign0: right message0: Send HTML Message %1 to Pushover %2 with title %3 nextStatement: "" previousStatement: "" tooltip: "" type: sendHtmlMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendHtmlMessage( {{input:MESSAGE}}, '{{field:TITLE}}' ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # sendMonospaceMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: TITLE type: field_input text: "openHAB" colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: true lastDummyAlign0: right message0: Send Monospace Message %1 to Pushover %2 with title %3 nextStatement: "" previousStatement: "" tooltip: "" type: sendMonospaceMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendMonospaceMessage( {{input:MESSAGE}}, '{{field:TITLE}}' ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # sendAttachmentMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: TITLE type: field_input text: "openHAB" - name: ATTACHMENT type: input_value - name: CONTENT_TYPE type: field_dropdown options: - [ "image/jpeg" , "image/jpeg" ] - [ "image/png" , "image/png" ] - [ "image/gif" , "image/gif" ] - [ "audio/mpeg" , "audio/mpeg" ] - [ "text/xml" , "text/xml" ] - [ "text/html" , "text/html" ] - [ "text/plain" , "text/plain" ] colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: true lastDummyAlign0: right message0: Send Attachment %4 with Content-Type %5 and Message %1 to Pushover %2 with title %3 nextStatement: "" previousStatement: "" tooltip: "" type: sendAttachmentMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendAttachmentMessage( {{input:MESSAGE}}, '{{field:TITLE}}', {{input:ATTACHMENT}}, '{{field:CONTENT_TYPE}}' ); toolbox: - component: PresetInput config: fields: TEXT: "My File" name: ATTACHMENT shadow: true type: text - component: PresetInput config: fields: TEXT: "What's up?" name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing #sendURLMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: TITLE text: openHAB type: field_input - name: URL type: input_value - name: ACCOUNT type: input_value colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: false lastDummyAlign0: right message0: Send Message %1 with title %2 and url %3 to Pushover %4 nextStatement: "" previousStatement: "" tooltip: "" type: sendUrlMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendURLMessage( {{input:MESSAGE}}, '{{field:TITLE}}', {{input:URL}}, null ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: fields: TEXT: https://www.openhab.org/ name: URL shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # sendPriorityMessage - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: TITLE text: openHAB type: field_input - name: PRIO options: - - "2" - "2" - - "1" - "1" - - "0" - "0" - - "-1" - "-1" - - "-2" - "-2" type: field_dropdown colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: false lastDummyAlign0: right message0: Send priority Message %1 to Pushover %2 with title %3 and Priority %4 nextStatement: "" previousStatement: "" tooltip: "" type: sendPriorityMessage slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendPriorityMessage( {{input:MESSAGE}}, '{{field:TITLE}}', {{field:PRIO}} ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # sendMessageToDevice - component: BlockType config: args0: - name: MESSAGE type: input_value - name: ACCOUNT type: input_value - name: DEVICE type: field_input text: "Device ID" - name: TITLE type: field_input text: "openHAB" colour: "#3993d1" helpUrl: https://www.openhab.org/addons/bindings/pushover/#thing-actions inputsInline: true lastDummyAlign0: right message0: Send Message %1 to Device %3 at Pushover Account %2 with title %4 nextStatement: "" previousStatement: "" tooltip: "" type: sendMessageToDevice slots: code: - component: BlockCodeTemplate config: template: > {{utility:things}}.getActions( 'pushover', {{input:ACCOUNT}}).sendMessageToDevice( {{input:DEVICE}}, {{input:MESSAGE}}, '{{field:TITLE}}' ); toolbox: - component: PresetInput config: fields: TEXT: What's up? name: MESSAGE shadow: true type: text - component: PresetInput config: name: ACCOUNT shadow: true type: oh_thing # cancelPriorityMessage utilities: - component: UtilityJavaType config: javaClass: org.openhab.core.model.script.actions.Things name: things