Magic Mirror addon for home assistant

I think the developer has to make an update

Figured it out: you can install it from the EDGE repository of community add-ons. Fair warning, I’m already hitting bugs to report so it’s not 100% but pretty dang close. The community add-on github repo looks to be where current work is being done, but who knows when it’ll get to stable release.

Yes, but I couldn’t install any module, and there are no config file, do you managed to install modules?

After installing the add-on I was able to get MM modules installed (there is a config file, it’s in a magicmirror folder in your config folder), but my bugs center around the add-on container not restarting nginx properly so I’m not able to see the updates yet. Fwiw I got to “hello world”, watched in the logs as the add-on installed the modules I specified in the config, and will just have to wait for the restart bug to get worked out or I figure out a workaround. But it does look like the wheels are in motion.

This addon creates a magicmirror folder, what is the location of the community edge addon,?


for completeness, there’s also

Thank you but you don’t understand my question, i got magic mirror addon from the edge repository, you said there was a magicmirror folder where you can edit the config file, this folder is in a different location to the the old magicmirror addon creates ?

Would also be keen to know where that config folder is created for the edge add-on

To get this working the long lived toked has to be handed over as environmental variable. For this purpose I created a magic mirror.config.js in the same folder as the mm.sh

module.exports = {
  apps : [
      {
        name: "MagicMirror",
        script: "./mm.sh",
        watch: true,
        env: {
          "HASSIO_TOKEN": „XXXXXXXXXXXX“
        }
      }
  ]
}
1 Like

In the absense of @sytone I’ve fixed what was causing the error, it was an easy fix, please try my repository. I’ve also included the pull-request and added extra info where needed.

@sytone, let me know if you want to receive a pull-request with my changes.

Any suggestions for improving the README.md are welcome, I’m not using this add-on (yet).

"What I wanted was to show a camera feed in the middle of the mirror when I would say “hey google show outside camera”
Any ideas?

here my HA Config for my magic mirror

#=======================================================================
# Do a FIND REPLACE
# MMIPADDRESS with the the magicMirror ipaddress ???.???.???.???
#=======================================================================
homeassistant:
  customize:
    package.node_anchors:
     customize: &customize
       package: 'Magic Mirror' 

    sensor.mm_display:
      icon: mdi:monitor
      friendly_name: Mirror Display
    switch.mm_display:
      icon: mdi:monitor
      friendly_name: Mirror Display
    script.mm_reboot:
      icon: mdi:lock-reset
    script.mm_shutdown:
      icon: mdi:power

sensor:
  - platform: rest
    resource: http://MMIPADDRESS:8080/remote?action=MONITORSTATUS
    name: mm display
    value_template: '{{ value_json.monitor }}'
#=======================================================================
#
#=======================================================================
switch:
  - platform: command_line
    switches:
      mm_display:
        command_on: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITORON'"
        command_off: "curl -s 'http://MMIPADDRESS:8080/remote?action=MONITOROFF'"

#=======================================================================
#
#=======================================================================
shell_command:
  mm_reboot: "curl -s 'http://MMIPADDRESS:8080/remote?action=REBOOT'"
  mm_shutdown: "curl -s 'http://MMIPADDRESS:8080/remote?action=SHUTDOWN'"
#=======================================================================
#
#=======================================================================
script:
  mm_reboot:
    alias: Magic Mirror Reboot
    sequence:
    - data: {}
      service: shell_command.mm_reboot
  mm_shutdown:
    alias: Magic Mirror ShutDown
    sequence:
    - data: {}
      service: shell_command.mm_shutdown   

I just put it a Packages folder.

he is the lovelace look

image

1 Like

Do you use “magic mirror add on”?

No

But looking at also righting my own add on I can read the api and get a list of modules loaded my python is Google reading

Thanks for the response
Can this integrate Magic Mirror Modules?
eg: Module MM-Clock

Hi there,

I added the Magic Mirror git-repo to my hass.io. After adding, nothing happened… nothing magic mirror related showed up.

But, the logging contains this message:
19-09-01 14:18:30 WARNING (MainThread) [hassio.store.data] Can’t read /data/addons/git/64f57845/magic_mirror/config.json: required key not provided @ data[‘arch’]. Got None

Could someone tell me how to deinstall magic mirror, please ?

Sorry, I had to move the improved copy of the repository, it is now here:

Don’t worry, nothing was installed.
You can just remove the repo and try again with my repo.

hi guys.

I have a question regarding lovelace and magicmirror. Is it possible to show custom cards of lovelace on magicmirror? has anyone tried it?

thanks.

hi i get this error, anyone with this problem?

[INFO] Start serveronly magic mirror process
--------------------------------------------------------------------------------
Starting MagicMirror: v2.8.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node_helper'
Loading module helpers ...
No helper found for module: alert.
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'node_helper'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/opt/magic_mirror/modules/default/updatenotification/node_helper.js:6:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues