@asifnabi Hi, not with my module “only”, but if you have the information in HA, you can get it to the mirror using my module. I also believe there are modules that do fetch package data to the mirror directly, I just have not used any. :)
Take a look here: https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules
Read the statement by Michael Teeuw here.

Posts
-
RE: MMM-homeassistant-sensors stopped working after HA 2021.10 update
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
Now it’s working again… On both mu mirrors… I don’t understand why… I fixed the “moment” problem at least, I hope… Pushed that… But I guess it’s still the SSL problems left. But I can’t replicate it. @Ivanov_d Where did you set the debug flag to get the errors?
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d Nah… Not really, never been down the SSL rabbit hole… :) I have just forked this module and “fixed” the things I needed… I hope someone else can give some tips (PR:s)… My javascript skills are not that great ether… :)
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d Interesting… Maybe it’s a package missing, but that would not explain why the non SSL connections would fail…
I found another ting, if you don’t have the “clock” module enabled, the “moment.js” is not loaded, and therefore errors out my module (that uses the moment function)… So I have to fix that somehow as well… :) -
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d Interesting, I’m not using SSL in HA (I have a Reverse-proxy) that SSL:s everything… So, internally I can get to HA via http (or https) but externally I’ll always go through the reverse-proxy (and SSL). However, the development MM works both with and without SSL. But my real MM now don’t work with either… Darn! :)
What I CAN do, is use curl from ssh on the real MM and get the “status” from all sensors with this…curl -X GET -H "Authorization: Bearer VeRy-LoNg-API-ToKen" -H "Content-Type: application/json" http://ha-IP:8123/api/states
And it lists everything… Hm…
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d Hmm… In my own adventures to find what’s going on, I managed to “break” my real mirror connection to HA (now getting the fetch-error) but my development mirror is still working (against the same HA instance).
I don’t understand what’s going on. :)As for codebase I’m using my own fork: https://github.com/Snille/MMM-homeassistant-sensors.git
Let me know if you get it to work again… :)
-
RE: MMM-homeassistant-sensors stopped working after HA 2021.10 update
@asifnabi Hi, if you don’t specify the port, it will default to port 8123. And if you are using ssl (https) you need the port to be set to 443. Otherwise it will not work.
So, either do not use ssl (https) and you can skip the port option (because it will default to 8123).
Or use ssl (https) but then you need to specify the port option to 443.Both options are working for me at least. I hope this clarify things…
-
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d It’s still working for me, when using https. It got to be something else…
I changed my conf to this and it works…{ disabled: false, module: 'MMM-homeassistant-sensors', hiddenOnStartup: false, position: 'top_right', config: { host: "my.ha.url.com", port: "443", https: true, updateInterval: 60000, fade: 0, title: "Information", noaddress: "Away", token: "token...", values: [ { sensor: "sensor.living_room_temperature", name: "Temp i Vardagsrummet %t%", icons: [{ "default": "thermometer" } ] } ] } }
I’m on Hass.IO (from start), maybe the api is still active there? I don’t get it…
It does not work for me on port 8123, but that’s to be expected when using ssl. -
RE: MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror
@ivanov_d Strange… I’m running HA on it’s own machine and MM on it’s own machine as well, don’t know if that matters… The HA module works on both my “Development” build and the “Real” mirror…
Oh, I’m NOT using a password for the API, that has in deed been deprecated…
This is my “top” part of the Module:{ disabled: false, module: 'MMM-homeassistant-sensors', hiddenOnStartup: true, position: 'top_center', classes: "Me Work Weather", config: { host: "X.X.X.X", port: "8123", https: false, title: "Information", updateInterval: 60000, fade: 0, token: "Very-Long-MM-Token...", values: [...]
When did it stop working?
-
RE: MMM-homeassistant-sensors stopped working after HA 2021.10 update
@asifnabi Where are you getting the errors?
I’m on Core Version core-2022.2.8 and Supervisor Version supervisor-2022.01.1 and it works.