diff --git a/src/main/java/de/ph87/homeautomation/bulk/BulkExecutor.java b/src/main/java/de/ph87/homeautomation/bulk/BulkExecutor.java index f5ef4ce..a959a00 100644 --- a/src/main/java/de/ph87/homeautomation/bulk/BulkExecutor.java +++ b/src/main/java/de/ph87/homeautomation/bulk/BulkExecutor.java @@ -15,6 +15,10 @@ public class BulkExecutor { private final PropertyWriteService propertyWriteService; public void execute(final Bulk bulk) { + if (!bulk.isEnabled()) { + log.info("Bulk disabled, not executing it: {}", bulk); + return; + } log.info("Executing Bulk: {}", bulk); bulk.getEntries().forEach(entry -> propertyWriteService.writeToChannel(entry.getProperty(), entry.getValue())); log.debug("Finished executing Bulk: {}", bulk);