Skip to content

Commit

Permalink
[mqtt] Set distinct action labels (openhab#18210)
Browse files Browse the repository at this point in the history
This is so they can be differentiated in MainUI

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng authored Feb 1, 2025
1 parent 90da7b9 commit 54bebb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void publishMQTT(
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,
Expand All @@ -74,7 +74,7 @@ public void publishMQTT(
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54bebb3

Please sign in to comment.