{"repo":"fphammerle/systemctl-mqtt","free":true,"listed":false,"github":"https://github.com/fphammerle/systemctl-mqtt","clone":"git clone https://github.com/fphammerle/systemctl-mqtt.git","description":"MQTT client triggering & reporting shutdown on systemd-based systems :house_with_garden: 🐳","language":"Python","stars":17,"topics":["internet-of-things","automation","mqtt","systemd","shutdown","poweroff","home-assistant"],"license":"GPL-3.0","category":"workflow-automation","readme_excerpt":"systemctl-mqtt MQTT client triggering & reporting shutdown on systemd-based systems Setup Via Pip On debian-based systems, a subset of dependencies can optionally be installed via: Follow instructions in systemd-user.service to start systemctl-mqtt automatically via systemd. Via Docker Compose 🐳 1. Clone this repository. 2. Load AppArmor profile: sudo apparmor parser ./docker-apparmor-profile 3. sudo docker-compose up --build Pre-built docker image are available at https://hub.docker.com/r/fphammerle/systemctl-mqtt/tags Annotation of signed tags docker/ contains docker image digests: https://github.com/fphammerle/systemctl-mqtt/tags Usage systemctl-mqtt --help explains all available command-line options / parameters. MQTT via TLS TLS is enabled by default. Run systemctl-mqtt --mqtt-disable-tls … to disable TLS. MQTT Authentication Schedule Poweroff Schedule poweroff by sending a MQTT message to topic systemctl/hostname/poweroff . Adapt delay via: systemctl-mqtt --poweroff-delay-seconds 60 … Shutdown Report systemctl-mqtt subscribes to logind's PrepareForShutdown signal. systemctl halt poweroff reboot triggers a message with payload true on topic systemctl/hostname/preparing-for-shutdown . Lock Screen Lock screen by sending a MQTT message to topic systemctl/hostname/lock-all-sessions . Suspend Monitor ActiveState of System Units enables reports on topic systemctl/[hostname]/unit/system/[unit name]/active-state . Control System Units enables that a system unit can be started, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fphammerle","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fphammerle/systemctl-mqtt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}