You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All MeshCentral settings are now configurable directly from the
Home Assistant add-on Configuration tab — no manual JSON editing needed.
New options: server_mode (lan/wan/hybrid), domain_title, domain_title2,
new_accounts, session_key, session_time, tls_offload, trusted_proxy,
user_allowed_ip, user_blocked_ip, agent_allowed_ip, agent_blocked_ip,
web_rtc, compression, self_update, maintenance_mode, smtp_enabled +
full SMTP configuration (host, port, from, user, pass, tls).
run.sh now regenerates config.json on every start from HA options.
README updated with full configuration reference tables.
Before starting the add-on for the first time, you need to allow account creation:
31
+
All MeshCentral settings are available directly in the add-on **Configuration** tab in Home Assistant — no need to edit any JSON files manually.
32
32
33
-
1. Go to the add-on **Configuration** tab
34
-
2. Note the `data_path` (default: `/data/meshcentral-data`)
35
-
3. Start the add-on
36
-
4. Open the MeshCentral web interface (see **Network** below)
37
-
5. Create your admin account
38
-
6.**Important:** After creating your account, stop the add-on and edit `/data/meshcentral-data/config.json` — set `"newAccounts": false` to prevent others from registering
33
+
See the full [Configuration reference](#configuration) below.
39
34
40
-
### Step 3 — Install the HA integration
35
+
### Step 3 — Create your admin account
36
+
37
+
1. In the add-on **Configuration** tab, temporarily set `new_accounts` to `true`
38
+
2. Start the add-on
39
+
3. Open the MeshCentral web interface and create your admin account
40
+
4.**Important:** Set `new_accounts` back to `false` and restart the add-on
41
+
42
+
### Step 4 — Install the HA integration
41
43
42
44
Install the [MeshCentral integration](https://github.com/andlo/ha-meshcentral) via HACS to connect HA entities to your MeshCentral server.
43
45
@@ -47,9 +49,7 @@ Use these settings in the integration:
47
49
-**Use SSL:** off (the add-on uses tlsOffload — HA handles TLS)
48
50
-**Verify SSL:** off
49
51
50
-
### Step 4 — Install agents on your computers
51
-
52
-
Download and install the MeshCentral agent on each computer you want to manage:
52
+
### Step 5 — Install agents on your computers
53
53
54
54
1. Log in to MeshCentral web interface
55
55
2. Go to **My Devices → Add Device**
@@ -59,67 +59,122 @@ Download and install the MeshCentral agent on each computer you want to manage:
59
59
60
60
### Local network only (simplest)
61
61
62
-
The add-on is accessible on your local network at:
63
-
`http://homeassistant.local:4430`
64
-
65
-
Agents on the same network will connect automatically.
62
+
The add-on is accessible on your local network at `http://homeassistant.local:4430`. Set `server_mode` to `lan`.
66
63
67
64
### External access via Nabu Casa (recommended)
68
65
69
66
If you have [Nabu Casa](https://www.nabucasa.com/) (Home Assistant Cloud):
70
67
71
68
1. Enable **Remote Access** in Nabu Casa
72
-
2.Your MeshCentral will be accessible at your Nabu Casa URL
73
-
3. Agents outside your home network can connect via the Nabu Casa URL
69
+
2.Set `cert_url` to your Nabu Casa URL
70
+
3. Agents outside your home network can now connect
74
71
75
72
### External access via Cloudflare Tunnel (free, no port-forwarding)
76
73
77
74
1. Set up a [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/) pointing to `http://homeassistant.local:4430`
78
-
2.In MeshCentral's config.json, set your tunnel URL as the `hostname`
75
+
2.Set `server_mode` to `wan` and `cert_url` to your tunnel URL
79
76
3. Agents anywhere in the world can now connect
80
77
81
78
### Port forwarding (traditional)
82
79
83
-
Forward port `4430` on your router to your HA host IP.
80
+
Forward port `4430` on your router to your HA host IP. Set `server_mode` to `wan` and `cert_url` to your external URL.
84
81
85
-
## Data storage
82
+
## Configuration
86
83
87
-
All MeshCentral data is kept under the configured `data_path`:
84
+
All settings are configured via the add-on **Configuration** tab in Home Assistant. The add-on generates MeshCentral's `config.json` automatically on every start based on these settings.
85
+
86
+
### General
87
+
88
+
| Option | Default | Description |
89
+
|--------|---------|-------------|
90
+
|`data_path`|`/data/meshcentral-data`| Where MeshCentral stores its database, files and backups |
91
+
|`hostname`|*(auto)*| Public hostname for agent connections. Leave empty to use the HA hostname |
92
+
|`cert_url`|*(empty)*|**Required for external agent connections.** Full external URL, e.g. `https://mesh.yourdomain.com`|
|`smtp_host`|*(empty)*| SMTP server hostname, e.g. `smtp.gmail.com`|
132
+
|`smtp_port`|`587`| SMTP port. Use `587` for STARTTLS or `465` for SSL |
133
+
|`smtp_from`|*(empty)*| Sender email address |
134
+
|`smtp_user`|*(empty)*| SMTP username |
135
+
|`smtp_pass`|*(empty)*| SMTP password |
136
+
|`smtp_tls`|`true`| Enable TLS for the SMTP connection |
88
137
89
-
FolderContents`data_path/`MeshCentral database and config`data_path/meshcentral-files/`Device files`data_path/meshcentral-backups/`Automatic backups`data_path/meshcentral-recordings/`Session recordings
138
+
## Ports
90
139
91
-
All folders are included in HA's standard backup.
140
+
| Port | Description |
141
+
|------|-------------|
142
+
|`4430/tcp`| MeshCentral web interface (HTTPS) |
143
+
|`4433/tcp`| Intel AMT / MPS port |
92
144
93
-
> **Note:** The `meshcentral-web` folder cannot be redirected (MeshCentral limitation) and will be created next to the add-on installation.
145
+
## Data storage
94
146
95
-
## Configuration
147
+
All MeshCentral data is kept under `data_path`:
96
148
97
-
OptionDefaultDescription`data_path/data/meshcentral-data`Where MeshCentral stores its data`hostname`*(auto*)Public hostname for agent connections — set this to your external URL`cert_url`*(empty*)**Required for external agent connections** — set to your full external URL (e.g. `https://mesh.yourdomain.com`). MeshCentral uses this to verify agent connections. Without this, agents outside your local network cannot connect.`allow_device_sharingfalse`Allow device sharing with other users
> **Note:** The `meshcentral-web` folder cannot be redirected (MeshCentral limitation) and will be created next to the add-on installation.
103
159
104
160
## Updating MeshCentral
105
161
106
162
The add-on bundles a specific version of MeshCentral. When a new version of the add-on is released, update it via the HA add-on store. Your data and agent connections are preserved across updates.
107
163
108
-
## Backup
109
-
110
-
MeshCentral data is stored in `/data/meshcentral-data` which is included in HA's standard backup. All device connections, users, and settings are backed up automatically.
111
-
112
164
## Troubleshooting
113
165
114
166
**Agents can't connect from outside my network:**
115
-
Set the `hostname` option to your external URL (Cloudflare tunnel, DuckDNS, Nabu Casa URL).
167
+
Set `server_mode` to `wan` or `hybrid`, and set `cert_url` to your external URL (Cloudflare tunnel, DuckDNS, Nabu Casa URL).
116
168
117
169
**Can't create account:**
118
-
Temporarily set `"newAccounts": true` in `/data/meshcentral-data/config.json` and restart the add-on. Remember to set it back to `false` after.
170
+
Temporarily set `new_accounts` to `true` in the add-on configuration and restart. Remember to set it back to `false` after creating your account.
119
171
120
172
**MeshCentral integration shows "invalid_auth":**
121
173
If your account has 2FA enabled, create a Login Token in MeshCentral → My Account → Login Tokens and use those credentials in the HA integration.
122
174
175
+
**Settings not taking effect:**
176
+
The add-on regenerates `config.json` on every start from the HA configuration. Restart the add-on after changing any setting.
177
+
123
178
## Related
124
179
125
180
-[MeshCentral HA Integration](https://github.com/andlo/ha-meshcentral) — HACS integration for HA entities
0 commit comments