Search found 116 matches

by wizzard72
Monday 13 June 2022 22:29
Forum: Python
Topic: This module can only be loaded into one interpreter per process
Replies: 3
Views: 1516

This module can only be loaded into one interpreter per process

I'm in a process of creating a plugin for Unifi Protect. There is a python library called pyunifiprotect ( https://github.com/briis/pyunifiprotect ) and is used by Home Assistant. When I create a simple plugin it always fails on the importing part. # Unifi-Protect plugin # # Author: Wizzard72 ...
by wizzard72
Thursday 02 June 2022 21:50
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I saw this error before. Because it happens after hours or days it's not easy to troubleshoot. I added some test code to solve this. So update the plugin and restart the plugin. Let me know if the error occurs.
by wizzard72
Wednesday 25 May 2022 17:44
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

Ptje wrote: Sunday 02 January 2022 14:51 Sorry, I forgot that this is a English Site. This plugin works very fine. But does it work only with two telefoon mac's ? Or can I make it work with more ?

Met vriendelijke groet,
Peter
The plugin can handle 20 phones. Check for input errors.
by wizzard72
Wednesday 25 May 2022 17:42
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

Hi, I like this plugin, however i can't seem to get it working. Running unifi-controller on cloudkey (gen1) and domoticz on RPI4. Just installed a fresh installation of domoticz to test some things. The plugin is installed succesfull, my phone device is created as it should. But it keeps telling me ...
by wizzard72
Wednesday 25 May 2022 17:39
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I added the UDR to the devices list. I don't know if the UDR has an accessible API and if the API is compatible with Dream Machine Pro and the Unifi Controller. You can test if there is an API and if it's compatible with the Dream Machine Pro or the Unifi Controller. Follow these steps: 1. Login to ...
by wizzard72
Saturday 01 January 2022 22:46
Forum: General Discussion
Topic: Oficial Docker Container
Replies: 216
Views: 107644

Re: Oficial Docker Container

I'm running domoticz in a docker container. The problem that I have is that my plugin uses the Session() to communicate. If I request a page it takes about 1 minute or longer to complete. On my test VM it takes seconds. This causes the plugin to end unexpectedly. I checked if requests (Session is ...
by wizzard72
Thursday 30 December 2021 12:14
Forum: General Discussion
Topic: Oficial Docker Container
Replies: 216
Views: 107644

Re: Oficial Docker Container

I'm running domoticz in a docker container. The problem that I have is that my plugin uses the Session() to communicate. If I request a page it takes about 1 minute or longer to complete. On my test VM it takes seconds. This causes the plugin to end unexpectedly. I checked if requests (Session is ...
by wizzard72
Tuesday 02 March 2021 19:34
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I have errors in protocol too. I'm running unifi controller on same hw as Domoticz, first detection of devices ok, but no updates, no statuses. And second problem - after updating plugin parameters, phones are created again, so i have duplicate phone switches. 2021-02-20 23:20:51.451 Error: (Unifi ...
by wizzard72
Friday 19 February 2021 14:17
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

@David82 can you enabled the setting 'Enable Geofencing devices' to see if it then works I changed the name of te network to default and it works for the temperature remains: 0 Unifi Switch Flex Mini (USMINI) UniFi Security Gateway 3P (UGW3) UniFi AP-AC-Lite (U7LT) UniFi Switch 8 POE-60W (US8P60 ...
by wizzard72
Friday 19 February 2021 14:15
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

@besix, is the Unifi Controller installed on the same system as Domoticz? It takes a while for Unifi Controller to be started up. In the meantime you get these errors. If it is started up the plugin login automaticly.
by wizzard72
Tuesday 02 February 2021 20:26
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I have got a question regarding the plugin. I have not used it yet, but I have used the old DZvent script for quite some time now. My question is, I detect multiple devices using the script, this beside the phones. An example is to detect if my PC is still one after some time to get a notifcation ...
by wizzard72
Tuesday 02 February 2021 20:13
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

@David82 can you enabled the setting 'Enable Geofencing devices' to see if it then works
by wizzard72
Tuesday 19 January 2021 22:54
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

Special thanks to @rbosch and @mcmikev for troubleshooting the Unifi Dream Machine Pro part of the plugin.
by wizzard72
Tuesday 19 January 2021 22:52
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

Can you make a screenshot of the plugin hardware settings? unifi plugin.png 2021-01-15 22:51:13.196 Status: (Thuisnetwerk) Started. 2021-01-15 22:51:14.144 (Thuisnetwerk) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE 2021-01-15 22:51:14.144 (Thuisnetwerk ...
by wizzard72
Monday 11 January 2021 9:04
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I think there is a probleem with de login command. with correct login data I get this: 2021-01-07 08:07:48.277 Status: (UniFI) Started. 2021-01-07 08:07:49.313 (UniFI) Debug logging mask set to: NONE 2021-01-07 08:07:49.313 (UniFI) setVersionCheck - Plugin allowed to start (triggered by: onStart ...
by wizzard72
Monday 11 January 2021 8:58
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

@rbosch, can you login into your dreammachine and then change the url into this:

https://dreammachineIP:Port:/api/s/default/stat/device

Can you send me the output by pm.
by wizzard72
Tuesday 15 December 2020 10:45
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

Updated the plugin. Done some improvements: detect the hardware in the site the pulled hardware information is directly connected to the detected hardware the dreammachine (pro) use a slightly different login url. In the hardware page you now can select Dreammachine or Controller Because of changes ...
by wizzard72
Saturday 12 December 2020 13:08
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I try to start the plugging on Docker and get this 2020-12-08 20:57:10.090 Status: (UniFi Presence) Started. 2020-12-08 20:57:10.147 Error: (UnifiPresence) failed to load 'plugin.py', Python Path used was '/opt/domoticz/plugins/Domoticz-Unifi-Presence/:/usr/lib/python38.zip:/usr/lib/python3.8:/usr ...
by wizzard72
Saturday 12 December 2020 13:07
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I don't have Dream Machine Pro, so maybe the API output is a little different. Can you post the output of the following url: https://dreammachineIPAddres:8443/api/s/{}/stat/health The Dreammachine Pro needs to be addressed at port 443. Doing this from the browser result in receiving the welcome ...
by wizzard72
Tuesday 08 December 2020 19:36
Forum: Python
Topic: Python plugin: Ubiquiti Unifi Presence
Replies: 71
Views: 13707

Re: Python plugin: Ubiquiti Unifi Presence

I put it on my todo list