Skip to content

Commit

Permalink
#4 Add information about creating a local account
Browse files Browse the repository at this point in the history
  • Loading branch information
steffjenl committed Aug 9, 2024
1 parent cb70398 commit 6ce05a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ Adds support for Ubiquiti UniFi Protect devices in Homey.
* A flow action card can be used to create a snapshot, which is is saved to an Image tag.
* A flow action card is available to set a camera's recording mode, being one of 'Don't record', 'Always record' or 'Record only motion'.

## Notice
In a beta version of Unifi Protect, all information about the NVR itself has been removed. We have made the NVR itself deprecated as a device and will be removed in the next version.
Remove the NVR from your devices. The NVR is also no longer obliged to install it first.
## How to create an local account?

* Login in your local UniFi web interface, and click on Admins & Users. **Note:** This must be done from your local device and not from _unifi.ui.com_ or within the app.
* Click on the '+' icon to add a new user.
* Fill in the user details, and make sure to select 'Restrict to local access only' as the user type.
* Give the user Full Management rights and click on 'Add'.


## Troubleshooting / FAQ
* Question: I am using not the latest firmware on the cloudkey and can't connect.
Expand All @@ -56,7 +60,7 @@ Remove the NVR from your devices. The NVR is also no longer obliged to install i

## Feedback

If you find a bug or if you are missing a feature, please [create an issue here](https://github.com/steffjenl/com.ubnt.unifiprotect/issues).
If you find a bug or if you are missing a feature, please [create an issue here](https://github.com/steffjenl/com-ubnt-unifiprotect/discussions).
Thank you for using this app!

## Attributions
Expand Down
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class UniFiProtect extends Homey.App {
this.nvrUsername = null;
this.nvrPassword = null;
this.useCameraSnapshot = false;
// this._refreshAuthTokensnterval = 24 * 60 * 60 * 1000; // 24 hours
this._refreshAuthTokensnterval = 60 * 60 * 1000; // 1 hour

// Single API instance for all devices
Expand Down Expand Up @@ -134,7 +133,7 @@ class UniFiProtect extends Homey.App {
}

this._appLogin();
// refresh auth tokens every day
// refresh auth tokens every hour
await this.refreshAuthTokens();

this.debug('UniFiProtect has been initialized');
Expand Down

0 comments on commit 6ce05a8

Please sign in to comment.