diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java index cc8de21e0a1dc..52633b4c5f2ea 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java @@ -685,10 +685,6 @@ public static class ShellySettingsGlobal { public Boolean rainSensor; // Flood: true=in rain mode // FW 1.5.7: Door Window - @SerializedName("dark_treshold") - public Integer darkTreshold; // Illumination definition for "dark" in lux - @SerializedName("twilight_treshold") - public Integer twiLightTreshold; // Illumination definition for "twilight" in lux @SerializedName("dark_url") public String darkUrl; // URL to report to when luminance <= dark_threshold @SerializedName("twilight_url") @@ -717,8 +713,14 @@ public static class ShellySettingsGlobal { public ShellyMotionSettings motion; @SerializedName("tamper_sensitivity") public Integer tamperSensitivity; + /** + * Illumination level threshold for dark condition. + */ @SerializedName("dark_threshold") public Integer darkThreshold; + /** + * Illumination level threshold for twilight condition. + */ @SerializedName("twilight_threshold") public Integer twilightThreshold; diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiJsonDTO.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiJsonDTO.java index 41fd8301f3010..8c32c38406b8e 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiJsonDTO.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiJsonDTO.java @@ -303,7 +303,7 @@ public class Shelly2DevConfigInput { @SerializedName("factory_reset") public Boolean factoryReset; @SerializedName("report_thr") - public Double reportTreshold; // only for type analog + public Double reportThreshold; // only for type analog } public class Shelly2DevConfigSwitch {