Read the statement by Michael Teeuw here.
MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
-
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 request
Let 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.body
I 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! :)