Help with magicMirror and HA

Dear,
Someone who uses both could be kind enough to try to help me.

I tried to use two modules, no success in both. Could someone help me by indicating a module that still works and help configure … I tried so many things.

Please, if you use it and have how to help me I will be grateful.

MMM-homeassistant-sensors is what I’m using, though I don’t display the sensor on the screen, I use it “as a trigger” to change the profile (which chances the profile picture which is my CCTV feed)
Basically when motion is detected on the doorbell, it displays the doorbell CCTV feed as background, otherwise displays a different CCTV feed

You could kindly help me out !! Now I would like to display some sensors or data in my MM. But I can’t make it work …

Can you share your config.js?
(make sure you blank out tokens, api keys etc)

My config for the HA part looks like this:

			{
				module: 'MMM-homeassistant-sensors',
				position: 'bottom_left',
				config: {
					host: "192.168.0.23",
					port: "8123",
					https: false,
					token: "LONG_LIVE_TOKEN_GOES_HERE",
					prettyName: false,
					stripName: false,
					debuglogging: false,
					values: [{
							sensor: "binary_sensor.doorbell_motion",
							icons: [{
									"default": "cctv"
								}
							]
						},
						{
							sensor: "image_processing.tensorflow_doorbell",
							icons: [{
									"default": "clipboard-account"
								}
							]
						}
					]

				}
			}
1 Like

boy, talking to you more calmly. I think I got it! Thank you for supporting me.

1 Like

I am having this error. My MM gets all modules with msg loading. And in the shell I have this output.

pi@raspberrypi:~/MagicMirror $ npm start

> [email protected] start /home/pi/MagicMirror
> ./run-start.sh

[19:57:53.065] [LOG] Starting MagicMirror: v2.10.0
[19:57:53.107] [LOG] Loading config ...
[19:57:53.130] [LOG] Loading module helpers ...
[19:57:53.141] [LOG] No helper found for module: alert.
[19:57:53.416] [LOG] Initializing new module helper ...
[19:57:53.421] [LOG] Module helper loaded: updatenotification
[19:57:53.424] [LOG] No helper found for module: clock.
[19:57:55.473] [LOG] Initializing new module helper ...
[19:57:55.478] [LOG] Module helper loaded: MMM-Screencast
[19:57:57.717] [LOG] Initializing new module helper ...
[19:57:57.720] [LOG] Module helper loaded: calendar
[19:57:57.723] [LOG] No helper found for module: compliments.
[19:57:59.531] [LOG] Initializing new module helper ...
[19:57:59.535] [LOG] Module helper loaded: MMM-DarkSkyForecast
[19:57:59.742] [LOG] Initializing new module helper ...
[19:57:59.747] [LOG] Module helper loaded: newsfeed
[19:57:59.761] [LOG] Initializing new module helper ...
[19:57:59.765] [LOG] Module helper loaded: MMM-homeassistant-sensors
[19:57:59.770] [LOG] All module helpers loaded.
[19:57:59.777] [LOG] Starting server on port 8080 ...
[19:58:00.071] [LOG] Server started ...
[19:58:00.079] [LOG] Connecting socket for: updatenotification
[19:58:00.089] [LOG] Connecting socket for: MMM-Screencast
[19:58:00.095] [LOG] Connecting socket for: calendar
[19:58:00.102] [LOG] Starting node helper for: calendar
[19:58:00.109] [LOG] Connecting socket for: MMM-DarkSkyForecast
[19:58:00.116] [LOG] ====================== Starting node_helper for module [MMM-DarkSkyForecast]
[19:58:00.123] [LOG] Connecting socket for: newsfeed
[19:58:00.130] [LOG] Starting module: newsfeed
[19:58:00.138] [LOG] Connecting socket for: MMM-homeassistant-sensors
[19:58:00.147] [LOG] Sockets connected & modules started ...
[19:58:00.153] [LOG]
Ready to go! Please point your browser to: http://localhost:8080
Starting chromium browser now, have patience, it takes a minute
 --disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
Abrindo em uma sessão de navegador existente.
pi@raspberrypi:~/MagicMirror $ events.js:174
      throw er; // Unhandled 'error' event
      ^

Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:411:19)
    at writeOrBuffer (_stream_writable.js:399:5)
    at Socket.Writable.write (_stream_writable.js:299:11)
    at Console.con.(anonymous function) [as log] (/home/pi/MagicMirror/node_modules/console-stamp/main.js:150:46)
    at process. (/home/pi/MagicMirror/js/app.js:40:10)
    at process.emit (events.js:198:13)
    at process._fatalException (internal/bootstrap/node.js:497:27)
^C
pi@raspberrypi:~/MagicMirror $

my config.js

 {
            module: "newsfeed",
            position: "bottom_bar",
            config: {
                feeds: [
                    {
                        title: "Noticias R7",
                        url: "https://noticias.r7.com/rio-de-janeiro/feed.xml"
                    }
                ],
                showSourceTitle: true,
                showPublishDate: true,
                broadcastNewsFeeds: true,
                broadcastNewsUpdates: true
            }
        },
        {
           module: 'MMM-homeassistant-sensors',
           position: 'top_left',
           config: {
                   host: "192.168.1.216",
                   port: "8123",
                   https: false,
                   token: ****",
                   prettyName: false,
                   stripName: false,
                   debuglogging: false,
                   values: [{
                              sensor: "sensor.disk_free",
                              icons: [{
                                             "default": "chip"
                        }
                    ]
                }
            ]

        }
    }
                

]

};

sorry I have no idea. This looks more like an internal issue with MM so I would take it to their forum…

@iorifly I am using MM and HA. I did try a lot of modules to publish info from HA on my mirror. I ended up using the MMM-MQTT. I can now show all kind of info in a nice way. I did write about this here. https://www.planet4.se/magic-mirror-info-via-mqtt/

I’ll try. But I confess that I did not understand well.
I don’t use node-red. I have the owner HA’s mqttt server. Can you get the data without using node-red? Do you still use the graphics module?