diff --git a/Helpers/src/main/java/com/christophecvb/touchportal/helpers/SentMessageHelper.java b/Helpers/src/main/java/com/christophecvb/touchportal/helpers/SentMessageHelper.java index a852b12..105886b 100644 --- a/Helpers/src/main/java/com/christophecvb/touchportal/helpers/SentMessageHelper.java +++ b/Helpers/src/main/java/com/christophecvb/touchportal/helpers/SentMessageHelper.java @@ -48,5 +48,5 @@ public class SentMessageHelper { public static final String CONNECTOR_ID = "connectorId"; public static final String SHORT_ID = "shortId"; public static final String PARENT_GROUP = "parentGroup"; - + public static final String FORCE_UPDATE = "forceUpdate"; } \ No newline at end of file diff --git a/Library/src/main/java/com/christophecvb/touchportal/TouchPortalPlugin.java b/Library/src/main/java/com/christophecvb/touchportal/TouchPortalPlugin.java index 700c690..7728e8b 100644 --- a/Library/src/main/java/com/christophecvb/touchportal/TouchPortalPlugin.java +++ b/Library/src/main/java/com/christophecvb/touchportal/TouchPortalPlugin.java @@ -905,6 +905,7 @@ public boolean sendCreateState(String categoryId, String stateId, String parentG createStateMessage.addProperty(SentMessageHelper.ID, stateId); createStateMessage.addProperty(SentMessageHelper.DESCRIPTION, description); createStateMessage.addProperty(SentMessageHelper.DEFAULT_VALUE, valueStr); + createStateMessage.addProperty(SentMessageHelper.FORCE_UPDATE, true); if (parentGroup == null || parentGroup.isEmpty()) { classLoop: for (Class subClass : this.pluginClass.getDeclaredClasses()) {