imcfarla2003 / domoticz-hive

Domoticz plugin for Hive
MIT License
4 stars 3 forks source link

Plugin stops updating devices #17

Open Mark-Sellwood opened 3 years ago

Mark-Sellwood commented 3 years ago

AFter several looks th eplugin stops updating the devices. If you look in the log extract below you see at 09:52:18 the plugin get the status of the devices from Hive, on the following calls starting at 09:53:17 "Getting Weather" nothing is displayed. The plugin stays like this until I disable & re enable it.

2020-09-22 09:52:17.719 (Hive) Getting Weather 2020-09-22 09:52:17.955 (Hive) onConnect called for Hive Devices 2020-09-22 09:52:17.955 (Hive) Getting Devices 2020-09-22 09:52:17.955 (Hive) onConnect called for Hive Weather 2020-09-22 09:52:17.955 (Hive) Getting Weather 2020-09-22 09:52:18.006 (Hive) onMessage called for Hive Weather 2020-09-22 09:52:18.006 (Hive) Finding Outside Device 2020-09-22 09:52:18.007 (Hive) Outside Device Updatedd 2020-09-22 09:52:18.058 (Hive) onDisconnect called for Hive Weather 2020-09-22 09:52:18.171 (Hive) onMessage called for Hive Devices 2020-09-22 09:52:18.180 (Hive) Getting Temperatures 2020-09-22 09:52:18.185 (Hive) Temp = 21.56 2020-09-22 09:52:18.185 (Hive) Target = 7.0 2020-09-22 09:52:18.185 (Hive) Heating = OFF 2020-09-22 09:52:18.185 (Hive) Getting Battery Status 2020-09-22 09:52:18.189 (Hive) Thermostatui - No boundNodes under relationship 2020-09-22 09:52:18.189 (Hive) Only one thermostatui node so using that 2020-09-22 09:52:18.189 (Hive) Battery = 100 2020-09-22 09:52:18.189 (Hive) RSSI = 9.48 2020-09-22 09:52:18.189 (Hive) Updating Devices 2020-09-22 09:52:18.218 (Hive) Found Standard Light(s) 2020-09-22 09:52:18.218 (Hive) Light detected Warm White Light 1 2020-09-22 09:52:18.219 (Hive) Hive - Warm White Light 1: ABSENT 2020-09-22 09:52:18.219 (Hive) Light finished Warm White Light 1 2020-09-22 09:52:18.275 (Hive) onDisconnect called for Hive Devices 2020-09-22 09:52:27.742 (Hive) onHeartbeat called 2020-09-22 09:52:27.743 (Hive) Counter = 2 2020-09-22 09:52:37.762 (Hive) onHeartbeat called 2020-09-22 09:52:37.762 (Hive) Counter = 3 2020-09-22 09:52:47.730 (Hive) onHeartbeat called 2020-09-22 09:52:47.730 (Hive) Counter = 4 2020-09-22 09:52:57.749 (Hive) onHeartbeat called 2020-09-22 09:52:57.749 (Hive) Counter = 5 2020-09-22 09:53:07.772 (Hive) onHeartbeat called 2020-09-22 09:53:07.772 (Hive) Counter = 6 2020-09-22 09:53:17.741 (Hive) onHeartbeat called 2020-09-22 09:53:17.741 (Hive) Getting Data 2020-09-22 09:53:17.741 (Hive) Getting Weather 2020-09-22 09:53:18.024 (Hive) onConnect called for Hive Devices 2020-09-22 09:53:18.024 (Hive) Getting Devices 2020-09-22 09:53:18.024 (Hive) onConnect called for Hive Weather 2020-09-22 09:53:18.024 (Hive) Getting Weather 2020-09-22 09:53:18.075 (Hive) onMessage called for Hive Devices 2020-09-22 09:53:18.210 (Hive) onConnect called for Hive Session 2020-09-22 09:53:18.210 (Hive) onMessage called for Hive Weather 2020-09-22 09:53:18.210 (Hive) Finding Outside Device 2020-09-22 09:53:18.212 (Hive) Outside Device Updatedd 2020-09-22 09:53:18.263 (Hive) onDisconnect called for Hive Weather 2020-09-22 09:53:27.781 (Hive) onHeartbeat called 2020-09-22 09:53:27.781 (Hive) Counter = 2 2020-09-22 09:53:37.750 (Hive) onHeartbeat called 2020-09-22 09:53:37.750 (Hive) Counter = 3 2020-09-22 09:53:47.769 (Hive) onHeartbeat called 2020-09-22 09:53:47.769 (Hive) Counter = 4 2020-09-22 09:53:48.071 (Hive) onDisconnect called for Hive Devices 2020-09-22 09:53:48.172 (Hive) onDisconnect called for Hive Session 2020-09-22 09:53:57.790 (Hive) onHeartbeat called 2020-09-22 09:53:57.790 (Hive) Counter = 5 2020-09-22 09:54:00.013 Status: EventSystem: Script event triggered: Bathroom Extractor Time 2020-09-22 09:54:07.760 (Hive) onHeartbeat called 2020-09-22 09:54:07.760 (Hive) Counter = 6 2020-09-22 09:54:17.778 (Hive) onHeartbeat called 2020-09-22 09:54:17.778 (Hive) Getting Data 2020-09-22 09:54:17.778 (Hive) Getting Weather 2020-09-22 09:54:18.031 (Hive) onConnect called for Hive Devices 2020-09-22 09:54:18.031 (Hive) Getting Devices 2020-09-22 09:54:18.031 (Hive) onConnect called for Hive Weather 2020-09-22 09:54:18.031 (Hive) Getting Weather 2020-09-22 09:54:18.082 (Hive) onMessage called for Hive Devices 2020-09-22 09:54:18.082 (Hive) onMessage called for Hive Weather 2020-09-22 09:54:18.083 (Hive) Finding Outside Device 2020-09-22 09:54:18.084 (Hive) Outside Device Updatedd 2020-09-22 09:54:18.214 (Hive) onConnect called for Hive Session 2020-09-22 09:54:18.214 (Hive) onDisconnect called for Hive Weather 2020-09-22 09:54:27.782 (Hive) onHeartbeat called 2020-09-22 09:54:27.782 (Hive) Counter = 2 2020-09-22 09:54:37.751 (Hive) onHeartbeat called 2020-09-22 09:54:37.752 (Hive) Counter = 3 2020-09-22 09:54:47.771 (Hive) onHeartbeat called 2020-09-22 09:54:47.771 (Hive) Counter = 4 2020-09-22 09:54:48.073 (Hive) onDisconnect called for Hive Devices 2020-09-22 09:54:48.174 (Hive) onDisconnect called for Hive Session 2020-09-22 09:54:57.792 (Hive) onHeartbeat called 2020-09-22 09:54:57.792 (Hive) Counter = 5 2020-09-22 09:55:00.024 Status: EventSystem: Script event triggered: Bathroom Extractor Time 2020-09-22 09:55:07.762 (Hive) onHeartbeat called 2020-09-22 09:55:07.762 (Hive) Counter = 6 2020-09-22 09:55:17.781 (Hive) onHeartbeat called 2020-09-22 09:55:17.781 (Hive) Getting Data 2020-09-22 09:55:17.781 (Hive) Getting Weather 2020-09-22 09:55:18.026 (Hive) onConnect called for Hive Devices 2020-09-22 09:55:18.026 (Hive) Getting Devices 2020-09-22 09:55:18.026 (Hive) onConnect called for Hive Weather 2020-09-22 09:55:18.026 (Hive) Getting Weather 2020-09-22 09:55:18.078 (Hive) onMessage called for Hive Devices 2020-09-22 09:55:18.210 (Hive) onConnect called for Hive Session 2020-09-22 09:55:18.211 (Hive) onMessage called for Hive Weather 2020-09-22 09:55:18.211 (Hive) Finding Outside Device 2020-09-22 09:55:18.212 (Hive) Outside Device Updatedd 2020-09-22 09:55:18.264 (Hive) onDisconnect called for Hive Weather 2020-09-22 09:55:27.781 (Hive) onHeartbeat called 2020-09-22 09:55:27.781 (Hive) Counter = 2 2020-09-22 09:55:37.800 (Hive) onHeartbeat called 2020-09-22 09:55:37.801 (Hive) Counter = 3 2020-09-22 09:55:47.769 (Hive) onHeartbeat called 2020-09-22 09:55:47.769 (Hive) Counter = 4 2020-09-22 09:55:48.071 (Hive) onDisconnect called for Hive Devices 2020-09-22 09:55:48.172 (Hive) onDisconnect called for Hive Session 2020-09-22 09:55:57.791 (Hive) onHeartbeat called 2020-09-22 09:55:57.791 (Hive) Counter = 5 2020-09-22 09:56:07.763 (Hive) onHeartbeat called 2020-09-22 09:56:07.763 (Hive) Counter = 6 2020-09-22 09:56:17.782 (Hive) onHeartbeat called 2020-09-22 09:56:17.782 (Hive) Getting Data 2020-09-22 09:56:17.782 (Hive) Getting Weather 2020-09-22 09:56:18.028 (Hive) onConnect called for Hive Devices 2020-09-22 09:56:18.028 (Hive) Getting Devices 2020-09-22 09:56:18.028 (Hive) onConnect called for Hive Weather 2020-09-22 09:56:18.028 (Hive) Getting Weather 2020-09-22 09:56:18.080 (Hive) onMessage called for Hive Devices 2020-09-22 09:56:18.080 (Hive) onMessage called for Hive Weather 2020-09-22 09:56:18.080 (Hive) Finding Outside Device 2020-09-22 09:56:18.086 (Hive) Outside Device Updatedd 2020-09-22 09:56:18.216 (Hive) onConnect called for Hive Session 2020-09-22 09:56:18.217 (Hive) onDisconnect called for Hive Weather 2020-09-22 09:56:27.785 (Hive) onHeartbeat called 2020-09-22 09:56:27.785 (Hive) Counter = 2 2020-09-22 09:56:37.803 (Hive) onHeartbeat called 2020-09-22 09:56:37.804 (Hive) Counter = 3

imcfarla2003 commented 3 years ago

Can you please try with the latest code? I have been able to reproduce and fix the error you were seeing.

Mark-Sellwood commented 3 years ago

I'm trying it now, looks ok so far.

russdan commented 3 years ago

Hi, I just did a git pull to latest version and I got:

2020-09-25 19:12:20.134  Status: (Hive) Started.
2020-09-25 19:12:20.315  Status: (Hive) Entering work loop.
2020-09-25 19:12:20.315  Status: (Hive) Initialized version 1.1, author 'imcfarla, MikeF and roadsnail'
2020-09-25 19:12:20.320  (Hive) Starting
2020-09-25 19:12:20.320  (Hive) DomoticzVersion Available 2020.2 (build 12377)
2020-09-25 19:12:30.644  Error: (Hive) Error Creating Session
2020-09-25 19:13:00.661  Error: (Hive) Error getting weather information
2020-09-25 19:13:00.661  Error: CConnection_disconnect, disconnection request from 'Hive' ignored. Transport does not exist.
2020-09-25 19:13:00.661  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:13:30.627  Error: (Hive) Error getting weather information
2020-09-25 19:13:30.627  Error: CConnection_disconnect, disconnection request from 'Hive' ignored. Transport does not exist.
2020-09-25 19:13:30.928  Error: (Hive) Error Creating Session
2020-09-25 19:13:47.562  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:14:00.369  Error: CConnection_connect, connect request from 'Hive' ignored. Transport is connected.
2020-09-25 19:14:25.430  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:14:33.235  Error: CConnection_connect, connect request from 'Hive' ignored. Transport is connected.
2020-09-25 19:14:36.393  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:17:16.337  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:17:46.360  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:17:56.981  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:18:08.837  Error: (Hive) Error Getting Devices - Recreating Session
2020-09-25 19:18:08.837  Error: CConnection_connect, connect request from 'Hive' ignored. Transport is connected.
2020-09-25 19:18:08.838  Error: CConnection_connect, connect request from 'Hive' ignored. Transport is connected.

Reverted back to commit 52c0b66ae0bca1e49ef16b38e7e05851b3abb42d and all OK again.... so I then enabled debug and did a git pull / domoticz restart again and now it seems OK.... weird.....