mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 19:34:05 +01:00
[mqtt] Set distinct action labels (#18210)
This is so they can be differentiated in MainUI Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
parent
90da7b9d83
commit
54bebb3351
@ -55,7 +55,7 @@ public class MQTTActions implements ThingActions {
|
||||
publishMQTT(topic, value, null);
|
||||
}
|
||||
|
||||
@RuleAction(label = "@text/actionLabel", description = "@text/actionDesc")
|
||||
@RuleAction(label = "@text/actionRetainLabel", description = "@text/actionRetainDesc")
|
||||
public void publishMQTT(
|
||||
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
|
||||
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") @Nullable final String value,
|
||||
@ -74,7 +74,7 @@ public class MQTTActions implements ThingActions {
|
||||
publishMQTT(topic, value, null);
|
||||
}
|
||||
|
||||
@RuleAction(label = "@text/actionLabel", description = "@text/actionDesc")
|
||||
@RuleAction(label = "@text/actionRetainLabel", description = "@text/actionRetainDesc")
|
||||
public void publishMQTT(
|
||||
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
|
||||
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") final byte[] value,
|
||||
|
@ -98,6 +98,8 @@ actionInputRetainLabel = Retain
|
||||
actionInputRetainDesc = Retain message
|
||||
actionLabel = publish an MQTT message
|
||||
actionDesc = Publishes a value to the given MQTT topic.
|
||||
actionRetainLabel = publish an MQTT message with given retain option
|
||||
actionRetainDesc = Publishes a value with given retain option to the given MQTT topic.
|
||||
|
||||
# thing status
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user