MagicMirror² v2.11.0 is available! For more information about this release, check out this topic.
READ THE CHANGELOG BEFORE UPDATING!

MMM-Iobroker "undefined"



  • Hello guys,

    i installed the MMM-Iobroker module but it is just for mqtt devices possible to display them because i get in my mirror the message “undefined” when i write in the config other devices for example hm-rpc.

    thanks



  • @fischi87 said in MMM-Iobroker “undefined”:

    Hello guys,

    i installed the MMM-Iobroker module but it is just for mqtt devices possible to display them because i get in my mirror the message “undefined” when i write in the config other devices for example hm-rpc.

    thanks

    Hi,

    i have the same issue now, i would like to dislay modbus values.
    Unfortunately it seems to not work.

    Does anyone have a solution for this?



  • Hi all,
    same on my side, always “undefined”
    Any idea?
    BR Jens



  • Please install in ioBroker the Adapter “Simple RESTful API”

    config.js from the mirror look like this.

    {
                            module: 'MMM-ioBroker',
                            position: 'bottom_right',
                            config: {
                                    host: 'IP from ioBroker',
                                    port: '8087',
                                    https: false,
                                    devices: [
                                            { name: "Badezimmer",
                                                    deviceStates: [
                                                                      { id: 'zigbee.0.001.temperature', icon: 'wi wi-thermometer', suffix: '°' },
                                                                      { id: 'zigbee.0.001.humidity',    icon: 'wi wi-humidity',    suffix: '%' }
                                                              ]
                                            },
                                           
                                           
                                    ]
                            }
                    },
    
    


  • the solution was to modify MMM-ioBroker.js

      getTemplate: function () {
        return 'MMM-ioBroker.njk';
      },
    
    


  • @Jensen
    hi, thx this helped me.
    But now I only see this, do you know why it cannot get data?
    I tried with

    "http://192.168.0.102:8087/get/hm-rpc.0.OEQ0348511.1.HUMIDITY" 
    

    at Safari and the response ist the fuel data string

    {"val":52,"ack":true,"ts":1585485874168,"q":0,"from":"system.adapter.hm-rega.0","user":"system.user.admin","lc":1585560601523,"type":"state","common":{"def":0,"type":"number","read":true,"write":false,"min":0,"max":99,"unit":"%","role":"value.humidity","name":"TempFeuchtHof.HUMIDITY"},"native":{"AutoconfRoles":"WEATHER","DEFAULT":0,"FLAGS":1,"ID":"HUMIDITY","MAX":99,"MIN":0,"OPERATIONS":5,"TAB_ORDER":1,"TYPE":"INTEGER","UNIT":"%"},"_id":"hm-rpc.0.OEQ0348511.1.HUMIDITY","acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}}
    

Log in to reply