Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Fhem: Error "Cannot read property 'Results' of undefined"

    Troubleshooting
    1
    2
    1120
    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.
    • M
      mibafz00 last edited by

      Hi all,
      I wanted to use the module MMM-Fhem to display the temperature information of my Fhem Heating System.
      I followed the Readme. However, when I start the MagicMirror I get following error message:

      
      0|mm       | TypeError: Cannot read property 'Results' of undefined
      0|mm       |     at Class.parseJson (/home/pi/MagicMirror/modules/MMM-FHEM/node_helper.js:76:28)
      0|mm       |     at /home/pi/MagicMirror/modules/MMM-FHEM/node_helper.js:99:35
      0|mm       |     at Request._callback (/home/pi/MagicMirror/modules/MMM-FHEM/node_helper.js:40:9)
      0|mm       |     at Request.self.callback (/home/pi/MagicMirror/modules/MMM-FHEM/node_modules/request/request.js:186:22)
      0|mm       |     at emitTwo (events.js:106:13)
      0|mm       |     at Request.emit (events.js:191:7)
      0|mm       |     at Request. (/home/pi/MagicMirror/modules/MMM-FHEM/node_modules/request/request.js:1163:10)
      0|mm       |     at emitOne (events.js:96:13)
      0|mm       |     at Request.emit (events.js:188:7)
      0|mm       |     at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-FHEM/node_modules/request/request.js:1085:12)
      

      I went through my config file over and over again but didn’t find any mistake.
      Can somebody help me out finding the root cause for this error. It seems that it tries to read information from an object that is not existing.

      Thanks for any help.

      my config of this module:

                       {
                       module: 'MMM-FHEM',
                      position: 'bottom_bar',
                              config: {
                              host: '192.168.178.58',
                              port: '8083',
                              https: false,
                              devices: [
                                { 
                                      deviceName: 'MAX_11cf08',
                                      deviceReadings: [
                                            { name: 'temperature', 
                                              icon: 'wi wi-thermometer', 
                                              suffix: '°' },
      
                                          ],
                                },
                              ]
                              }
                       },
      
      
      

      The Fhem information of the specified device:

      0_1510778659697_fhem.jpg

      1 Reply Last reply Reply Quote 0
      • M
        mibafz00 last edited by

        maybe I add the module creator 🙂
        @BenRoe

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy