# chiefmate8/esp32-marantz-pm6007-controller architecture

> Architecture diagram of the GitHub repository chiefmate8/esp32-marantz-pm6007-controller, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chiefmate8/esp32-marantz-pm6007-controller
- Repository: https://github.com/chiefmate8/esp32-marantz-pm6007-controller

## Overview

This repository configures a one-way network remote for a Marantz PM6007. The main workflow is a phone page or Alexa issuing controls through Home Assistant, which communicates with the ESP32; the ESPHome configuration sends RC-5 signals to the amplifier. The README also describes Home Assistant buttons and Alexa exposure. The source excerpts are unavailable, so relationships are based on the README; no code-capture implementation or state feedback is represented.

Main entry points: [`web-remote/PM6007_Remote.html`](https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/web-remote/PM6007_Remote.html) (Phone remote page), [`esphome/amp.yaml`](https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/esphome/amp.yaml) (ESPHome configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_remote["Remote interface"]
  node_phone["Phone remote page<br/>[PM6007_Remote.html]"]
end

subgraph group_automation["Home automation"]
end

subgraph group_device["Device control"]
  node_espconfig["ESPHome configuration<br/>[amp.yaml]"]
  node_esp32{{"ESP32 controller"}}
end

node_ha["Home Assistant"]
node_alexa(("Alexa"))
node_amp["Marantz PM6007"]

node_phone -->|"REST API"| node_ha
node_alexa -->|"Emulated Hue"| node_ha
node_ha -->|"ESPHome API"| node_esp32
node_espconfig -->|"configures"| node_esp32
node_esp32 -->|"sends RC-5"| node_amp

click node_phone "https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/web-remote/PM6007_Remote.html"
click node_espconfig "https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/esphome/amp.yaml"

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_phone toneBlue
class node_espconfig,node_esp32 toneMint
class node_ha,node_alexa,node_amp toneIndigo
```

## Components

### Remote interface

- [Phone remote page](https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/web-remote/PM6007_Remote.html): `web-remote/PM6007_Remote.html`

### Device control

- [ESPHome configuration](https://github.com/chiefmate8/esp32-marantz-pm6007-controller/blob/main/esphome/amp.yaml): `esphome/amp.yaml`
- **ESP32 controller**

### Other components

- **Home Assistant**
- **Alexa**
- **Marantz PM6007**

## Connections

- Phone remote page → Home Assistant: REST API (evidence: `README.md`)
- Alexa → Home Assistant: Emulated Hue (evidence: `README.md`)
- Home Assistant → ESP32 controller: ESPHome API (evidence: `README.md`)
- ESPHome configuration → ESP32 controller: configures (evidence: `README.md`)
- ESP32 controller → Marantz PM6007: sends RC-5 (evidence: `README.md`)
