Read the statement by Michael Teeuw here.
MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
-
@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! :)
-
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
localhost
or127.0.01
.In other cases it will be difficult to access the picture urls from inside the
<module-name>.js
file, accessing them from thenode_helper.js
should work. So one solution could be to fetch them withnode_helper.js
to 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…
-
This works so nice :) Thank you @Snille
-
@aseadc86 Thank you! :) It is not possible to get two values on the same row (I think) in it’s current form… And also the “pictures” from the sensors does not work. I’m just out of time to fix it… :)
-
I have the same issue as some of the other users here “Error fetching stats” with no errors in MM or HA. I generated a new token and changed it in the config, still no luck.
What version of HA are you running?
It was working for me until HA 2021.10: https://forum.magicmirror.builders/topic/15751/mmm-homeassistant-sensors-stopped-working-after-ha-2021-10-update?_=1645122750604
-
@ivanov_d Hm… Am I missing something? It’s working fine here (except for the pictures), I’m on: Core Version core-2022.2.8 and Supervisor Version supervisor-2022.01.1
Where do you get the error?