[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:
jimtng 2025-02-02 07:48:30 +10:00 committed by GitHub
parent 90da7b9d83
commit 54bebb3351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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