diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/action/EcobeeActions.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/action/EcobeeActions.java index 6186fb4519c63..467f31bbc16e9 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/action/EcobeeActions.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/action/EcobeeActions.java @@ -152,8 +152,8 @@ public static boolean controlPlug(ThingActions actions, @Nullable String plugNam @RuleAction(label = "create a vacation", description = "The create vacation function creates a vacation event on the thermostat.") public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean createVacation( @ActionInput(name = "name", description = "The vacation event name. It must be unique.") @Nullable String name, - @ActionInput(name = "coolHoldTemp", description = "The temperature at which to set the cool vacation hold.") @Nullable QuantityType coolHoldTemp, - @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat vacation hold.") @Nullable QuantityType heatHoldTemp, + @ActionInput(name = "coolHoldTemp", description = "The temperature at which to set the cool vacation hold.", type = "QuantityType") @Nullable QuantityType coolHoldTemp, + @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat vacation hold.", type = "QuantityType") @Nullable QuantityType heatHoldTemp, @ActionInput(name = "startDateTime", description = "(opt) The start date/time in thermostat time.") @Nullable Date startDateTime, @ActionInput(name = "endDateTime", description = "(opt) The end date in thermostat time.") @Nullable Date endDateTime, @ActionInput(name = "fan", description = "(opt) The fan mode during the vacation. Values: auto, on Default: auto") @Nullable String fan, @@ -276,8 +276,8 @@ public static boolean sendMessage(ThingActions actions, @Nullable String text) { */ @RuleAction(label = "set the thermostat into hold", description = "The set hold function sets the thermostat into a hold with the specified temperatures.") public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean setHold( - @ActionInput(name = "coolHoldTemp", description = "The temperature at which to set the cool hold.") @Nullable QuantityType coolHoldTemp, - @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat hold.") @Nullable QuantityType heatHoldTemp) { + @ActionInput(name = "coolHoldTemp", description = "The temperature at which to set the cool hold.", type = "QuantityType") @Nullable QuantityType coolHoldTemp, + @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat hold.", type = "QuantityType") @Nullable QuantityType heatHoldTemp) { if (coolHoldTemp == null || heatHoldTemp == null) { throw new IllegalArgumentException("hold temperatures cannot be null"); } @@ -297,8 +297,8 @@ public static boolean setHold(ThingActions actions, @Nullable QuantityType coolHoldTemp, - @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat hold.") @Nullable QuantityType heatHoldTemp, + @ActionInput(name = "coolHoldTemp", description = "The temperature at which to set the cool hold.", type = "QuantityType") @Nullable QuantityType coolHoldTemp, + @ActionInput(name = "heatHoldTemp", description = "The temperature at which to set the heat hold.", type = "QuantityType") @Nullable QuantityType heatHoldTemp, @ActionInput(name = "holdHours", description = "The number of hours for the hold.") @Nullable Number holdHours) { if (coolHoldTemp == null || heatHoldTemp == null) { throw new IllegalArgumentException("hold temperatures cannot be null"); @@ -372,8 +372,8 @@ public static boolean setHold(ThingActions actions, @Nullable String holdClimate */ @RuleAction(label = "set the thermostat into hold", description = "The set hold function sets the thermostat into a hold with the specified temperature or climate ref.") public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean setHold( - @ActionInput(name = "coolHoldTemp", description = "(opt) The temperature at which to set the cool hold.") @Nullable QuantityType coolHoldTemp, - @ActionInput(name = "heatHoldTemp", description = "(opt) The temperature at which to set the heat hold.") @Nullable QuantityType heatHoldTemp, + @ActionInput(name = "coolHoldTemp", description = "(opt) The temperature at which to set the cool hold.", type = "QuantityType") @Nullable QuantityType coolHoldTemp, + @ActionInput(name = "heatHoldTemp", description = "(opt) The temperature at which to set the heat hold.", type = "QuantityType") @Nullable QuantityType heatHoldTemp, @ActionInput(name = "holdClimateRef", description = "(opt) The Climate to use as reference for setting the coolHoldTemp, heatHoldTemp and fan settings for this hold. If this value is passed the coolHoldTemp and heatHoldTemp are not required.") @Nullable String holdClimateRef, @ActionInput(name = "startDateTime", description = "(opt) The start date in thermostat time.") @Nullable Date startDateTime, @ActionInput(name = "endDateTime", description = "(opt) The end date in thermostat time.") @Nullable Date endDateTime, diff --git a/bundles/org.openhab.binding.fronius/src/main/java/org/openhab/binding/fronius/internal/action/FroniusSymoInverterActions.java b/bundles/org.openhab.binding.fronius/src/main/java/org/openhab/binding/fronius/internal/action/FroniusSymoInverterActions.java index fb2e67ecb847d..e2986217b841f 100644 --- a/bundles/org.openhab.binding.fronius/src/main/java/org/openhab/binding/fronius/internal/action/FroniusSymoInverterActions.java +++ b/bundles/org.openhab.binding.fronius/src/main/java/org/openhab/binding/fronius/internal/action/FroniusSymoInverterActions.java @@ -138,7 +138,7 @@ public void addHoldBatteryChargeSchedule(ZonedDateTime from, ZonedDateTime until @RuleAction(label = "@text/actions.force-battery-charging.label", description = "@text/actions.force-battery-charging.description") public void forceBatteryCharging( - @ActionInput(name = "power", label = "@text/actions.power.label", description = "@text/actions.power.label") QuantityType power) { + @ActionInput(name = "power", label = "@text/actions.power.label", description = "@text/actions.power.label", type = "QuantityType") QuantityType power) { FroniusSymoInverterHandler handler = this.handler; if (handler != null) { handler.forceBatteryCharging(power); @@ -149,7 +149,7 @@ public void forceBatteryCharging( public void addForcedBatteryChargingSchedule( @ActionInput(name = "from", label = "@text/actions.from.label", description = "@text/actions.from.description") LocalTime from, @ActionInput(name = "until", label = "@text/actions.until.label", description = "@text/actions.until.description") LocalTime until, - @ActionInput(name = "power", label = "@text/actions.power.label", description = "@text/actions.power.label") QuantityType power) { + @ActionInput(name = "power", label = "@text/actions.power.label", description = "@text/actions.power.label", type = "QuantityType") QuantityType power) { FroniusSymoInverterHandler handler = this.handler; if (handler != null) { handler.addForcedBatteryChargingSchedule(from, until, power); diff --git a/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/action/SendMailActions.java b/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/action/SendMailActions.java index 54b74704bd6d0..bbdf0b0e8857c 100644 --- a/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/action/SendMailActions.java +++ b/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/action/SendMailActions.java @@ -75,7 +75,7 @@ public class SendMailActions implements ThingActions { public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendMailWithAttachments( @ActionInput(name = "recipient") @Nullable String recipient, @ActionInput(name = "subject") @Nullable String subject, @ActionInput(name = "text") @Nullable String text, - @ActionInput(name = "urlList") @Nullable List urlList) { + @ActionInput(name = "urlList", type = "List") @Nullable List urlList) { if (recipient == null) { logger.warn("Cannot send mail as recipient is missing."); return false; @@ -166,7 +166,7 @@ public static boolean sendMailWithAttachments(ThingActions actions, @Nullable St @ActionInput(name = "recipient") @Nullable String recipient, @ActionInput(name = "subject") @Nullable String subject, @ActionInput(name = "htmlContent") @Nullable String htmlContent, - @ActionInput(name = "urlList") @Nullable List urlList) { + @ActionInput(name = "urlList", type = "List") @Nullable List urlList) { if (recipient == null) { logger.warn("Cannot send mail as recipient is missing."); return false; diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/handler/TPLinkSmartHomeActions.java b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/handler/TPLinkSmartHomeActions.java index 45ba4b32000b9..607d982ab4208 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/handler/TPLinkSmartHomeActions.java +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/handler/TPLinkSmartHomeActions.java @@ -43,8 +43,7 @@ public class TPLinkSmartHomeActions implements ThingActions, ThingHandlerService private @Nullable SmartHomeHandler handler; @RuleAction(label = "@text/actions.tplinksmarthome.send.label", description = "@text/actions.tplinksmarthome.send.description") - @ActionOutput(name = "response", label = "@text/actions.tplinksmarthome.send.response.label", description = "@text/actions.tplinksmarthome.send.response.description", type = "java.lang.String") - public String send( + public @ActionOutput(name = "response", label = "@text/actions.tplinksmarthome.send.response.label", description = "@text/actions.tplinksmarthome.send.response.description", type = "java.lang.String") String send( @ActionInput(name = "command", label = "@text/actions.tplinksmarthome.send.command.label", description = "@text/actions.tplinksmarthome.send.command.description", type = "java.lang.String", required = true) final String command) throws IOException { if (handler instanceof SmartHomeHandler) { diff --git a/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/action/UniFiSiteActions.java b/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/action/UniFiSiteActions.java index 64c8838f555a4..3635b3cf1fde5 100644 --- a/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/action/UniFiSiteActions.java +++ b/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/action/UniFiSiteActions.java @@ -177,7 +177,8 @@ public static boolean generateVouchers(ThingActions actions, @Nullable Integer c public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean revokeVouchers( /* @formatter:off */ @ActionInput(name = "voucherCodes", label = "@text/action.unifi.vouchersInputVoucherCodes.label", - description = "@text/action.unifi.vouchersInputVoucherCodes.description") List voucherCodes) { + description = "@text/action.unifi.vouchersInputVoucherCodes.description", + type = "List") List voucherCodes) { /* @formatter:on */ UniFiSiteThingHandler handler = this.handler; if (handler == null) { diff --git a/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java b/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java index 964127926e6de..862c6e5efddfd 100644 --- a/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java +++ b/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java @@ -56,8 +56,8 @@ public void setThingHandler(@Nullable ThingHandler handler) { @RuleAction(label = "override", description = "Overrides the thermostat state for a specified time") public void setOverride( - @ActionInput(name = "temperature", label = "Temperature") @Nullable QuantityType temperature, - @ActionInput(name = "duration", label = "Duration") @Nullable QuantityType