Wizzard72 / Domoticz-Unifi-Presence

GNU General Public License v3.0
5 stars 7 forks source link

Plugin 'onHeartbeat' failed 'KeyError' #26

Closed rayray4105 closed 2 years ago

rayray4105 commented 2 years ago

Hi,

I am trying to use the plugin in Domoticz 2021.1 using a Dream Machine Pro running UniFi OS UDM Pro 1.11.0 and UniFi Network 6.5.55.

I have used bot a normal uses and also a local super admin but I am receiving the same errors for both users. I have updated the plugin folder to full acces for everyone but still have the errors. Am I missing something?

regards, Raymond

2021-12-31 12:03:38.057 Error: Unifi Presence: (Unifi Presence) 'onHeartbeat' failed 'KeyError'. 2021-12-31 12:03:38.057 Error: Unifi Presence: (Unifi Presence) ----> Line 1069 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat 2021-12-31 12:03:38.057 Error: Unifi Presence: (Unifi Presence) ----> Line 463 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat

Wizzard72 commented 2 years ago

A local account should be sufficient. But to be sure can you make screenshot of the plugin settings and share it here.

rayray4105 commented 2 years ago

please find the screenshot with the settings below

Greenshot 2022-01-02 20 42 40

2022-01-02 20:39:21.066 Error: Unifi Presence: (Unifi Presence) 'onStart' failed 'KeyError'. 2022-01-02 20:39:21.066 Error: Unifi Presence: (Unifi Presence) ----> Line 1041 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onStart 2022-01-02 20:39:21.066 Error: Unifi Presence: (Unifi Presence) ----> Line 338 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onStart 2022-01-02 20:39:22.444 Error: Unifi Presence: (Unifi Presence) 'onStart' failed 'KeyError'. 2022-01-02 20:39:22.444 Error: Unifi Presence: (Unifi Presence) ----> Line 1041 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onStart 2022-01-02 20:39:22.444 Error: Unifi Presence: (Unifi Presence) ----> Line 338 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onStart 2022-01-02 20:39:31.059 Error: Unifi Presence: (Unifi Presence) 'onHeartbeat' failed 'KeyError'. 2022-01-02 20:39:31.059 Error: Unifi Presence: (Unifi Presence) ----> Line 1069 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat 2022-01-02 20:39:31.059 Error: Unifi Presence: (Unifi Presence) ----> Line 463 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat 2022-01-02 20:39:41.079 Error: Unifi Presence: (Unifi Presence) 'onHeartbeat' failed 'KeyError'. 2022-01-02 20:39:41.079 Error: Unifi Presence: (Unifi Presence) ----> Line 1069 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat 2022-01-02 20:39:41.079 Error: Unifi Presence: (Unifi Presence) ----> Line 463 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat

Wizzard72 commented 2 years ago

There is a bug. Try to enable Geofencing devices

rayray4105 commented 2 years ago

There was no bug. Apparently my Dream Machine Pro was not listening on port 8443 but on 443.