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



  • 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



  • maybe I add the module creator 🙂
    @BenRoe


 

285
Online

6.0k
Users

4.5k
Topics

37.1k
Posts