diff --git a/bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/internal/RuntimeRule.java b/bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/internal/RuntimeRule.java index 53af3258..c8a09f0a 100644 --- a/bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/internal/RuntimeRule.java +++ b/bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/internal/RuntimeRule.java @@ -222,7 +222,8 @@ public class RuntimeRule extends Rule { case BOOLEAN: return configValue instanceof Boolean; case INTEGER: - return configValue instanceof BigDecimal || configValue instanceof Integer; + return configValue instanceof BigDecimal || configValue instanceof Integer + || configValue instanceof Double && ((Double) configValue).intValue() == (double) configValue; case DECIMAL: return configValue instanceof BigDecimal || configValue instanceof Double; }