• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Shutdown Magic Mirror with Home Assistant

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 1.5k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jordes @cowboysdude
    last edited by jordes Apr 16, 2021, 9:05 AM Apr 16, 2021, 9:05 AM

    @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
    
    C 1 Reply Last reply Apr 16, 2021, 12:39 PM Reply Quote 0
    • D Offline
      DeanoNoire
      last edited by Apr 16, 2021, 10:40 AM

      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.

      J 1 Reply Last reply Apr 16, 2021, 11:22 AM Reply Quote 0
      • J Offline
        jordes @DeanoNoire
        last edited by Apr 16, 2021, 11:22 AM

        @deanonoire nice but how do you turn off your raspberry pi safely before you turn off electricity?

        D 1 Reply Last reply Apr 28, 2021, 7:23 PM Reply Quote 0
        • C Offline
          cowboysdude Module Developer @jordes
          last edited by cowboysdude Apr 16, 2021, 12:39 PM Apr 16, 2021, 12:39 PM

          @jordes

          Look here

          https://community.home-assistant.io/t/ssh-and-raspberry-pi/240832/2

          J 1 Reply Last reply Apr 16, 2021, 7:09 PM Reply Quote 0
          • J Offline
            jordes @cowboysdude
            last edited by Apr 16, 2021, 7:09 PM

            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/

            1 Reply Last reply Reply Quote 0
            • D Offline
              DeanoNoire @jordes
              last edited by Apr 28, 2021, 7:23 PM

              @jordes First part of the automation is ssh call for shutdown.
              81b2715c-7ddc-4528-9d6c-c60ea332f0ec-image.png

              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.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy