diff --git a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java index 6542ec7cf..f12635a58 100644 --- a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java +++ b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java @@ -110,7 +110,7 @@ public class DeviceHistoryHandler { State state = historicItem.getState(); if (state instanceof DecimalType) { Number value = ((DecimalType) state).toBigDecimal(); - resultItems.add(new HistoryItem(historicItem.getTimestamp(), value)); + resultItems.add(new HistoryItem(historicItem.getTimestamp().toInstant().toEpochMilli(), value)); } } diff --git a/bundles/pom.xml b/bundles/pom.xml index 003f0585a..8527b7f5e 100644 --- a/bundles/pom.xml +++ b/bundles/pom.xml @@ -19,6 +19,7 @@ org.openhab.io.homekit + org.openhab.io.imperihome org.openhab.io.neeo org.openhab.io.openhabcloud org.openhab.io.transport.modbus