{"id":37200347,"url":"https://github.com/gsdevme/unifi-ha-presence-mqtt","last_synced_at":"2026-01-14T23:03:12.481Z","repository":{"id":46388786,"uuid":"390153030","full_name":"gsdevme/unifi-ha-presence-mqtt","owner":"gsdevme","description":"Unifi Presence to MQTT for Home Assistant","archived":false,"fork":false,"pushed_at":"2021-10-23T08:56:22.000Z","size":3879,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T12:53:29.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsdevme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-27T23:13:47.000Z","updated_at":"2024-06-21T12:53:29.137Z","dependencies_parsed_at":"2022-09-23T00:12:00.216Z","dependency_job_id":null,"html_url":"https://github.com/gsdevme/unifi-ha-presence-mqtt","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/gsdevme/unifi-ha-presence-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsdevme%2Funifi-ha-presence-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsdevme%2Funifi-ha-presence-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsdevme%2Funifi-ha-presence-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsdevme%2Funifi-ha-presence-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsdevme","download_url":"https://codeload.github.com/gsdevme/unifi-ha-presence-mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsdevme%2Funifi-ha-presence-mqtt/sbom","scorecard":{"id":447121,"data":{"date":"2025-08-11","repo":{"name":"github.com/gsdevme/unifi-ha-presence-mqtt","commit":"0bb9b34f76753437d1c319402fc3ded5d959fa67"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/build.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/build.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/gsdevme/unifi-ha-presence-mqtt/release.yaml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.2.1 not signed: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51907189","Warn: release artifact v1.2.0 not signed: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51502713","Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51474079","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51398953","Warn: release artifact v1.2.1 does not have provenance: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51907189","Warn: release artifact v1.2.0 does not have provenance: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51502713","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51474079","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/gsdevme/unifi-ha-presence-mqtt/releases/51398953"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T07:05:57.665Z","repository_id":46388786,"created_at":"2025-08-19T07:05:57.665Z","updated_at":"2025-08-19T07:05:57.665Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T23:03:11.817Z","updated_at":"2026-01-14T23:03:12.440Z","avatar_url":"https://github.com/gsdevme.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unifi Presence to MQTT for Home Assistant\n\nThe integration supports MQTT auto discovery\n\n# Why?\n\nThe current existing integration adds every single device from your unifi OS into home assistant and this clutters home assistant.\n\n# Running\n\n## Kubernetes\n\n```yaml\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: unifi-ha-presence\ndata:\n  TRACK_DEVICES: \"phone1,phone2\"\n  UNIFI_HOST: \"https://192.168.1.1\"\n  MQTT_DNS: \"mqtt://mqtt:1883\"\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: unifi-ha-presence\ndata:\n  UNIFI_PASSWORD: cGFzc3dvcmQ=\n  UNIFI_USERNAME: YWRtaW4=\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: unifi-ha-presence\n  labels:\n    app: unifi-ha-presence\nspec:\n  selector:\n    matchLabels:\n      app: unifi-ha-presence\n  template:\n    metadata:\n      labels:\n        app: unifi-ha-presence\n    spec:\n      containers:\n        - name: unifi-ha-presence\n          image: gsdevme/unifi-ha-presence-mqtt:latest\n          envFrom:\n            - configMapRef:\n                name: unifi-ha-presence\n            - secretRef:\n                name: unifi-ha-presence\n          resources:\n            limits:\n              memory: \"32Mi\"\n              cpu: \"50m\"\n```              \n\n## Docker \n\n```bash\ndocker run --name=unifi-ha \\\n-e MQTT_DNS=\"mqtt://127.0.0.1:1883\" \\\n-e TRACK_DEVICES=\"phone1,phone2\" \\\n-e UNIFI_HOST=\"https://192.168.1.1\" \\\n-e UNIFI_USERNAME=\"admin\" \\\n-e UNIFI_PASSWORD=\"password\" \\\n--restart=on-failure \\\ngsdevme/unifi-ha-presence-mqtt:latest\n```\n\n## TODO\n\n- [ ] Handle the client better generally in the code (memory and failure wise)\n- [ ] Move HTTP and Broker to Channels? \n- [ ] Better error handling\n\n## Packages\n\n- https://github.com/gsdevme/unifi\n- https://hub.docker.com/r/gsdevme/unifi-ha-presence-mqtt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsdevme%2Funifi-ha-presence-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsdevme%2Funifi-ha-presence-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsdevme%2Funifi-ha-presence-mqtt/lists"}