Search found 2 matches

by Petturik
Sunday 30 September 2018 15:09
Forum: dzVents
Topic: Presence detection using UniFi Controller and DzVents [Solved]
Replies: 71
Views: 17854

Re: Presence detection using UniFi Controller and DzVents [Solved]

I had to change a part of the code, seeing my site isn't called "default" anymore. so I changed : url = 'https://192.168.2.12:8443/api/s/default/stat/sta', --Change IP and Port to your Unifi Controller settings to url = 'https://192.168.2.12:8443/api/s/<8randomcharactersmadeupbyunifi>/stat/sta ...
by Petturik
Sunday 30 September 2018 14:08
Forum: LUA
Topic: Script examples (Lua)
Replies: 139
Views: 161523

Re: Script examples (Lua)

Just wanted to share my Gardenlighting script. Seeing I wanted a dimmer connected to the lighting and a standalone button to control the lighting aswell, I made this script. Well, made, I compiled it from several examples. Comments and feedback are welcome : -- If PIR detects motion (turns on) -- it ...