Home Assistant integration for MeshCentral #7770
Replies: 5 comments 13 replies
|
thats amazing! EDIT: shared on discord announcements :) EDIT2: please can you share screenshots or video in the repo or here for others to see 👍 |
|
@andlo - Oh! I am going to be trying this for sure on my servers. This is very cool. I was wondering if I could have all of MeshCentral be an add-in to Home Assistant at some point running as a Docker contained within HA with the config file being exposed for HA to setup. Anyway, congratulation on this. I am going to be looking at it for sure. |
|
This is just incredible... But need to figure out what I'm missing because I constantly get an auth failure when trying to set up this integration. Setup: |
|
Andreas,
I found that it actually wasn't working, but I've been able to massage the
code to get it to work in my environment. I'll move this conversation and
my findings over to the integration github.
Thanks,
-Mike
…On Sat, May 30, 2026 at 7:50 AM Andreas Lorensen ***@***.***> wrote:
Hi @michaelmikelas <https://github.com/michaelmikelas>,
Glad the authentication is working! The recurring WebSocket request you
see in the MeshCentral trace is the integration keeping the connection
alive — that part is working correctly.
For devices not showing up, the most common cause is that debug logging
isn't fully enabled. Please make sure you have this in your
configuration.yaml:
logger:
default: warning
logs:
custom_components.meshcentral: debug
After restarting HA, you should see log entries showing what data is being
received from MeshCentral. Look for lines mentioning meshes and nodes —
if those responses are empty, the integration has nothing to create
entities from.
A few things to check:
1. *Mesh group permissions* — Does the account you're using have
access to devices in the MeshCentral web UI? The integration only sees what
your user account has access to.
2. *Domain* — If your MeshCentral uses multiple domains, make sure the
account has devices in the default domain.
3. *Debug log output* — If you can share the relevant lines from the
HA log after enabling debug, I can help narrow it down further.
Feel free to open an issue on the repo if you prefer:
https://github.com/andlo/ha-meshcentral/issues
—
Reply to this email directly, view it on GitHub
<#7770?email_source=notifications&email_token=A56MF56PYSWR452ICVULGZD45LDIZA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZRGE2TMOBUUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17115684>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A56MF5ZUIMKF4ZB652QSD2L45LDIZAVCNFSM6AAAAACYHAOSZKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTOMJRGU3DQNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Update for anyone following this thread: Both projects have come a long way since April — thanks in large part to the feedback and testing here. ha-meshcentral-addon is now at a solid place: pretty much every setting is configurable from the add-on's GUI (no more editing config.json by hand) — domains, certUrl, data paths, backups, session recordings, reverse proxy, the works. Big thanks to @si458 for the early config.json corrections (cleanErrorLog, mstsc, the data-folder paths) — those went straight into the add-on. ha-meshcentral (the integration) now creates entities reliably and they actually work end-to-end: online/offline, power control, security sensors, device tracking, and running remote commands (including a full console/PowerShell command service). Thanks to @michaelmikelas for patiently working through an auth issue with LoginKey (3FA) setups and multi-domain configs with me — that turned into a proper fix rather than a workaround. And thanks to @sammyke007 for pushing for a dedicated "run console command" service, which is now in. @Ylianst — still very much keeping your original idea in mind (MeshCentral itself running as a Docker add-on with config exposed to HA). The add-on already runs MeshCentral in a container within HAOS, so a chunk of that groundwork is there. Repos, if anyone wants to try the latest: github.com/andlo/ha-meshcentral-addon Feedback and issues always welcome. |



Uh oh!
There was an error while loading. Please reload this page.
Hi,
I've built a Home Assistant custom integration that connects to MeshCentral via the WebSocket API (/control.ashx).
It provides real-time device monitoring and control directly from Home Assistant:
Online/offline status via nodeconnect events (real-time push)
Wake-on-LAN using the wakedevices action
Power control (reboot, shutdown, sleep, hibernate) via poweraction
Windows Security Center status (antivirus, firewall, Defender)
Hardware details via getsysinfo
One thing worth noting for others: login with 2FA accounts works perfectly using Login Tokens (~t:... username format). Also, for tlsOffload: true setups, the integration connects via plain HTTP/WS even on port 443.
The integration is open source and installable via HACS:
https://github.com/andlo/ha-meshcentral
Thanks for building such a great platform — the WebSocket API made this integration a pleasure to build.
All reactions