Launcher daemon for MacOS. Needs to be copied to /Library/LaunchDaemons/com.jamiebegin.metrics2mqtt.service.plist
Replace xxx's with your hostname (see note below), broker, username and password
Make sure permissions are correct:
sudo chmod 600 /Library/LaunchDaemons/com.jamiebegin.metrics2mqtt.service.plist
Test with:
sudo launchctl load /Library/LaunchDaemons/com.jamiebegin.metrics2mqtt.service.plist
then test it's running:
sudo launchctl list | grep com.jamiebegin.metrics2mqtt.service
You should see something like:
1265 0 com.jamiebegin.metrics2mqtt.service
If not, debug with:
sudo tail -n 1000 /var/log/system.log|grep com.jamiebegin.metrics2mqtt.service
NOTE: homeassistant is picky about naming in sensors. If your machine has .local, apostrophes or hyphens in the name, it won't be discovered. Message Home Assistant if that's an issue for you!
Launcher daemon for MacOS. Needs to be copied to /Library/LaunchDaemons/com.jamiebegin.metrics2mqtt.service.plist
NOTE: homeassistant is picky about naming in sensors. If your machine has .local, apostrophes or hyphens in the name, it won't be discovered. Message Home Assistant if that's an issue for you!