• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-HomeAssistant-Sensors (Development) - Show your HA Sensors on your Mirror

Scheduled Pinned Locked Moved Utilities
66 Posts 19 Posters 39.2k Views 21 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    fribse @Snille
    last edited by Nov 7, 2020, 11:54 AM

    @Snille Looks very nice, good job!

    1 Reply Last reply Reply Quote 0
    • V Offline
      vageesh79
      last edited by Dec 24, 2020, 5:05 AM

      anyway to use https with self signed. I am getting error "“Error Fetching Stats”. No error on homeassistant and MM

      1 Reply Last reply Reply Quote 0
      • B Offline
        bachoo786 @Karlberg
        last edited by Oct 1, 2021, 11:27 AM

        @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

        S 1 Reply Last reply Oct 1, 2021, 12:58 PM Reply Quote 0
        • S Offline
          Snille Module Developer @bachoo786
          last edited by Oct 1, 2021, 12:58 PM

          @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 do

          npm init
          

          &

          npm install request
          

          Let me know if it works.

          If you cant find it, make it and share it!
          Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

          H J 2 Replies Last reply Jan 7, 2022, 4:32 PM Reply Quote 0
          • H Offline
            hedmik @Snille
            last edited by Jan 7, 2022, 4:32 PM

            @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)

            C 1 Reply Last reply Jan 8, 2022, 1:26 AM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @hedmik
              last edited by Jan 8, 2022, 1:26 AM

              @hedmik Been trying to get it to work for a couple weeks now… no luck for me either… @Snille where you at? LOL

              S 1 Reply Last reply Jan 8, 2022, 2:07 AM Reply Quote 0
              • S Online
                sdetweil @cowboysdude
                last edited by Jan 8, 2022, 2:07 AM

                @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?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                H 1 Reply Last reply Jan 10, 2022, 8:47 AM Reply Quote 0
                • H Offline
                  hedmik @sdetweil
                  last edited by Jan 10, 2022, 8:47 AM

                  @sdetweil my code looks like this, perhaps it’s a need for an update…?
                  13b91156-d6b8-4c1a-b2ee-af3f8fc767bc-image.png

                  S 1 Reply Last reply Jan 10, 2022, 1:31 PM Reply Quote 0
                  • S Online
                    sdetweil @hedmik
                    last edited by Jan 10, 2022, 1:31 PM

                    @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

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      joecas65 @Snille
                      last edited by Jan 13, 2022, 3:55 PM

                      @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

                      S 1 Reply Last reply Jan 16, 2022, 9:05 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 3 / 7
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy