Mac2MQTT
Puts your Mac in Home Assistant over MQTT from the menu bar, with media and system controls.

About
A macOS menu bar app drawn with MyGo's native UI, with no web view, that brings a Mac into Home Assistant over MQTT; discovery creates the device on its own. It reports network, power, screen lock, camera and microphone use, volume and what is playing, and takes commands for playback, volume, locking and sleep, notifications, speech and Shortcuts. It needs macOS 13 or later.