The debug was on this night and the binding crashed after 3 hours. The log doesn’t show much relevant information though:
2021-01-21 01:33:47.598 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 7 Plugwise Home Automation appliance(s)
2021-01-21 01:33:52.600 [DEBUG] [rnal.handler.PlugwiseHABridgeHandler] - Refreshing the Plugwise Home Automation Controller plugwiseha:gateway:adam
2021-01-21 01:33:52.651 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 3 Plugwise Home Automation location(s)
2021-01-21 01:33:52.653 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 3 Plugwise Home Automation location(s)
2021-01-21 01:33:52.655 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 7 Plugwise Home Automation appliance(s)
2021-01-21 01:33:52.657 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 7 Plugwise Home Automation appliance(s)
2021-01-21 01:33:52.660 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 7 Plugwise Home Automation appliance(s)
2021-01-21 01:33:57.662 [DEBUG] [rnal.handler.PlugwiseHABridgeHandler] - Refreshing the Plugwise Home Automation Controller plugwiseha:gateway:adam
2021-01-21 01:33:58.154 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.NullPointerException: null
at org.openhab.binding.plugwiseha.internal.api.model.dto.ActuatorFunctionality.compareDateWith(ActuatorFunctionality.java:88) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.dto.ActuatorFunctionality.isOlderThan(ActuatorFunctionality.java:93) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.dto.ActuatorFunctionalities.merge(ActuatorFunctionalities.java:65) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.dto.Locations.merge(Locations.java:48) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.dto.DomainObjects.mergeLocations(DomainObjects.java:59) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.PlugwiseHAController.mergeDomainObjects(PlugwiseHAController.java:430) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.PlugwiseHAController.getDomainObjects(PlugwiseHAController.java:221) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.PlugwiseHAController.getUpdatedDomainObjects(PlugwiseHAController.java:229) ~[?:?]
at org.openhab.binding.plugwiseha.internal.api.model.PlugwiseHAController.refresh(PlugwiseHAController.java:107) ~[?:?]
at org.openhab.binding.plugwiseha.internal.handler.PlugwiseHABridgeHandler.refresh(PlugwiseHABridgeHandler.java:210) ~[?:?]
at org.openhab.binding.plugwiseha.internal.handler.PlugwiseHABridgeHandler.run(PlugwiseHABridgeHandler.java:185) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
So the [found 3 plugwise home automation locations] & [found 7 plugwise home automation appliances] repeat itself every 5 seconds, but after this error that also stopped. But this morning at 6.46 my temperature was set to 20 degrees and that shows in the log. I tested a couple a minutes ago and setting the tempature still works.
2021-01-21 06:46:00.920 [DEBUG] [ternal.handler.PlugwiseHABaseHandler] - Handling command = 20 °C for channel = plugwiseha:zone:adam:PW_Woonkamer_zone:setpointTemperature
2021-01-21 06:46:00.922 [DEBUG] [ernal.api.model.PlugwiseHAController] - Found 3 Plugwise Home Automation location(s)
Here the graph from this night, so you can see what stops working and what still continues, “ketel status” (green bar) was mostly off this night but went on this morning although not visible, that item/thing also lost connection with the adam.
Strangely, it finds 3 locations and 7 applicances. But I don’t have 3 locations, only 2 (Kantoor & woonkamer) in the Adam. And I only have 4 appliances. In my livingroom I have: My isense thermostat, Tom & Smart plug. And in the office a Lisa.
==> /var/log/openhab/openhab.log <==
2021-01-21 11:29:53.215 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - QueuedThreadPool[OH-httpClient-common]@63e0f4ae{STOPPING,10<=0<=40,i=6,r=-1,q=0}[NO_TRY] Couldn't stop Thread[OH-httpClient-common-196,5,main]
2021-01-21 11:29:53.217 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - QueuedThreadPool[OH-httpClient-common]@63e0f4ae{STOPPING,10<=0<=40,i=6,r=-1,q=0}[NO_TRY] Couldn't stop Thread[OH-httpClient-common-200,5,main]
This output always comes when I stop and start the binding (via karaf).
and after restart openhab or binding i mostly see one of my devices with status OFFLINE in the UI, and am able te restart it trought the button in the uprightcorner:
Status:
OFFLINE
COMMUNICATION_ERROR
Error communicating with the Plugwise Home Automation controller