This block library allows to send XMPP messages with blockly and the XMPPClient - Bindings | openHAB addon.
Blocks
Send Message
The blocks sends a message with the XMPP thing to user with JID.
Changelog
Version 0.1
- initial release
Resources
uid: xmpp
tags: []
props:
parameters: []
parameterGroups: []
timestamp: Oct 14, 2023, 5:50:30 PM
component: BlockLibrary
config:
name: XMPP
slots:
blocks:
- component: BlockType
config:
type: send_message
message0: Send via XMPP thing %1 to %2 message %3
args0:
- check: String
name: XMPP_THING
type: input_value
- check: String
name: JID
type: input_value
- check: String
name: MESSAGE
type: input_value
colour: 0
tooltip: Send text or html message to receipients
previousStatement: ""
nextStatement: ""
slots:
code:
- component: BlockCodeTemplate
config:
template: >
{{utility:Things}}.getActions("xmppclient", {{input:XMPP_THING}}).publishXMPP({{input:JID}}, {{input:MESSAGE}});
utilities:
- component: UtilityJavaType
config:
javaClass: org.openhab.core.model.script.actions.Things
name: Things