Skip to content

Commit

Permalink
- Forgot to add the protect light driver
Browse files Browse the repository at this point in the history
  • Loading branch information
JoKneeMo committed Jan 8, 2023
1 parent bfc1d6c commit fa95034
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
6 changes: 4 additions & 2 deletions unificontroller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ This HPM app would not exist without the work by [tomw](https://community.hubita

- [UniFi Protect Controller](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectController) - Required, manages communication for UniFi Protect devices. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!

- [UniFi Protect Camera](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera) - Required by UniFi Protect Controller, used for the camera handling. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!
- [UniFi Protect Camera](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera) - Required by UniFi Protect Controller, used for the camera handling. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!

- [UniFi Protect Doorbell](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera) - Required by UniFi Protect Controller, used for the doorbell action handling. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!
- [UniFi Protect Doorbell](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera) - Required by UniFi Protect Controller, used for the doorbell action handling. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!

- [UniFi Protect Light](https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera) - Required by UniFi Protect Controller, used for light control. Written by [tomw](https://github.com/tomwpublic/hubitat_unifiProtect/) and only imported to this package. Any updates or licensing are on his end, this HPM app just references it!
5 changes: 3 additions & 2 deletions unificontroller/app/UniFiController_App.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def dashboardHelp() {

section('<h3>Snapshots</h3>') {
if (getControllerChildren(state.currentDeviceId).findAll { it.typeName == DEVICE_TYPES["camera"].driver }.size() == 0) {
paragraph("<b>There are no cameras devices on this UniFi controller.</b>")
paragraph("<b>There are no camera devices on this UniFi controller.</b>")
}
else {
paragraph(
Expand Down Expand Up @@ -406,5 +406,6 @@ def logTrace(msg) {
@Field static def DEVICE_TYPES = [
"UNIFI_API_DNI": [name: "UniFi Protect Controller", driver: "UniFi Protect Controller"],
"camera": [name: "UniFi Protect Camera", driver: "UniFi Protect Camera"],
"doorbell": [name: "UniFi Protect Doorbell", driver: "UniFi Protect Doorbell"]
"doorbell": [name: "UniFi Protect Doorbell", driver: "UniFi Protect Doorbell"],
"light": [name: "UniFi Protect Light", driver: "UniFi Protect Light"]
]
11 changes: 11 additions & 0 deletions unificontroller/packageManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,31 @@
"name": "UniFi Protect Controller",
"namespace": "tomw",
"location": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectController",
"licenseFile": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/LICENSE",
"required": true
},
{
"id": "13544119-363d-479b-8fdf-4a61bc682fc3",
"name": "UniFi Protect Camera",
"namespace": "tomw",
"location": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectCamera",
"licenseFile": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/LICENSE",
"required": true
},
{
"id": "d3a0bc6c-67c1-46fb-8dec-dca6915d701e",
"name": "UniFi Protect Doorbell",
"namespace": "tomw",
"location": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectDoorbell",
"licenseFile": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/LICENSE",
"required": true
},
{
"id": "edfa53bc-fe44-431a-aa75-1eda1620b80c",
"name": "UniFi Protect Light",
"namespace": "tomw",
"location": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/unifiProtectLight",
"licenseFile": "https://raw.githubusercontent.com/tomwpublic/hubitat_unifiProtect/main/LICENSE",
"required": true
}
]
Expand Down

0 comments on commit fa95034

Please sign in to comment.