Search found 32 matches
- Tuesday 23 March 2021 10:41
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
I checked your script and think it is fine. (btw. please post scripts using Code display button in the future) It also seems like the connection to the Unifi API is there because the error is reporting on httpResponses: 'loggedin" . So please check if the username/password combination is correct and ...
- Monday 22 March 2021 15:14
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
OK but that's not a problem. You can also select on the names of devices in the script. Just replace MAC address with the name of the device. That works too. For example local Mac = {'11:aa:22:bb:33:cc' , '11:aa:22:bb:33:cc' , '11:aa:22:bb:33:cc' , '11:aa:22:bb:33:cc' , '11:aa:22:bb:33:cc ...
- Monday 22 March 2021 14:33
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
Because using a different mac address each time you log in is especially useful on other wifi networks, I turned off this private option for my own wifi on all Apple devices.
You can turn this off separately for each wifi network.
You can turn this off separately for each wifi network.
- Monday 22 March 2021 14:14
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
Hi, I'm not sure but based on your short shared log I wonder if you are using the same URL twice? After login you should use another URL: https://192.168.1.1:8443/api/s/default/stat/sta Please also check if you changed from default in your Unifi setup to a custom name. You can check this by login ...
- Thursday 07 January 2021 19:57
- Forum: Design, usability and languages
- Topic: EU localisation option (replace . with ,)
- Replies: 11
- Views: 5118
Re: EU localisation option (replace . with ,)
I WANT THIS!
- Thursday 07 January 2021 16:40
- Forum: dzVents
- Topic: Reset incremental counter does not work [Solved]
- Replies: 3
- Views: 1802
Re: Reset incremental counter does not work [Solved]
Thank you for your respons. Very helpful.
I replaced the second incremental counter with a standard counter. Everything now works as wanted!
For the record; The counter divider gave me some extra headache. So other enthusiasts using these counters must be aware of this divider as you pointed out.
I replaced the second incremental counter with a standard counter. Everything now works as wanted!
For the record; The counter divider gave me some extra headache. So other enthusiasts using these counters must be aware of this divider as you pointed out.
- Thursday 07 January 2021 10:04
- Forum: dzVents
- Topic: Reset incremental counter does not work [Solved]
- Replies: 3
- Views: 1802
Reset incremental counter does not work [Solved]
I have created a water meter in Domoticz using an inductieve NPN sensor on a GPIO of my Pi. The puls from the NPN increments an incremental counter and for that I use dzVents. Everything works fine and the counter is in sync with the real water meter. Now I want to monitor the water usage of one day ...
- Friday 11 December 2020 14:56
- Forum: Dashticz
- Topic: Dashticz graph watermeter show a bar for every usage
- Replies: 7
- Views: 708
Re: Dashticz graph watermeter show a bar for every usage
Ah! Now I think I understand what you want. My suggestion would then be to write a script in DzVents that counts the pulses from your water meter and if the pulses don't come in anymore for, let's say 1 or 2 minutes, then sent the total to the incremental counter. This way, the consumption of one ...
- Wednesday 09 December 2020 12:05
- Forum: Dashticz
- Topic: Dashticz graph watermeter show a bar for every usage
- Replies: 7
- Views: 708
Re: Dashticz graph watermeter show a bar for every usage
Hi Marcel, I was just looking into the link you sent (all in Dutch). I was wondering if you did set the Sensor Timeout for a longer period of time? Eventueel kun je “Sensor Timout” op 10000 zetten (dit voorkomt dat je time-outs en log-errors krijg indien je bv. op vakantie bent en gedurende langere t ...
- Tuesday 08 December 2020 17:32
- Forum: Dashticz
- Topic: Dashticz graph watermeter show a bar for every usage
- Replies: 7
- Views: 708
Re: Dashticz graph watermeter show a bar for every usage
Hi Marcel, I don't have a direct solution but maybe you can make a virtual meter in Domoticz. With DzVents you write the meter data from your water meter to this virtual meter. I do something like this myself but with my smart e-meter and data from my solar panels. I call the script every time the ...
- Monday 30 November 2020 13:31
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
I myself do not experience any problems with the script. I use one of the latest versions of Unifi controller (6.0.36) and I use Domoticz 2020.2. Recently I have refreshed my script a bit (kind of watch routine built in because devices sometimes lose WiFi for a moment. I don't want to label these as ...
- Wednesday 04 November 2020 10:15
- Forum: dzVents
- Topic: How can I check the length of a table from JSON
- Replies: 3
- Views: 605
Re: How can I check the length of a table from JSON
Thank you! The simple #device.json.data did the job for me. I also tried your LUA way. I'm not sure what to do with the result. Below you see first the result of the simple code (41) and next the LUA way. I suppose that the LUA way can deal with missing numbers?!? Maybe you can elaborate on this a ...
- Tuesday 03 November 2020 22:24
- Forum: dzVents
- Topic: How can I check the length of a table from JSON
- Replies: 3
- Views: 605
How can I check the length of a table from JSON
I have a script running that checks if mobile devices are present on my WiFi network. For this I use the API of my Unifi controller. This API returns a string that I search for certain MAC adreses. Everything works fine. Now I want to do more things with the data I receive from the controller. This ...
- Monday 26 October 2020 14:20
- Forum: Dashticz
- Topic: Dashticz - Show your dashboard and how-to's!
- Replies: 1004
- Views: 329250
Re: Dashticz - Show your dashboard and how-to's!
I can add a query string to the Dashticz url, like: http://<dashticz-ip:port/?user='One' and then you can use the parameters in Dashticz CONFIG.js via for instance dashticzParam['user'] Then you don't have to create additional folders, and copy CONFIG.js. Would this be useful? That option gives ...
- Wednesday 21 October 2020 16:14
- Forum: Dashticz
- Topic: Dashticz - Show your dashboard and how-to's!
- Replies: 1004
- Views: 329250
Re: Dashticz - Show your dashboard and how-to's!
I want to show you my dashboard. 1.png I also created smaller dashboards for mobile phones. These smaller dashboard are personalized based on the user that I use at the start of the script. Everything from just one CONFIG.js. I only need the adjust the username in the top of my script and save that ...
- Wednesday 07 October 2020 16:12
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
My fault! I Looked at the wrong post for the script you're using (in fact you didn't post your script at all before)! And you are right; your script is/does the same. In fact it is more fancy because a phone has to be away for six minutes before it gets turned off (I myself build something similar ...
- Wednesday 07 October 2020 14:54
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
I don't know what causes the error. I'm sorry.
I can see that you've adjusted the script to your needs. Do you get the same error when you are using my basic script?
I can see that you've adjusted the script to your needs. Do you get the same error when you are using my basic script?
- Tuesday 06 October 2020 12:11
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
Maybe you can add this line of code to get some more info on what is happening during script launch. (put it at the top of your code near 'data = ...')
Code: Select all
logging = { level = domoticz.LOG_DEBUG, marker = 'Unifi', },
- Tuesday 06 October 2020 11:40
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
I'm not sure but from the error log you shared, I can see you run the script every minute. What I do not understand is why the error is not showing every minute. Or did you share just parts of the error log? If the error is not showing every minute (or not every time the script runs) I don't think ...
- Monday 07 September 2020 15:56
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18270
Re: Presence detection using UniFi Controller and DzVents [Solved]
Check the url when you are using your controller in a browser:
//unifi/api/s/default/stat/sta
Probably you do not use the 'default' setting in your controller. Replace 'default' by your specific name you van see in the address bar in your browser.
//unifi/api/s/default/stat/sta
Probably you do not use the 'default' setting in your controller. Replace 'default' by your specific name you van see in the address bar in your browser.