Skip to content

Feature/addon root layout - #179

Open
orren5 wants to merge 5 commits into
Nickduino:masterfrom
orren5:feature/addon-root-layout
Open

Feature/addon root layout#179
orren5 wants to merge 5 commits into
Nickduino:masterfrom
orren5:feature/addon-root-layout

Conversation

@orren5

@orren5 orren5 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Make repo discoverable as an HA add-on/app and HACS repository

Home Assistant's Supervisor only discovers add-ons ("apps") and HACS only discovers integrations when they live in top-level folders with a repository.yaml present — this repo had both nested one level deeper, which silently broke discovery.

  • Moved Home Assistant/addon/pi_somfy/somfy-ha-addon/ (repo root).
  • Moved Home Assistant/custom_components/pi_somfy/custom_components/pi_somfy/ (repo root) — required by HACS's integration structure check.
  • Added repository.yaml at the repo root — required by Supervisor to recognize this as a valid app/add-on repository at all.
  • Added a one-click my.home-assistant.io HACS badge to README.md, and updated install instructions/paths to match the new layout.

Verified locally: adding this repo (pinned to this branch) in Settings → Add-ons → Add-on Store → Repositories now succeeds and the add-on shows up.

No functional/runtime changes — file moves and doc/metadata only.

orren5 added 4 commits August 12, 2026 10:08
Home Assistant's Supervisor only discovers add-ons in top-level
directories of a repository (each containing a config.yaml). Nested
under "Home Assistant/addon/pi_somfy", this add-on was invisible when
adding this repo as an add-on repository via URL — only a manual
folder copy worked.

Move it to somfy-ha-addon/ at the root and update the README/build.sh
references accordingly. The add-on's own slug (pi_somfy) is unrelated
to the folder name and is left unchanged.
HACS requires an "integration" repository to have custom_components/<domain>
directly at the repo root (unless zip_release/content_in_root is configured
in hacs.json, which this repo doesn't use). Nested under
"Home Assistant/custom_components/pi_somfy", the structure fails HACS's
compliance check — reported as "Repository structure for v3.2 is not
compliant" when adding the repo.

Move it to custom_components/pi_somfy/ and update the README reference.

Note: this only fixes the layout going forward. The v3.2 tag already
points at the old nested structure, so a new release will need to be
cut after this merges for HACS to see a compliant version.
One-click "Open your Home Assistant instance" badge for adding this
repo as a HACS custom repository, alongside the existing manual steps.
Home Assistant Supervisor (add-ons, now called "apps") requires a
repository.yaml at the repo root to recognize it as a valid app
repository at all — independent of whether an app folder exists at
the root. Without it, adding this repo's URL in Settings → Add-ons →
Add-on Store → Repositories fails with "not a valid app repository",
even once somfy-ha-addon/ is present at the root.
@orren5 orren5 mentioned this pull request Aug 16, 2026
Brings this branch's somfy-ha-addon/ up to date with all of
feature/mqtt-ha-config's work, since the two are meant to merge
together (this branch gets the add-on discoverable via the standard
repository install flow; the other adds MQTT auto-discovery support).

- Optional MQTT bridge via a new enable_mqtt toggle, pulling broker
  details from the Supervisor mqtt service (e.g. Mosquitto add-on)
  rather than asking the user to re-enter them.
- EnableDiscovery + missing-[MQTT]-section guard, translations/en.yaml
  labels for every option, and a DOCS.md note on external brokers
  (review feedback from PR Nickduino#178).
- Fixed config.yaml's version being "3.0.0", which isn't a real
  upstream Pi-Somfy tag and broke the Dockerfile's source clone.
  build.sh now reads the version from config.yaml instead of a second
  hardcoded copy.
- CHANGELOG.md rewritten with real, user-facing release notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant