Read the statement by Michael Teeuw here.
MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
-
Love this module, I am just trying to figure out if it possible to merge the attribute pieces from this fork: https://github.com/moejetz/MMM-homeassistant-sensors with this one: to allow adding attributes. I’m trying to read up on how to do it, but not sure if it’s a lot of work to do or if there is an easy way to do it. I’m also checking for any guidance in the help forum. Any help would be appreciated!
-
I had this last night and I got frustrated and shutdown the mirror and re-opened it via terminal and it worked. I only tested with one sensor. Then I added another sensor and I didn’t have to restart to have it show it up. Not sure what changed, but this might work for you. Something else I did was not install the right one TWICE, I instralled them as they appeared in the list on Github and found out about their issues, which caused me to install the next one and so on. At least I got experience installing modules. This was the last one I installed and I have a lock and a sensor displaying now. More to Come.
-
i have the same problem. It never worked. I hassio i got “Login attempt failed
Login attempt or request with invalid authentication from raspberrypi (192.168.16.71)”so something is wrong with this module.
-
@Karlberg Hi, the module should be working. It sounds like you have something wrong with the token if HA reports failed logins…
-
This post is deleted! -
@Snille Yes something was wrong. its working with another token
-
@Karlberg Great! :)
-
@Snille Looks very nice, good job!
-
anyway to use https with self signed. I am getting error "“Error Fetching Stats”. No error on homeassistant and MM
-
@karlberg hey man thanks for the module. However I am getting “Error fetching stats” there is no error in HA.
Can you please help? thnaks
-
@bachoo786 Hi, I’m using the module and it’s working. It may be that the “request” module is missing? Have you installed it?
Go the to the module folder and donpm init&
npm install requestLet me know if it works.
-
@snille Hi, trying to use this module but getting below error.
I followed your instructions i hope :-)
[07.01.2022 17:10.13.062] [ERROR] (node:30547) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading ‘body’)
at /home/pi/MagicMirror/modules/MMM-homeassistant-sensors/node_helper.js:40:83
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[07.01.2022 17:10.13.067] [ERROR] (node:30547) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 46) -
-
@cowboysdude that error doesn’t line up with the code on GitHub
line 40 col 83 is inside a routine making the url string, not handling a request response
so, what code is actually being run?
-
@sdetweil my code looks like this, perhaps it’s a need for an update…?

-
@hedmik well, only the error part at the moment
typically on error there is no body
error.response.bodyI would change that to
JSON.stringify(error,null,2)that way u see the whole error object
then, on e we know the error, we can work on the cause
-
@snille Hi, I’m using this module , and today suddenly magic mirror doesn’t show anymore the pictures from ha sensors (persons). The web interface from a remote computer with chrome works as usual. How can i solve ?
Thanks -
@joecas65 Hi! Yes, I do have this issue as well, I have not yet figured out how to solve it. It has to do with the “CORS Policy”. But I’m not sure how to fix it yet. I have to read up a bit and for the moment I’m out of time… Any PR:s would be appreciated! :)
-
the cors policies are more restricted with newer chromium releases and therefore in electron too.
There are already some issues here 1, 2 …
If HomeAssistent and mm are running on the same pi this may works when changing the host in the module config to
localhostor127.0.01.In other cases it will be difficult to access the picture urls from inside the
<module-name>.jsfile, accessing them from thenode_helper.jsshould work. So one solution could be to fetch them withnode_helper.jsto a mm directory and use these urls in<module-name>.js.Because I have no HomeAssistant I can not test this so this are only my thoughts so far …
-
I just set this module up and I love it. Great job. I was wondering if there was anyway to bring in 2 sensors on the same row? I’m mostly using it for temperature and humidity sensors in different rooms. Just to streamline, eliminate redundancy and save space.
This:
Master Bedroom: 70 / 40 F / %
Instead of:
Master Bedroom Temp: 70 F
Master Bedroom Humidity: 40 %It would be really cool to have the icons directly after the value and then the units could be set to false:
Master Bedroom: 70 mdi:thermostat / 40 mdi:water-percent
I just comically dove through the code thinking I might be able to copy/paste my way through the changes. I know my limits…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login