# diyhue/hassio-addon architecture

> Architecture diagram of the GitHub repository diyhue/hassio-addon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/diyhue/hassio-addon
- Repository: https://github.com/diyhue/hassio-addon

## Overview

This repository packages diyHue as a Home Assistant add-on; it is not the implementation of diyHue’s light and sensor ecosystem. The documented user workflow is to add the repository in Home Assistant Supervisor and run diyHue as an add-on. The tree includes add-on configuration and startup files, but no source excerpts show how they interact, so the graph limits implementation detail to the documented workflow.

Main entry points: [`diyhue/config.json`](https://github.com/diyhue/hassio-addon/blob/master/diyhue/config.json) (Add-on package), [`diyhue`](https://github.com/diyhue/hassio-addon/tree/master/diyhue) (diyHue runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_addon["Home Assistant add-on"]
  node_addon_package["Add-on package<br/>[config.json]"]
end

subgraph group_service["diyHue service"]
  node_diyhue["diyHue runtime"]
end

node_supervisor(("Home Assistant Supervisor"))

node_supervisor -->|"installs repository"| node_addon_package
node_addon_package -->|"runs as add-on"| node_diyhue

click node_addon_package "https://github.com/diyhue/hassio-addon/blob/master/diyhue/config.json"
click node_diyhue "https://github.com/diyhue/hassio-addon/tree/master/diyhue"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_addon_package toneBlue
class node_diyhue toneAmber
class node_supervisor toneIndigo
```

## Components

### Home Assistant add-on

- [Add-on package](https://github.com/diyhue/hassio-addon/blob/master/diyhue/config.json): `diyhue/config.json`

### diyHue service

- [diyHue runtime](https://github.com/diyhue/hassio-addon/tree/master/diyhue): `diyhue`

### Other components

- **Home Assistant Supervisor**

## Connections

- Home Assistant Supervisor → Add-on package: installs repository (evidence: `README.md`)
- Add-on package → diyHue runtime: runs as add-on (evidence: `README.md`)
