Wizzard72 / Domoticz-Unifi-Presence

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

KeyError #30

Closed TomMalfrere closed 2 years ago

TomMalfrere commented 2 years ago

Hi, I'm getting the following error: 2022-01-13 16:06:39.088 Error: Unifi Controller: (Unifi Controller) 'onHeartbeat' failed 'KeyError'. 2022-01-13 16:06:39.088 Error: Unifi Controller: (Unifi Controller) ----> Line 1073 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat 2022-01-13 16:06:39.088 Error: Unifi Controller: (Unifi Controller) ----> Line 464 in '/home/pi/domoticz/plugins/Domoticz-Unifi-Presence/plugin.py', function onHeartbeat

could you help me out here?

Wizzard72 commented 2 years ago

Do you have the latest version? Do you have the selector switch "Off Delay" in your switches tab?

TomMalfrere commented 2 years ago

I'm on the latest Release version 2021.1 I don't see any "Off Delay" switch...

Wizzard72 commented 2 years ago

Are you on the latest version of the plugin? Please update and share the logs if the problem still exists.

sanderdewit commented 2 years ago

check the port number. Dream machine requires port 443

Wizzard72 commented 2 years ago

Can you make a screenshot of the plugin settings. But first update the plugin with 'git pull' and disable and enable the plugin.

sanderdewit commented 2 years ago

I don't have the issue, just noticed when setting it up I saw the same error, this was because I didn't change the port from 8443 to 443. After that it was working as expected.

TomMalfrere commented 2 years ago

I'm running a unifi controller on a Raspberry Pi on port 8443. This is how I connect: https://192.168.3.11:8443/manage/site/default/dashboard

Wizzard72 commented 2 years ago

Can you make a screenshot of the plugin settings. But first update the plugin with 'git pull' and disable and enable the plugin

TomMalfrere commented 2 years ago

Ok, I found the problem. I had 18443 for the port number instead of 8443. 18443 is the domoticz port number. Thanks for asking me to make screenshot. That did the trick!

TomMalfrere commented 2 years ago

I still have a problem: the phones that I would like to track remain OFF. They are listed in my Unifi controller. image image

TomMalfrere commented 2 years ago

small question: Why is the port column not filled in for you plugin? image

TomMalfrere commented 2 years ago

I have set the site name to default and now it's working...