Read the statement by Michael Teeuw here.
Shutdown Magic Mirror with Home Assistant
-
@cowboysdude thank you for your answer however i do not understand how to translate this for my problem
hier is my solution that doesnt work for me:
# Example configuration.yaml entry switch: - platform: command_line switches: magic_mirror_rpi: command_on: "/usr/bin/curl -X GET http://192.168.178.45:8080/remote?action=SHUTDOWN" friendly_name: magic_mirror
-
I’m using my old Broadlink wifi smart plug. It has integration in HA, so the setup is “next next finish” style.
Automation turns it on at 6 AM and turns off at midnight. -
@deanonoire nice but how do you turn off your raspberry pi safely before you turn off electricity?
-
-
hey i solve everything very simple with:
https://github.com/daviptrs/hass-unified-remote
https://www.crackedconsole.com/2019/04/08/installing-unified-remote-for-raspberry-pi/ -
@jordes First part of the automation is ssh call for shutdown.
Finding a working script took me a while, but it works like a charm without any excessive MM modules.
All you need is to setup passwordless ssh connection between HA and MM.