[
  {
    "path": ".github/CODEOWNERS",
    "content": ".github/* @frenck\n"
  },
  {
    "path": ".github/CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe pledge to make our community welcoming, safe, and equitable for all.\n\nWe are committed to fostering an environment that respects and promotes the\ndignity, rights, and contributions of all individuals, regardless of\ncharacteristics including race, ethnicity, caste, color, age, physical\ncharacteristics, neurodiversity, disability, sex or gender, gender identity or\nexpression, sexual orientation, language, philosophy or religion, national or\nsocial origin, socio-economic position, level of education, or other status.\nThe same privileges of participation are extended to everyone who participates\nin good faith and in accordance with this Covenant.\n\n## Encouraged Behaviors\n\nWhile acknowledging differences in social norms, we all strive to meet our\ncommunity's expectations for positive behavior. We also understand that our\nwords and actions may be interpreted differently than we intend based on\nculture, background, or native language.\n\nWith these considerations in mind, we agree to behave mindfully toward each\nother and act in ways that center our shared values, including:\n\n1. Respecting the **purpose of our community**, our activities, and our ways\n   of gathering.\n2. Engaging **kindly and honestly** with others.\n3. Respecting **different viewpoints** and experiences.\n4. **Taking responsibility** for our actions and contributions.\n5. Gracefully giving and accepting **constructive feedback**.\n6. Committing to **repairing harm** when it occurs.\n7. Behaving in other ways that promote and sustain the **well-being of our\n   community**.\n\n## Restricted Behaviors\n\nWe agree to restrict the following behaviors in our community. Instances,\nthreats, and promotion of these behaviors are violations of this Code of\nConduct.\n\n1. **Harassment.** Violating explicitly expressed boundaries or engaging in\n   unnecessary personal attention after any clear request to stop.\n2. **Character attacks.** Making insulting, demeaning, or pejorative comments\n   directed at a community member or group of people.\n3. **Stereotyping or discrimination.** Characterizing anyone's personality or\n   behavior on the basis of immutable identities or traits.\n4. **Sexualization.** Behaving in a way that would generally be considered\n   inappropriately intimate in the context or purpose of the community.\n5. **Violating confidentiality**. Sharing or acting on someone's personal or\n   private information without their permission.\n6. **Endangerment.** Causing, encouraging, or threatening violence or other\n   harm toward any person or group.\n7. Behaving in other ways that **threaten the well-being** of our community.\n\n### Other Restrictions\n\n1. **Misleading identity.** Impersonating someone else for any reason, or\n   pretending to be someone else to evade enforcement actions.\n2. **Failing to credit sources.** Not properly crediting the sources of\n   content you contribute.\n3. **Promotional materials**. Sharing marketing or other commercial content in\n   a way that is outside the norms of the community.\n4. **Irresponsible communication.** Failing to responsibly present content\n   which includes, links or describes any other restricted behaviors.\n\n## Reporting an Issue\n\nTensions can occur between community members even when they are trying their\nbest to collaborate. Not every conflict represents a code of conduct violation,\nand this Code of Conduct reinforces encouraged behaviors and norms that can\nhelp avoid conflicts and minimize harm.\n\nWhen an incident does occur, it is important to report it promptly. To report\na possible violation, send an email to `opensource@frenck.dev`.\n\nCommunity Moderators take reports of violations seriously and will make every\neffort to respond in a timely manner. They will investigate all reports of code\nof conduct violations, reviewing messages, logs, and recordings, or\ninterviewing witnesses and other participants. Community Moderators will keep\ninvestigation and enforcement actions as transparent as possible while\nprioritizing safety and confidentiality. In order to honor these values,\nenforcement actions are carried out in private with the involved parties, but\ncommunicating to the whole community may be part of a mutually agreed upon\nresolution.\n\n## Addressing and Repairing Harm\n\nIf an investigation by the Community Moderators finds that this Code of\nConduct has been violated, the following enforcement ladder may be used to\ndetermine how best to repair harm, based on the incident's impact on the\nindividuals involved and the community as a whole. Depending on the severity\nof a violation, lower rungs on the ladder may be skipped.\n\n1. Warning\n   1. Event: A violation involving a single incident or series of incidents.\n   2. Consequence: A private, written warning from the Community Moderators.\n   3. Repair: Examples of repair include a private written apology,\n      acknowledgement of responsibility, and seeking clarification on\n      expectations.\n2. Temporarily Limited Activities\n   1. Event: A repeated incidence of a violation that previously resulted in a\n      warning, or the first incidence of a more serious violation.\n   2. Consequence: A private, written warning with a time-limited cooldown\n      period designed to underscore the seriousness of the situation and give\n      the community members involved time to process the incident. The cooldown\n      period may be limited to particular communication channels or\n      interactions with particular community members.\n   3. Repair: Examples of repair may include making an apology, using the\n      cooldown period to reflect on actions and impact, and being thoughtful\n      about re-entering community spaces after the period is over.\n3. Temporary Suspension\n   1. Event: A pattern of repeated violation which the Community Moderators\n      have tried to address with warnings, or a single serious violation.\n   2. Consequence: A private written warning with conditions for return from\n      suspension. In general, temporary suspensions give the person being\n      suspended time to reflect upon their behavior and possible corrective\n      actions.\n   3. Repair: Examples of repair include respecting the spirit of the\n      suspension, meeting the specified conditions for return, and being\n      thoughtful about how to reintegrate with the community when the\n      suspension is lifted.\n4. Permanent Ban\n   1. Event: A pattern of repeated code of conduct violations that other steps\n      on the ladder have failed to resolve, or a violation so serious that the\n      Community Moderators determine there is no way to keep the community safe\n      with this person as a member.\n   2. Consequence: Access to all community spaces, tools, and communication\n      channels is removed. In general, permanent bans should be rarely used,\n      should have strong reasoning behind them, and should only be resorted to\n      if working through other remedies has failed to change the behavior.\n   3. Repair: There is no possible repair in cases of this severity.\n\nThis enforcement ladder is intended as a guideline. It does not limit the\nability of Community Managers to use their discretion and judgment, in keeping\nwith the best interests of our community.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies\nwhen an individual is officially representing the community in public or other\nspaces. Examples of representing our community include using an official email\naddress, posting via an official social media account, or acting as an\nappointed representative at an online or offline event.\n\n## Attribution\n\nThis Code of Conduct is adapted from the Contributor Covenant, version 3.0,\npermanently available at\n[https://www.contributor-covenant.org/version/3/0/][v3.0].\n\nContributor Covenant is stewarded by the Organization for Ethical Source and\nlicensed under CC BY-SA 4.0. To view a copy of this license, visit\n[https://creativecommons.org/licenses/by-sa/4.0/][cc-by-sa].\n\nFor answers to common questions about Contributor Covenant, see the FAQ at\n[https://www.contributor-covenant.org/faq][faq]. Translations are provided at\n[https://www.contributor-covenant.org/translations][translations]. Additional\nenforcement and community guideline resources can be found at\n[https://www.contributor-covenant.org/resources][resources]. The enforcement\nladder was inspired by the work of\n[Mozilla's code of conduct team][mozilla-coc].\n\n[v3.0]: https://www.contributor-covenant.org/version/3/0/\n[cc-by-sa]: https://creativecommons.org/licenses/by-sa/4.0/\n[faq]: https://www.contributor-covenant.org/faq\n[translations]: https://www.contributor-covenant.org/translations\n[resources]: https://www.contributor-covenant.org/resources\n[mozilla-coc]: https://github.com/mozilla/inclusion\n"
  },
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "# Contributing\n\nWhen contributing to this repository, please first discuss the change you wish\nto make via issue, email, or any other method with the owners of this repository\nbefore making a change.\n\nPlease note we have a code of conduct, please follow it in all your interactions\nwith the project.\n\n## Issues and feature requests\n\nYou've found a bug in the source code, a mistake in the documentation or maybe\nyou'd like a new feature? You can help us by submitting an issue to our\n[GitHub Repository][github]. Before you create an issue, make sure you search\nthe archive, maybe your question was already answered.\n\nEven better: You could submit a pull request with a fix / new feature!\n\n## Pull request process\n\n1. Search our repository for open or closed [pull requests][prs] that relates\n   to your submission. You don't want to duplicate effort.\n\n1. You may merge the pull request in once you have the sign-off of two other\n   developers, or if you do not have permission to do that, you may request\n   the second reviewer to merge it for you.\n\n[github]: https://github.com/hassio-addons/app-unifi/issues\n[prs]: https://github.com/hassio-addons/app-unifi/pulls\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "---\ngithub: frenck\npatreon: frenck\ncustom: https://frenck.dev/donate/\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "# Problem/Motivation\n\n> (Why the issue was filed)\n\n## Expected behavior\n\n> (What you expected to happen)\n\n## Actual behavior\n\n> (What actually happened)\n\n## Steps to reproduce\n\n> (How can someone else make/see it happen)\n\n## Proposed changes\n\n> (If you have a proposed change, workaround or fix,\n> describe the rationale behind it)\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "# Proposed Changes\n\n> (Describe the changes and rationale behind them)\n\n## Related Issues\n\n> ([Github link][autolink-references] to related issues or pull requests)\n\n[autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/\n"
  },
  {
    "path": ".github/SECURITY.md",
    "content": "# Security Policy\n\nWe take the security of this project seriously. We appreciate your efforts to responsibly disclose your findings and will make every effort to acknowledge your contributions.\n\n## Reporting a Vulnerability\n\n**Please do not report security vulnerabilities through public GitHub issues.**\n\nIf you discover a security vulnerability, please report it via GitHub's private vulnerability reporting:\n\n1. Navigate to the Security tab of this repository\n2. Click \"Report a vulnerability\"\n3. Provide a description of the vulnerability and steps to reproduce\n\nAfter the initial report, we will keep you informed of the progress towards a fix and may ask for additional information or guidance.\n\nWe aim to address reported vulnerabilities within 90 days.\n\nThank you for helping keep this project secure!\n"
  },
  {
    "path": ".github/dependabot.yaml",
    "content": "---\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: daily\n      time: \"06:00\"\n"
  },
  {
    "path": ".github/workflows/ci.yaml",
    "content": "---\nname: CI\n\n# yamllint disable-line rule:truthy\non:\n  pull_request:\n    types:\n      - opened\n      - reopened\n      - synchronize\n  workflow_dispatch:\n\npermissions:\n  actions: read\n  contents: write\n  pull-requests: read\n  packages: read\n  security-events: write\n\njobs:\n  workflows:\n    uses: hassio-addons/workflows/.github/workflows/app-ci.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n"
  },
  {
    "path": ".github/workflows/deploy.yaml",
    "content": "---\nname: Deploy\n\n# yamllint disable-line rule:truthy\non:\n  push:\n    branches:\n      - main\n  release:\n    types:\n      - published\n\npermissions: {}\n\njobs:\n  ci:\n    permissions:\n      actions: read\n      contents: write\n      pull-requests: read\n      packages: read\n      security-events: write\n    uses: hassio-addons/workflows/.github/workflows/app-ci.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n\n  deploy:\n    needs: ci\n    permissions:\n      contents: read\n      packages: write\n    uses: hassio-addons/workflows/.github/workflows/app-deploy.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n    secrets:\n      DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/labels.yaml",
    "content": "---\nname: Sync labels\n\n# yamllint disable-line rule:truthy\non:\n  schedule:\n    - cron: \"34 5 * * *\"\n  workflow_dispatch:\n\npermissions:\n  issues: write\n\njobs:\n  workflows:\n    uses: hassio-addons/workflows/.github/workflows/labels.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n"
  },
  {
    "path": ".github/workflows/lock.yaml",
    "content": "---\nname: Lock\n\n# yamllint disable-line rule:truthy\non:\n  schedule:\n    - cron: \"0 9 * * *\"\n  workflow_dispatch:\n\npermissions:\n  issues: write\n  pull-requests: write\n\njobs:\n  workflows:\n    uses: hassio-addons/workflows/.github/workflows/lock.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n"
  },
  {
    "path": ".github/workflows/pr-labels.yaml",
    "content": "---\nname: PR Labels\n\n# yamllint disable-line rule:truthy\non:\n  pull_request:\n    types:\n      - opened\n      - labeled\n      - unlabeled\n      - synchronize\n\npermissions: {}\n\njobs:\n  workflows:\n    uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n"
  },
  {
    "path": ".github/workflows/stale.yaml",
    "content": "---\nname: Stale\n\n# yamllint disable-line rule:truthy\non:\n  schedule:\n    - cron: \"0 8 * * *\"\n  workflow_dispatch:\n\npermissions:\n  issues: write\n  pull-requests: write\n\njobs:\n  workflows:\n    uses: hassio-addons/workflows/.github/workflows/stale.yaml@3846ae0fd09acec8ac1ac308ceacd052b9d01bec # v2.0.6\n"
  },
  {
    "path": ".mdlrc",
    "content": "rules \"~MD024\""
  },
  {
    "path": ".yamllint",
    "content": "---\nrules:\n  braces:\n    level: error\n    min-spaces-inside: 0\n    max-spaces-inside: 1\n    min-spaces-inside-empty: -1\n    max-spaces-inside-empty: -1\n  brackets:\n    level: error\n    min-spaces-inside: 0\n    max-spaces-inside: 0\n    min-spaces-inside-empty: -1\n    max-spaces-inside-empty: -1\n  colons:\n    level: error\n    max-spaces-before: 0\n    max-spaces-after: 1\n  commas:\n    level: error\n    max-spaces-before: 0\n    min-spaces-after: 1\n    max-spaces-after: 1\n  comments:\n    level: error\n    require-starting-space: true\n    min-spaces-from-content: 1\n  comments-indentation:\n    level: error\n  document-end:\n    level: error\n    present: false\n  document-start:\n    level: error\n    present: true\n  empty-lines:\n    level: error\n    max: 1\n    max-start: 0\n    max-end: 1\n  hyphens:\n    level: error\n    max-spaces-after: 1\n  indentation:\n    level: error\n    spaces: 2\n    indent-sequences: true\n    check-multi-line-strings: false\n  key-duplicates:\n    level: error\n  line-length: disable\n  new-line-at-end-of-file:\n    level: error\n  new-lines:\n    level: error\n    type: unix\n  trailing-spaces:\n    level: error\n  truthy:\n    level: error\n"
  },
  {
    "path": "LICENSE.md",
    "content": "# MIT License\n\nCopyright (c) 2018-2026 Franck Nijhof\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Home Assistant Community App: UniFi Network Application\n\n[![GitHub Release][releases-shield]][releases]\n![Project Stage][project-stage-shield]\n[![License][license-shield]](LICENSE.md)\n\n![Supports aarch64 Architecture][aarch64-shield]\n![Supports amd64 Architecture][amd64-shield]\n\n[![GitHub Actions][github-actions-shield]][github-actions]\n![Project Maintenance][maintenance-shield]\n[![GitHub Activity][commits-shield]][commits]\n\n[![Discord][discord-shield]][discord]\n[![Community Forum][forum-shield]][forum]\n\n[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]\n\n[![Support Frenck on Patreon][patreon-shield]][patreon]\n\nThe UniFi Network Application allows you to manage your UniFi network\nusing a web browser.\n\n![The UniFi Network Application app](images/screenshot.jpg)\n\n## About\n\nThis app runs Ubiquiti Networks' UniFi Network Application software, which\nallows you to manage your UniFi network via the web browser. The app\nprovides a single-click installation and run solution for Home Assistant,\nallowing users to get their network up, running, and updated, easily.\n\n**Note:** The standalone UniFi Network Application is approaching end-of-life.\nUbiquiti is transitioning to UniFi OS Server, which does not translate to a\nDocker/Home Assistant app. There is no upgrade path from this app to UniFi OS\nServer. See the [documentation][docs] for details.\n\n[:books: Read the full app documentation][docs]\n\n## Support\n\nGot questions?\n\nYou have several options to get them answered:\n\n- The [Home Assistant Community Apps Discord chat server][discord] for app\n  support and feature requests.\n- The [Home Assistant Discord chat server][discord-ha] for general Home\n  Assistant discussions and questions.\n- The Home Assistant [Community Forum][forum].\n- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit]\n\nYou could also [open an issue here][issue] GitHub.\n\n## Contributing\n\nThis is an active open-source project. We are always open to people who want to\nuse the code or contribute to it.\n\nWe have set up a separate document containing our\n[contribution guidelines](.github/CONTRIBUTING.md).\n\nThank you for being involved! :heart_eyes:\n\n## Authors & contributors\n\nThe original setup of this repository is by [Franck Nijhof][frenck].\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n## We have got some Home Assistant apps for you\n\nWant some more functionality to your Home Assistant instance?\n\nWe have created multiple apps for Home Assistant. For a full list, check out\nour [GitHub Repository][repository].\n\n## License\n\nMIT License\n\nCopyright (c) 2018-2026 Franck Nijhof\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg\n[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg\n[commits-shield]: https://img.shields.io/github/commit-activity/y/hassio-addons/app-unifi.svg\n[commits]: https://github.com/hassio-addons/app-unifi/commits/main\n[contributors]: https://github.com/hassio-addons/app-unifi/graphs/contributors\n[discord-ha]: https://discord.gg/c5DvZ4e\n[discord-shield]: https://img.shields.io/discord/478094546522079232.svg\n[discord]: https://discord.me/hassioaddons\n[docs]: https://github.com/hassio-addons/app-unifi/blob/main/unifi/DOCS.md\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-unifi-controller/56297?u=frenck\n[frenck]: https://github.com/frenck\n[github-actions-shield]: https://github.com/hassio-addons/app-unifi/workflows/CI/badge.svg\n[github-actions]: https://github.com/hassio-addons/app-unifi/actions\n[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png\n[github-sponsors]: https://github.com/sponsors/frenck\n[issue]: https://github.com/hassio-addons/app-unifi/issues\n[license-shield]: https://img.shields.io/github/license/hassio-addons/app-unifi.svg\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2026.svg\n[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png\n[patreon]: https://www.patreon.com/frenck\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg\n[reddit]: https://reddit.com/r/homeassistant\n[releases-shield]: https://img.shields.io/github/release/hassio-addons/app-unifi.svg\n[releases]: https://github.com/hassio-addons/app-unifi/releases\n[repository]: https://github.com/hassio-addons/repository\n"
  },
  {
    "path": "unifi/.README.j2",
    "content": "# Home Assistant Community App: UniFi Network Application\n\n[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]\n\n[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]\n\n[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]\n\n[![Support Frenck on Patreon][patreon-shield]][patreon]\n\nThe UniFi Network Application allows you to manage your UniFi network\nusing a web browser.\n\n## Important notice\n\n**The standalone UniFi Network Application is approaching end-of-life.**\nUbiquiti is transitioning to UniFi OS Server, which does not translate to a\nDocker/Home Assistant app. There is no upgrade path from this app to UniFi OS\nServer. This app will continue to work as long as Ubiquiti ships the standalone\napplication, but users planning long-term should consider migrating to a\ndedicated machine or VM.\n\n## About\n\nThis app runs Ubiquiti Networks' UniFi Network Application software, which\nallows you to manage your UniFi network via the web browser. The app\nprovides a single-click installation and run solution for Home Assistant,\nallowing users to get their network up, running, and updated, easily.\n\nThis app supports all Home Assistant supported architectures, including the\nRaspberry Pi.\n\n![UniFi Network Application][screenshot]\n\n{% if channel == \"edge\" %}\n## WARNING! THIS IS AN EDGE VERSION!\n\nThis Home Assistant Apps repository contains edge builds of apps.\nEdge app builds are based on the latest development version.\n\n- They may not work at all.\n- They might stop working at any time.\n- They could have a negative impact on your system.\n\nThis repository was created for:\n\n- Anybody willing to test.\n- Anybody interested in trying out upcoming apps or app features.\n- Developers.\n\nIf you are more interested in stable releases of our apps:\n\n<https://github.com/hassio-addons/repository>\n\n{% endif %}\n{% if channel == \"beta\" %}\n## WARNING! THIS IS A BETA VERSION!\n\nThis Home Assistant Apps repository contains beta releases of apps.\n\n- They might stop working at any time.\n- They could have a negative impact on your system.\n\nThis repository was created for:\n\n- Anybody willing to test.\n- Anybody interested in trying out upcoming apps or app features.\n\nIf you are more interested in stable releases of our apps:\n\n<https://github.com/hassio-addons/repository>\n\n{% endif %}\n\n[discord-shield]: https://img.shields.io/discord/478094546522079232.svg\n[discord]: https://discord.me/hassioaddons\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-unifi-controller/56297?u=frenck\n[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png\n[github-sponsors]: https://github.com/sponsors/frenck\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2026.svg\n[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png\n[patreon]: https://www.patreon.com/frenck\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg\n[release-shield]: https://img.shields.io/badge/version-{{ version }}-blue.svg\n[release]: {{ repo }}/tree/{{ version }}\n[screenshot]: https://github.com/hassio-addons/app-unifi/raw/main/images/screenshot.jpg\n"
  },
  {
    "path": "unifi/DOCS.md",
    "content": "# Home Assistant Community App: UniFi Network Application\n\nThis app runs Ubiquiti Networks' UniFi Network Application software, which\nallows you to manage your UniFi network via the web browser. The app\nprovides a single-click installation and run solution for Home Assistant,\nallowing users to get their network up, running, and updated, easily.\n\n## Installation\n\nThe installation of this app is pretty straightforward and not different in\ncomparison to installing any other Home Assistant app.\n\n1. Click the Home Assistant My button below to open the app on your Home\n   Assistant instance.\n\n   [![Open this app in your Home Assistant instance.][app-badge]][app]\n\n1. Click the \"Install\" button to install the app.\n1. Check the logs of the \"UniFi Network Application\" to see if everything went\n   well.\n1. Click the \"OPEN WEB UI\" button, and follow the initial wizard.\n1. After completing the wizard, log in with the credentials just created.\n1. Select Unifi Devices which you can find on the left hand. Once there, select Device Updates and Settings on the top right.\n1. Scroll down to Device settings and below the `Inform Host Override` label, enter the IP or hostname of the device running Home Assistant.\n1. Click the checkbox option for `Inform Host Override` so that is now \"checked\".\n1. Hit the \"Apply Changes\" button to activate the settings.\n1. Ready to go!\n\n## Configuration\n\n**Note**: _Remember to restart the app when the configuration is changed._\n\nExample app configuration, with all available options:\n\n```yaml\nlog_level: info\nmemory_max: 2048\nmemory_init: 512\n```\n\n**Note**: _This is just an example, don't copy and paste it! Create your own!_\n\n### Option: `log_level`\n\nThe `log_level` option controls the level of log output by the app and can\nbe changed to be more or less verbose, which might be useful when you are\ndealing with an unknown issue. Possible values are:\n\n- `trace`: Show every detail, like all called internal functions.\n- `debug`: Shows detailed debug information.\n- `info`: Normal (usually) interesting events.\n- `warning`: Exceptional occurrences that are not errors.\n- `error`: Runtime errors that do not require immediate action.\n- `fatal`: Something went terribly wrong. App becomes unusable.\n\nPlease note that each level automatically includes log messages from a\nmore severe level, e.g., `debug` also shows `info` messages. By default,\nthe `log_level` is set to `info`, which is the recommended setting unless\nyou are troubleshooting.\n\n### Option: `memory_max`\n\nThis option allows you to change the amount of memory the UniFi Network\nApplication is allowed to consume. By default, this is limited to 256 MB.\nYou might want to increase this, in order to reduce CPU load or reduce this,\nin order to optimize your system for lower memory usage.\n\nThis option takes the number of Megabyte, for example, the default is 256.\n\n### Option: `memory_init`\n\nThis option allows you to change the amount of memory the UniFi Network\nApplication will initially reserve/consume when starting. By default,\nthis is limited to 128MB.\n\nThis option takes the number of Megabyte, for example, the default is 128.\n\n## Automated backups\n\nThe UniFi Network Application ships with an automated backup feature. This\nfeature works but has been adjusted to put the created backups in a different\nlocation.\n\nBackups are created in `/backup/unifi`. You can access this folder using\nthe normal Home Assistant methods (e.g., using Samba, Terminal, SSH).\n\n## Manually adopting a device\n\nAlternatively to setting up a custom inform address (installation steps 7-9)\nyou can manually adopt a device by following these steps:\n\n- SSH into the device using `ubnt` as username and `ubnt` as password\n- `$ mca-cli`\n- `$ set-inform http://<IP of Hassio>:<controller port (default:8080)>/inform`\n  - for example `$ set-inform http://192.168.1.14:8080/inform`\n\n## Future of this app\n\n**The standalone UniFi Network Application is approaching end-of-life.**\nUbiquiti is transitioning to UniFi OS Server, a multi-container architecture\nbased on podman and systemd that does not translate to a Docker/Home Assistant\napp. This app will continue to work as long as Ubiquiti ships the standalone\napplication, but there is no upgrade path from this app to UniFi OS Server.\nUsers planning long-term should consider migrating to a dedicated machine or VM.\n\n## Known issues and limitations\n\n- The AP seems stuck in \"adopting\" state: Please read the installation\n  instructions carefully. You need to change some controller settings\n  in order for this app to work properly. Using the Ubiquiti Discovery\n  Tool, or SSH'ing into the AP and setting the INFORM after adopting\n  will resolve this. (see: _Manually adopting a device_)\n- The following error can show up in the log, but can be safely ignored:\n\n  ```\n    INFO: I/O exception (java.net.ConnectException) caught when processing\n    request: Connection refused (Connection refused)\n  ```\n\n  This is a known issue, however, the app functions normally.\n\n- Due to security policies in the UniFi Network Application software, it is\n  currently impossible to add the UniFI web interface to your Home Assistant\n  frontend using a `panel_iframe`.\n- The broadcast feature of the EDU-type APs are currently not working with\n  this app. Due to a limitation in Home Assistant, is it currently impossible\n  to open the required \"range\" of ports needed for this feature to work.\n- This app cannot support Ingress due to technical limitations of the\n  UniFi software.\n- During making a backup of this app via Home Assistant, this app will\n  temporary shutdown and start up after the backup has finished. This prevents\n  data corruption during taking the backup.\n\n## Changelog & Releases\n\nThis repository keeps a change log using [GitHub's releases][releases]\nfunctionality. The format of the log is based on\n[Keep a Changelog][keepchangelog].\n\nReleases are based on [Semantic Versioning][semver], and use the format\nof `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented\nbased on the following:\n\n- `MAJOR`: Incompatible or major changes.\n- `MINOR`: Backwards-compatible new features and enhancements.\n- `PATCH`: Backwards-compatible bugfixes and package updates.\n\n## Support\n\nGot questions?\n\nYou have several options to get them answered:\n\n- The [Home Assistant Community Apps Discord chat server][discord] for app\n  support and feature requests.\n- The [Home Assistant Discord chat server][discord-ha] for general Home\n  Assistant discussions and questions.\n- The Home Assistant [Community Forum][forum].\n- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit]\n\nYou could also [open an issue here][issue] GitHub.\n\n## Authors & contributors\n\nThe original setup of this repository is by [Franck Nijhof][frenck].\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n## License\n\nMIT License\n\nCopyright (c) 2018-2026 Franck Nijhof\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[app-badge]: https://my.home-assistant.io/badges/supervisor_addon.svg\n[app]: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_unifi&repository_url=https%3A%2F%2Fgithub.com%2Fhassio-addons%2Frepository\n[contributors]: https://github.com/hassio-addons/app-unifi/graphs/contributors\n[discord-ha]: https://discord.gg/c5DvZ4e\n[discord]: https://discord.me/hassioaddons\n[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-unifi-controller/56297?u=frenck\n[frenck]: https://github.com/frenck\n[issue]: https://github.com/hassio-addons/app-unifi/issues\n[keepchangelog]: http://keepachangelog.com/en/1.0.0/\n[reddit]: https://reddit.com/r/homeassistant\n[releases]: https://github.com/hassio-addons/app-unifi/releases\n[semver]: http://semver.org/spec/v2.0.0.htm\n"
  },
  {
    "path": "unifi/Dockerfile",
    "content": "ARG BUILD_FROM=ghcr.io/hassio-addons/ubuntu-base:8.2.0\n# hadolint ignore=DL3006\nFROM ${BUILD_FROM}\n\n# Set shell\nSHELL [\"/bin/bash\", \"-o\", \"pipefail\", \"-c\"]\n\n# Setup base system\n# UniFi 10.1+ requires Java 25 — not in Ubuntu repos, use Eclipse Temurin.\n# Temurin is not version-pinned: Adoptium uses different build suffixes per\n# architecture (e.g. +10-1 on amd64 vs +10-0 on arm64), making a single\n# pinned version string impossible across all supported architectures.\n# hadolint ignore=DL3008\nRUN \\\n    apt-get update \\\n    && apt-get upgrade -y \\\n    && apt-get install -y --no-install-recommends \\\n        gpg=2.2.19-3ubuntu2.5 \\\n    \\\n    && curl -fsSL https://packages.adoptium.net/artifactory/api/gpg/key/public \\\n        | gpg --dearmor -o /usr/share/keyrings/adoptium.gpg \\\n    && echo \"deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb focal main\" \\\n        > /etc/apt/sources.list.d/adoptium.list \\\n    && apt-get update \\\n    \\\n    && apt-get install -y --no-install-recommends \\\n        binutils=2.34-6ubuntu1.11 \\\n        libcap2=1:2.32-1ubuntu0.2 \\\n        logrotate=3.14.0-4ubuntu3 \\\n        mongodb-server=1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3 \\\n    \\\n    && apt-get install -y --no-install-recommends \\\n        temurin-25-jre \\\n    \\\n    && curl -J -L -o /tmp/unifi.deb \\\n        \"https://dl.ui.com/unifi/10.2.105/unifi_sysvinit_all.deb\" \\\n    \\\n    && dpkg --install /tmp/unifi.deb \\\n    \\\n    # Patch libubnt_webrtc_jni.so: strip the DONT-FRAGMENT (0x001A) attribute from\n    # TURN Allocate requests. Cloudflare's TURN relay rejects it with error 420\n    # (Unknown Attribute), breaking remote access via unifi.ui.com on all\n    # self-hosted controllers. The _all deb ships both arch libs, so we can patch\n    # both here regardless of build architecture.\n    # Expected MD5s are for the unmodified originals — build fails loudly if\n    # Ubiquiti ships a new library so offsets can be re-derived before proceeding.\n    && AARCH64_LIB=\"/usr/lib/unifi/lib/native/Linux/aarch64/libubnt_webrtc_jni.so\" \\\n    && X86_64_LIB=\"/usr/lib/unifi/lib/native/Linux/x86_64/libubnt_webrtc_jni.so\" \\\n    && echo \"27e786235fae4a052bc808c3c13dfc19  ${AARCH64_LIB}\" | md5sum --check \\\n    && echo \"657963ca47b185baf4eef8d90b70755b  ${X86_64_LIB}\" | md5sum --check \\\n    # Helper: verify byte sequence at offset in library matches expected hex string.\n    # On mismatch, emit a descriptive failure message and exit non-zero.\n    && verify_bytes() { \\\n        local lib=\"$1\" off=\"$2\" count=\"$3\" expect=\"$4\" label=\"$5\"; \\\n        local actual; \\\n        actual=\"$(dd if=\"${lib}\" bs=1 skip=$((off)) count=\"${count}\" 2>/dev/null | od -An -tx1 | tr -d ' \\n')\"; \\\n        if [ \"${actual}\" != \"${expect}\" ]; then \\\n            echo \"FAIL: ${label} at $(printf '0x%X' \"${off}\"): expected ${expect}, got ${actual}\" >&2; \\\n            return 1; \\\n        fi; \\\n    } \\\n    # Sanity-check target bytes before patching. Each offset must point to the\n    # opcode for \"mov type, #0x1a\" that precedes AppendFieldEmpty.\n    # aarch64: full 4-byte instruction 0x52800342 (mov w2, #0x1a), little-endian\n    # x86_64:  5-byte instruction 0xba 0x1a 0x00 0x00 0x00 (mov edx, 0x1a)\n    && verify_bytes \"${AARCH64_LIB}\" $((0x167214)) 4 \"42038052\" \"aarch64 pre-patch site 1\" \\\n    && verify_bytes \"${AARCH64_LIB}\" $((0x167D20)) 4 \"42038052\" \"aarch64 pre-patch site 2\" \\\n    && verify_bytes \"${X86_64_LIB}\"  $((0x114CB9)) 5 \"ba1a000000\" \"x86_64 pre-patch site 1\" \\\n    && verify_bytes \"${X86_64_LIB}\"  $((0x1157D7)) 5 \"ba1a000000\" \"x86_64 pre-patch site 2\" \\\n    # Apply the patches\n    && printf '\\x1f\\x20\\x03\\xd5' | dd of=\"${AARCH64_LIB}\" bs=1 seek=$((0x167214)) count=4 conv=notrunc 2>/dev/null \\\n    && printf '\\x1f\\x20\\x03\\xd5' | dd of=\"${AARCH64_LIB}\" bs=1 seek=$((0x167D20)) count=4 conv=notrunc 2>/dev/null \\\n    && printf '\\x90\\x90\\x90\\x90\\x90' | dd of=\"${X86_64_LIB}\" bs=1 seek=$((0x114CB9)) count=5 conv=notrunc 2>/dev/null \\\n    && printf '\\x90\\x90\\x90\\x90\\x90' | dd of=\"${X86_64_LIB}\" bs=1 seek=$((0x1157D7)) count=5 conv=notrunc 2>/dev/null \\\n    # Verify patches actually landed\n    && verify_bytes \"${AARCH64_LIB}\" $((0x167214)) 4 \"1f2003d5\" \"aarch64 post-patch site 1\" \\\n    && verify_bytes \"${AARCH64_LIB}\" $((0x167D20)) 4 \"1f2003d5\" \"aarch64 post-patch site 2\" \\\n    && verify_bytes \"${X86_64_LIB}\"  $((0x114CB9)) 5 \"9090909090\" \"x86_64 post-patch site 1\" \\\n    && verify_bytes \"${X86_64_LIB}\"  $((0x1157D7)) 5 \"9090909090\" \"x86_64 post-patch site 2\" \\\n    \\\n    && apt-get clean \\\n    && rm -fr \\\n        /tmp/* \\\n        /var/cache/* \\\n        /var/lib/apt/lists/* \\\n        /var/log/*.log \\\n        /var/log/apt\n\n# Copy root filesystem\nCOPY rootfs /\n\n# Health check\nHEALTHCHECK --start-period=5m \\\n    CMD curl --insecure --fail https://localhost:8443 || exit 1\n\n# Build arguments\nARG BUILD_ARCH\nARG BUILD_DATE\nARG BUILD_DESCRIPTION\nARG BUILD_NAME\nARG BUILD_REF\nARG BUILD_REPOSITORY\nARG BUILD_VERSION\n\n# Labels\nLABEL \\\n    io.hass.name=\"${BUILD_NAME}\" \\\n    io.hass.description=\"${BUILD_DESCRIPTION}\" \\\n    io.hass.arch=\"${BUILD_ARCH}\" \\\n    io.hass.type=\"addon\" \\\n    io.hass.version=${BUILD_VERSION} \\\n    maintainer=\"Franck Nijhof <opensource@frenck.dev>\" \\\n    org.opencontainers.image.title=\"${BUILD_NAME}\" \\\n    org.opencontainers.image.description=\"${BUILD_DESCRIPTION}\" \\\n    org.opencontainers.image.vendor=\"Home Assistant Community Apps\" \\\n    org.opencontainers.image.authors=\"Franck Nijhof <opensource@frenck.dev>\" \\\n    org.opencontainers.image.licenses=\"MIT\" \\\n    org.opencontainers.image.url=\"https://frenck.dev/home-assistant-apps\" \\\n    org.opencontainers.image.source=\"https://github.com/${BUILD_REPOSITORY}\" \\\n    org.opencontainers.image.documentation=\"https://github.com/${BUILD_REPOSITORY}/blob/main/README.md\" \\\n    org.opencontainers.image.created=${BUILD_DATE} \\\n    org.opencontainers.image.revision=${BUILD_REF} \\\n    org.opencontainers.image.version=${BUILD_VERSION}\n"
  },
  {
    "path": "unifi/build.yaml",
    "content": "---\nbuild_from:\n  aarch64: ghcr.io/hassio-addons/ubuntu-base:8.2.0\n  amd64: ghcr.io/hassio-addons/ubuntu-base:8.2.0\n"
  },
  {
    "path": "unifi/config.yaml",
    "content": "---\nname: UniFi Network Application\nversion: dev\nslug: unifi\ndescription: Manage your UniFi network using a web browser\nurl: https://github.com/hassio-addons/app-unifi\nwebui: https://[HOST]:[PORT:8443]\nstartup: services\narch:\n  - aarch64\n  - amd64\ninit: false\nbackup: cold\nmap:\n  - backup:rw\nports:\n  161/udp: null\n  1900/udp: null\n  3478/udp: 3478\n  5514/udp: 5514\n  6789/tcp: 6789\n  8080/tcp: 8080\n  8443/tcp: 8443\n  8843/tcp: 8843\n  8880/tcp: 8880\n  10001/udp: 10001\nports_description:\n  161/udp: Used for SNMP Access\n  1900/udp: L2 discoverable port\n  3478/udp: Used for STUN\n  5514/udp: Used for remote syslog debugging\n  6789/tcp: Used for UniFi mobile speed test\n  8080/tcp: Used for device and controller communication\n  8443/tcp: Used for controller web interface and API\n  8843/tcp: Used for HTTPS portal redirection\n  8880/tcp: Used for HTTP portal redirection\n  10001/udp: Used for device discovery\nhassio_api: true\nschema:\n  log_level: list(trace|debug|info|notice|warning|error|fatal)?\n  memory_max: int?\n  memory_init: int?\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/init-unifi/dependencies.d/base",
    "content": ""
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/init-unifi/run",
    "content": "#!/command/with-contenv bashio\n# shellcheck shell=bash\n# ==============================================================================\n# Home Assistant Community App: UniFi Network Application\n# Configures the UniFi Network Application\n# ==============================================================================\nreadonly KEYSTORE=\"/usr/lib/unifi/data/keystore\"\nreadonly properties=\"/data/unifi/data/system.properties\"\n\n# Ensures the data of the UniFi Network Application is store outside the container\nif ! bashio::fs.directory_exists '/data/unifi/data'; then\n    mkdir -p /data/unifi/data\nfi\nrm -fr /usr/lib/unifi/data\nln -s /data/unifi/data /usr/lib/unifi/data\n\nif ! bashio::fs.directory_exists '/backup/unifi'; then\n    mkdir -p /backup/unifi\nfi\nrm -fr /usr/lib/unifi/data/backup\nln -s /backup/unifi /usr/lib/unifi/data/backup\n\n# Enable small files on MongoDB\nif ! bashio::fs.file_exists \"${properties}\"; then\n    touch \"${properties}\"\n    echo \"unifi.db.extraargs=--smallfiles\" > \"${properties}\"\nfi\n\n#shellcheck disable=SC2016\nsed -i \\\n    '/^unifi.db.extraargs=/{h;s/=.*/=--smallfiles/};${x;/^$/{s//unifi.db.extraargs=--smallfiles/;H};x}' \\\n    \"${properties}\"\n\n# If there is no keystore yet, we are good to go\nif ! bashio::fs.file_exists \"${KEYSTORE}\"; then\n    # Prevent migration next time\n    touch /data/keystore_reset\n    bashio::exit.ok\nfi\n\n# If the keystore has never been reset, we are going to do that... once\n# This is a migration path, for people that previously had a custom SSL\n# certificate.\n# It will trigger a new self-signed certificate.\n# This logic can be removed and cleaned up at a later moment\nif ! bashio::fs.file_exists \"/data/keystore_reset\"; then\n    rm -f -r \"${KEYSTORE}\"\n    touch /data/keystore_reset\n    bashio::exit.ok\nfi\n\n# Suppress the \"Upgrade to UniFi OS Server\" nag — irrelevant on HA apps.\n# The modal in 10.2.105 has a bug: it reads async storage (Promise) synchronously,\n# so the dismiss state never resolves and the modal always shows.\n# Fix: patch the initial state from !s (always true) to !1 (always false).\nSWAI_JS=$(find /usr/lib/unifi/webapps/ROOT/app-unifi/react/js -name 'swai.*.js' 2>/dev/null | head -1)\nif [ -n \"${SWAI_JS}\" ] && grep -q 'useState)(!s)' \"${SWAI_JS}\"; then\n    sed -i 's/useState)(!s)/useState)(!1)/g' \"${SWAI_JS}\" 2>/dev/null \\\n        || bashio::log.warning \"Could not patch UOS upgrade nag\"\nfi\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/init-unifi/type",
    "content": "oneshot\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/init-unifi/up",
    "content": "/etc/s6-overlay/s6-rc.d/init-unifi/run\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/dependencies.d/init-unifi",
    "content": ""
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/finish",
    "content": "#!/command/with-contenv bashio\n# shellcheck shell=bash\n# ==============================================================================\n# Home Assistant Community App: UniFi Network Application\n# Take down the S6 supervision tree when UniFi Network Application fails\n# ==============================================================================\ndeclare exit_code\nreadonly exit_code_container=$(</run/s6-linux-init-container-results/exitcode)\nreadonly exit_code_service=\"${1}\"\nreadonly exit_code_signal=\"${2}\"\nreadonly service=\"UniFi Network Application\"\n\nbashio::log.info \\\n  \"Service ${service} exited with code ${exit_code_service}\" \\\n  \"(by signal ${exit_code_signal})\"\n\nif [[ \"${exit_code_service}\" -eq 256 ]]; then\n  if [[ \"${exit_code_container}\" -eq 0 ]]; then\n    echo $((128 + $exit_code_signal)) > /run/s6-linux-init-container-results/exitcode\n  fi\n  [[ \"${exit_code_signal}\" -eq 15 ]] && exec /run/s6/basedir/bin/halt\nelif [[ \"${exit_code_service}\" -ne 0 ]]; then\n  if [[ \"${exit_code_container}\" -eq 0 ]]; then\n    echo \"${exit_code_service}\" > /run/s6-linux-init-container-results/exitcode\n  fi\n  exec /run/s6/basedir/bin/halt\nfi\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run",
    "content": "#!/command/with-contenv bashio\n# shellcheck shell=bash\n# ==============================================================================\n# Home Assistant Community App: UniFi Network Application\n# Runs the UniFi Network Application\n# ==============================================================================\ndeclare -a options\ndeclare xmx\ndeclare xms\n\nbashio::log.info 'Now starting the UniFi Network Application...'\nbashio::log.info 'Note: No app specific logs beyond this point.'\n\nxmx=256\nif bashio::config.has_value 'memory_max'; then\n    xmx=$(bashio::config 'memory_max')\nfi\n\nxms=128\nif bashio::config.has_value 'memory_init'; then\n    xms=$(bashio::config 'memory_init')\nfi\n\noptions+=(\"-Xmx${xmx}m\")\noptions+=(\"-Xms${xms}m\")\noptions+=(-Dapple.awt.UIElement=true)\noptions+=(-Dfile.encoding=UTF-8)\noptions+=(-Djava.awt.headless=true)\noptions+=(-XX:+CrashOnOutOfMemoryError)\noptions+=(-XX:+ExitOnOutOfMemoryError)\noptions+=(-XX:+UseParallelGC)\noptions+=(--enable-native-access=ALL-UNNAMED)\noptions+=(--add-opens=java.base/java.io=ALL-UNNAMED)\noptions+=(--add-opens=java.base/java.lang=ALL-UNNAMED)\noptions+=(--add-opens=java.base/java.time=ALL-UNNAMED)\noptions+=(--add-opens=java.base/sun.security.util=ALL-UNNAMED)\noptions+=(--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED)\noptions+=(-jar /usr/lib/unifi/lib/ace.jar)\noptions+=(start)\n\n# Run UniFi\nexec /usr/bin/java \"${options[@]}\"\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/type",
    "content": "longrun\n"
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/init-unifi",
    "content": ""
  },
  {
    "path": "unifi/rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/unifi",
    "content": ""
  },
  {
    "path": "unifi/translations/en.yaml",
    "content": "---\nconfiguration:\n  log_level:\n    name: Log level\n    description: >-\n      Controls the level of log details the app provides.\n  memory_max:\n    name: Max Memory\n    description: >-\n      This option allows you to change the amount of memory the UniFi Network\n      Application is allowed to consume.\n  memory_init:\n    name: Initial Memory\n    description: >-\n      This option allows you to change the amount of memory the UniFi Network\n      Application will initially reserve/consume when starting.\nnetwork:\n  161/udp: Used for SNMP Access\n  1900/udp: L2 discoverable port\n  3478/udp: Used for STUN\n  5514/udp: Used for remote syslog debugging\n  6789/tcp: Used for UniFi mobile speed test\n  8080/tcp: Used for device and controller communication\n  8443/tcp: Used for controller web interface and API\n  8843/tcp: Used for HTTPS portal redirection\n  8880/tcp: Used for HTTP portal redirection\n  10001/udp: Used for device discovery\n"
  },
  {
    "path": "unifi/translations/fr.yaml",
    "content": "---\nconfiguration:\n  log_level:\n    name: Niveau de journalisation\n    description: >-\n      Contrôle le niveau de détails des journaux fournis par l'extension.\n  memory_max:\n    name: Mémoire maximale\n    description: >-\n      Cette option vous permet de modifier la quantité de mémoire que l'application UniFi Network est autorisée à consommer.\n  memory_init:\n    name: Mémoire initiale\n    description: >-\n      Cette option vous permet de modifier la quantité de mémoire que l'application UniFi Network réservera/consommera initialement au démarrage.\nnetwork:\n  161/udp: Utilisé pour l'accès SNMP\n  1900/udp: Port découvrable de niveau 2\n  3478/udp: Utilisé pour STUN\n  5514/udp: Utilisé pour le débogage distant via syslog\n  6789/tcp: Utilisé pour le test de vitesse UniFi Mobile\n  8080/tcp: Utilisé pour la communication entre appareils et contrôleur\n  8443/tcp: Utilisé pour l'interface web et l'API du contrôleur\n  8843/tcp: Utilisé pour la redirection de portail HTTPS\n  8880/tcp: Utilisé pour la redirection de portail HTTP\n  10001/udp: Utilisé pour la découverte d'appareils\n"
  },
  {
    "path": "unifi/translations/pl.yaml",
    "content": "---\nconfiguration:\n  log_level:\n    name: Log level\n    description: >-\n      Kontroluje poziom szczegółowości logów, jaki zapewnia dodatek.\n  memory_max:\n    name: Max Memory\n    description: >-\n      Ta opcja pozwala na zmianę ilości pamięci, którą może używać\n      aplikacja UniFi Network.\n  memory_init:\n    name: Initial Memory\n    description: >-\n      Ta opcja pozwala zmienić ilość pamięci, którą aplikacja UniFi\n      Network będzie rezerwować/używać przy starcie.\nnetwork:\n  161/udp: Używany dla dostępu po SNMP\n  1900/udp: L2 wykrywalny port\n  3478/udp: Używany dla STUN\n  5514/udp: Używany do zdalnego debugowania syslogu\n  6789/tcp: Używany do testu prędkości UniFi mobile\n  8080/tcp: Używany do komunikacji urządzeń z kontrolerem\n  8443/tcp: Używany do interfejsu webowego kontrolera i API\n  8843/tcp: Używany do przekierowania na portal po HTTPS\n  8880/tcp: Używany do przekierowania na portal po HTTP\n  10001/udp: Używany do wykrywania urządzeń\n"
  },
  {
    "path": "unifi/translations/pt-BR.yaml",
    "content": "---\nconfiguration:\n  log_level:\n    name: Detalhes do log\n    description: >-\n      Controla o nível de detalhes provido pelo app para o log.\n  memory_max:\n    name: Memória máxima\n    description: >-\n      Esta opção permite que você altere a quantidade máxima de memória\n      consumida pela UniFi Network Application.\n  memory_init:\n    name: Memória inicial\n    description: >-\n      Esta opção permite que você altere a quantidade máxima de memória\n      reservada/consumida na inicialização da UniFi Network Application.\nnetwork:\n  161/udp: Utilizado para acesso SNMP\n  1900/udp: L2 discoverable port\n  3478/udp: Utilizado para STUN\n  5514/udp: Utilizado para depuração remota do syslog\n  6789/tcp: Utilizado para teste de velocidade do app UniFi\n  8080/tcp: Utilizado para comunicação do controlador com dispositivos\n  8443/tcp: Utilizado para interface web e API do controlador\n  8843/tcp: Utilizado para redirecionamento HTTPS do portal\n  8880/tcp: Utilizado para redirecionamento HTTP do portal\n  10001/udp: Utilizado para descoberta de dispositivos\n"
  }
]