]> git.basschouten.com Git - openhab-addons.git/commitdiff
[imperihome] Adapt call to ZDT in Persistence API (#8527)
authorWouter Born <github@maindrain.net>
Mon, 21 Sep 2020 21:35:31 +0000 (23:35 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 21:35:31 +0000 (23:35 +0200)
Fixes #8290

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java
bundles/pom.xml

index 6542ec7cf86347a89314d402a4d7cd4802bbdbbb..f12635a58518827f1231f0f54080413bf13a9110 100644 (file)
@@ -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));
                 }
             }
 
index 003f0585ac48be1fa391cd505c4a35c20dd5331c..8527b7f5e11c383046f54332aa9a2bbd2c99d2b5 100644 (file)
@@ -19,6 +19,7 @@
   <modules>
     <!-- io -->
     <module>org.openhab.io.homekit</module>
+    <module>org.openhab.io.imperihome</module>
     <module>org.openhab.io.neeo</module>
     <module>org.openhab.io.openhabcloud</module>
     <module>org.openhab.io.transport.modbus</module>