# martingrosse/venus.dbus-go-e-controller-smartmeter architecture

> Architecture diagram of the GitHub repository martingrosse/venus.dbus-go-e-controller-smartmeter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/martingrosse/venus.dbus-go-e-controller-smartmeter
- Repository: https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter

## Overview

This is a small Venus OS service that presents go-e controller meter readings as a Victron grid-meter D-Bus service. Its main loop periodically requests controller data, maps phase and energy values into D-Bus paths, and advances UpdateIndex. The sampled Python file implements both polling and publication; the README documents daemon-tools startup and restart behavior. The launcher’s contents were not sampled, so its relationship to the Python process is shown as unverified.

Main entry points: [`dbus-go-e-controller-smartmeter.py`](https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/dbus-go-e-controller-smartmeter.py) (Meter poller), [`service/run`](https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/service/run) (Service launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Meter runtime"]
  node_poller["Meter poller"]
  node_gridbus["Grid D-Bus service"]
end

subgraph group_operation["Service operation"]
  node_launcher["Service launcher"]
end

node_controller["go-e controller"]
node_venus["Venus OS"]

node_poller -->|"requests status"| node_controller
node_poller -->|"updates readings"| node_gridbus
node_launcher -.->|"starts process"| node_poller
node_launcher -->|"runs under"| node_venus

click node_poller "https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/dbus-go-e-controller-smartmeter.py"
click node_gridbus "https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/dbus-go-e-controller-smartmeter.py"
click node_launcher "https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/service/run"

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_poller,node_gridbus toneBlue
class node_launcher toneAmber
class node_controller,node_venus toneIndigo
```

## Components

### Meter runtime

- [Meter poller](https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/dbus-go-e-controller-smartmeter.py): `dbus-go-e-controller-smartmeter.py`
- [Grid D-Bus service](https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/dbus-go-e-controller-smartmeter.py): `dbus-go-e-controller-smartmeter.py`

### Service operation

- [Service launcher](https://github.com/martingrosse/venus.dbus-go-e-controller-smartmeter/blob/master/service/run): `service/run`

### Other components

- **go-e controller**
- **Venus OS**

## Connections

- Meter poller → go-e controller: requests status (evidence: `dbus-go-e-controller-smartmeter.py`)
- Meter poller → Grid D-Bus service: updates readings (evidence: `dbus-go-e-controller-smartmeter.py`)
- Service launcher → Meter poller: starts process
- Service launcher → Venus OS: runs under (evidence: `README.md`)
