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 ...
Search found 2 matches
- Sunday 30 September 2018 15:09
- Forum: dzVents
- Topic: Presence detection using UniFi Controller and DzVents [Solved]
- Replies: 71
- Views: 18678
- Sunday 30 September 2018 14:08
- Forum: LUA
- Topic: Script examples (Lua)
- Replies: 139
- Views: 176885
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 ...
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 ...