Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin gives error at start #20

Open
heuvep opened this issue Aug 30, 2021 · 29 comments
Open

plugin gives error at start #20

heuvep opened this issue Aug 30, 2021 · 29 comments

Comments

@heuvep
Copy link

heuvep commented Aug 30, 2021

2021-08-30 21:31:29.384 Error: Presense: (Presense) detect Unifi Devices: Unifi device (USL8LP) is not present in the table.
2021-08-30 21:31:29.384 Error: Presense: (Presense) setVersionCheck - Plugin NOT allowed to start (triggered by: detectUnifiDevices)

@Wizzard72
Copy link
Owner

Can you tell me what the USL8LP is for a device?

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@Wizzard72
Copy link
Owner

The plugin discover all the unifi devices connected to the network. So probably the 8 port switch. What is de Unifi product name for this device?

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@Wizzard72
Copy link
Owner

I have updated the plugin. So after you pull the change it should work.

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@Wizzard72
Copy link
Owner

Disable and enable the plugin from the hardware page

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@Wizzard72
Copy link
Owner

Can you make een printscreen from the plugin hardware page

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

@Wizzard72
Copy link
Owner

There is no picture. Better to upload it manually to github

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

image
domoticz

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

also double entry after disable and enable plugin
domoticz2

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

image

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

I think when i disable en enable again i will get all the things 3 times. I can give that a try to see te effect

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

yep all 3 time snow

image

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

What i do i disable and then click on aanpassen (change) and then enable and click on aanpassen (change)

@Wizzard72
Copy link
Owner

Can you go to Devices and delete all the phone devices. Then disable the plugin and enable the setting 'Enable Geofencing devices'. After that enable the plugin again. It creates now geo devices per user. This is for the test, so there could be a fault when not using geofencing devices.

@Wizzard72
Copy link
Owner

Please share the log after enabling the plugin

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

image

after delete all devices and disable and enable

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

And the logging :

2021-08-30 22:48:18.344 Presense: (Presense) Debug logging mask set to: NONE
2021-08-30 22:48:18.344 Presense: (Presense) setVersionCheck - Plugin allowed to start (triggered by: onStart)
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Found devicestable.txt file
2021-08-30 22:48:18.344 Presense: (Presense) Number of icons loaded = 3
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Items = UnifiPresenceAnyone
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Icon 102 Name = UnifiPresence
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Items = UnifiPresenceOverride
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Icon 103 Name = UnifiPresence
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Items = UnifiPresenceDevice
2021-08-30 22:48:18.344 Presense: (Presense) onStart: Icon 104 Name = UnifiPresence
2021-08-30 22:48:18.342 Status: Presense: (Presense) Initialized version 2.9.0, author 'Wizzard72'
2021-08-30 22:48:19.021 Presense: (Presense) login: Login successful into Unifi Controller
2021-08-30 22:48:19.215 Presense: (Presense) detect Unifi Devices: Found Unifi Device: UniFi AP-AC-Lite (U7LT)
2021-08-30 22:48:19.217 Presense: (Presense) detect Unifi Devices: Found Unifi Device: UniFi AP (BZ2)
2021-08-30 22:48:19.220 Presense: (Presense) detect Unifi Devices: Found Unifi Device: UniFi AP-AC-Lite (U7LT)
2021-08-30 22:48:19.221 Presense: (Presense) detect Unifi Devices: Found Unifi Device: Unifi Switch Flex Mini (USMINI)
2021-08-30 22:48:19.224 Presense: (Presense) detect Unifi Devices: Found Unifi Device: UniFi AP-AC-LR (U7LR)
2021-08-30 22:48:19.227 Presense: (Presense) detect Unifi Devices: Found Unifi Device: UniFi AP-AC-Lite (U7LT)
2021-08-30 22:48:19.228 Presense: (Presense) detect Unifi Devices: Found Unifi Device: Unifi Switch Flex Mini (USMINI)
2021-08-30 22:48:19.229 Presense: (Presense) detect Unifi Devices: Found Unifi Device: Unifi Switch Lite 8 PoE (USL8LP)
2021-08-30 22:48:19.230 Presense: (Presense) detect Unifi Devices: Found Unifi Device: Unifi Switch Flex Mini (USMINI)
2021-08-30 22:48:19.235 Presense: (Presense) UpdateDevice: Update (sValue): --> Off (Presense - AnyOne)
2021-08-30 22:48:19.241 Presense: (Presense) create_devices: Plugin Name = Presense
2021-08-30 22:48:19.243 Presense: (Presense) UpdateDevice: Update (sValue): --> 0 (Presense - OverRide)
2021-08-30 22:48:19.251 Presense: (Presense) UpdateDevice: Update (sValue): --> 0 (Presense - Off Delay)
2021-08-30 22:48:19.262 Presense: (Presense) UpdateDevice: Update (sValue): --> On (Presense - Rens)
2021-08-30 22:48:19.270 Presense: (Presense) UpdateDevice: Update (sValue): On --> Off (Presense - Rens)
2021-08-30 22:48:19.282 Presense: (Presense) UpdateDevice: Update (sValue): --> On (Presense - Monique)
2021-08-30 22:48:19.290 Presense: (Presense) UpdateDevice: Update (sValue): On --> Off (Presense - Monique)
2021-08-30 22:48:19.301 Presense: (Presense) UpdateDevice: Update (sValue): --> On (Presense - Aniek)
2021-08-30 22:48:19.310 Presense: (Presense) UpdateDevice: Update (sValue): On --> Off (Presense - Aniek)
2021-08-30 22:48:19.321 Presense: (Presense) onStart: Geo Phone with name 'Geo Rens' is detected from config.
2021-08-30 22:48:19.321 Presense: (Presense) onStart: Geo Phone with name 'Geo Monique' is detected from config.
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Geo Phone with name 'Geo Aniek' is detected from config.
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = OverRide | 00:00:00:00:00:00 | 255 | Off | No | No
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Rens | 36:81:a3:c2:42:a0 | 50 | Off | No | No
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Geo Rens | 11:11:11:11:11:11 | 80 | | No | GEO
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Monique | 04:d6:aa:19:19:80 | 51 | Off | No | No
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Geo Monique | 11:11:11:11:11:11 | 81 | | No | GEO
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Aniek | e2:d5:6f:ae:eb:8e | 52 | Off | No | No
2021-08-30 22:48:19.322 Presense: (Presense) onStart: Phone Naam = Geo Aniek | 11:11:11:11:11:11 | 82 | | No | GEO
2021-08-30 22:48:22.194 pi: P1 Smart Meter (Elektriciteit)
2021-08-30 22:48:22.376 Presense: (Presense) ProcessDevices: Phone 'Monique' connected to the Unifi Controller
2021-08-30 22:48:22.376 Presense: (Presense) UpdateDevice: Update (sValue): Off --> On (Presense - Monique)
2021-08-30 22:48:22.383 Presense: (Presense) ProcessDevices: Phone 'Aniek' connected to the Unifi Controller
2021-08-30 22:48:22.383 Presense: (Presense) UpdateDevice: Update (sValue): Off --> On (Presense - Aniek)
2021-08-30 22:48:22.390 Presense: (Presense) ProcessDevices: Total Phones connected = 2
2021-08-30 22:48:22.390 Presense: (Presense) UpdateDevice: Update (sValue): Off --> On (Presense - AnyOne)

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

Seems better now.

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021

When i now disable en enable again i will get double again?

@Wizzard72
Copy link
Owner

There is an issue with detecting phones when not using geofencing. I have to fix that. For now use the setting geofencing devices until I fixed it.

@heuvep
Copy link
Author

heuvep commented Aug 30, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants