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-FHEM shows values from FHEM devices ...

    Scheduled Pinned Locked Moved Utilities
    40 Posts 14 Posters 41.2k Views 15 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.
    • B Offline
      Bobby
      last edited by

      Hi, i have some trouble with this modul.
      The Error is:

      21:11:17.224 TypeError: self.defaults.deviceReadings is undefined 1 MMM-FHEM.js:97:1

      config.js:

      { module: 'MMM-FHEM', position: 'bottom_bar', header: 'FHEM', config: { deviceNames: [ 'BadNode' ], deviceReadings: [ { name: 'temperature3', icon: 'fa fa-lightbulb-o', suffix: '°' }, // { name: 'humidity2', icon: 'wi wi-humidity', suffix: '%' }, ], }, }

      I hope you can help me.
      Thanks
      Bobby

      1 Reply Last reply Reply Quote 0
      • B Offline
        BenRoe Module Developer
        last edited by

        @DirkS yes you can use the weather icons from http://erikflowers.github.io/weather-icons/ and the font awesome icons http://fontawesome.io/icons/

        @DazDavid here is the thread to this problem https://forum.magicmirror.builders/topic/697/multiple-module-instances-overwrites-itself-values/2

        I will rewrite the module. Then every device can have different reading values.

        @Bobby is FHEM running on the same machine as the MM2?

        B 2 Replies Last reply Reply Quote 0
        • B Offline
          Bobby @BenRoe
          last edited by

          @BenRoe Thx for the fast answer. Yes, it is on the same Raspi. In the dev console of the browser, the correct value of the reading is displayed to me in the array as well.

          1 Reply Last reply Reply Quote 0
          • D Offline
            DazDavid
            last edited by

            @BenRoe cannot wait for the rewrite. Any idea how long it will take approximately and if you could add https Support?

            1 Reply Last reply Reply Quote 1
            • B Offline
              Bobby @BenRoe
              last edited by

              @BenRoe Hi, i found the problem an it works fine now.
              I changed following line self.defaults.deviceReadings[index] in self.config.deviceReadings[index]
              There are no default values for deviceNames and deviceReadings. They are only in the config.js

              This helps for me.
              Thanks
              Bobby

              1 Reply Last reply Reply Quote 1
              • B Offline
                BenRoe Module Developer
                last edited by

                I updated the Module to Version 0.2.0
                Update instruction https://github.com/BenRoe/MMM-FHEM#update-the-module

                Please change the module configuration in your config.js to the new structure.

                @DazDavid now with https support
                @Bobby fix the bug you found
                @DirkS you can set different readings for every FHEM device

                If you like the module please star it on github

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dom1n1c
                  last edited by

                  Is it possible to access values from openhab?

                  The syntax of the rest interface in OH is:

                  IP:8080/rest/items/specificitem
                  And to get the ‘Raw’ result/value:

                  IP:8080/rest/items/specificitem/state

                  I saw that there were a few Addons (for my smartwatch) that could use both FHEM and OpenHAB

                  Thanks

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    BenRoe Module Developer @Dom1n1c
                    last edited by

                    @Dom1n1c it is possible. I don’t have the time to rewrite the module for openhab. Sorry

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      DazDavid
                      last edited by

                      @BenRoe thank you for the update.
                      Unfortunatelly the new version killed my FHEM Server somehow… Anyway I found a workarounf in the meanwhile.
                      I build a new Tablet UI HTML File for the Mirror and used the iframe Module in MM to display the values. Works pretty good and im more Flexible.

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        BenRoe Module Developer @DazDavid
                        last edited by

                        @DazDavid what killed your FHEM Server? It’s should not be possible, the plugin could kill your MagicMirror, because of a config file with syntax errors or to high update rate.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          DazDavid
                          last edited by

                          Don’t know exactly what happend but after I set it up I only managed one time to get a value from FHEM, second time Fhem freeze and was not responding anymore. Only after deleting the module from MM config and restart the Raspberry Fhem was working again.

                          1 Reply Last reply Reply Quote 0
                          • FistandantilusF Offline
                            Fistandantilus
                            last edited by

                            Hi,

                            thx for your module. It exactly meets my requirements! One thing I´m currently struggeling is the alignment. I´m using:

                            body {
                            margin: 30px;
                            height: calc(100% - 60px);
                            width: calc(100% - 60px);
                            }

                            in my custom. css. The FHEM module is located at top_right but it has not the same margin as other modules. I made the border vissible using border-style: solid; to make see if it is the text alignment or something else. Se the attachment to get a better picture of what I´m talking about. Does anybody have an idea how to move it left?

                            regards,
                            F.

                            0_1493908642504_Bildschirmfoto 2017-05-04 um 16.30.28.png

                            1 Reply Last reply Reply Quote 0
                            • FistandantilusF Offline
                              Fistandantilus
                              last edited by

                              OK, fixed it by myself. Had to remove the max-width: 300px; from fhem.css.

                              B 1 Reply Last reply Reply Quote 0
                              • B Offline
                                BenRoe Module Developer @Fistandantilus
                                last edited by

                                @Fistandantilus you can edit the fhem.css on your mm and remove it. Seems the simplest way.

                                1 Reply Last reply Reply Quote 0
                                • FistandantilusF Offline
                                  Fistandantilus
                                  last edited by

                                  Yes, I have done that :)

                                  1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    Woody
                                    last edited by

                                    Is it possible to show differend icons depending on the device state like Fhem does it?

                                    B 1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      BenRoe Module Developer @Woody
                                      last edited by

                                      @Woody no it’s not possible.

                                      1 Reply Last reply Reply Quote 0
                                      • Da-ne-ezyD Offline
                                        Da-ne-ezy
                                        last edited by

                                        Is there any chance of doing an update of this module with FHEM Username and Password?

                                        FREE IT-Projects and Raspberry Pi Tutorials on my Website: www.danykilian.com

                                        B 2 Replies Last reply Reply Quote 0
                                        • D Offline
                                          dominic
                                          last edited by

                                          Hi everyone
                                          I’ve tried to install and activate the MMM-FHEM module but with not to much success. There was actually no problem neither with the installation nor the configuration but I can’t get it running.

                                          FHEM is running on the Rpi.
                                          Here is my config.js.

                                          //FHEM
                                          		 {
                                              module: 'MMM-FHEM',
                                              position: 'bottom_bar',
                                              config: {
                                                host: ['localhost'],
                                                port: '8083',
                                                https: false,
                                                devices: [
                                                            { deviceName: 'ESPEasy_ESP_Test_DHT',
                                                              deviceReadings: [
                                                                                { name: 'Temperatur', icon: 'wi wi-thermometer', suffix: '°' },
                                                                                { name: 'sate', icon: 'wi wi-humidity', suffix: 'test%' },
                                                                              ],
                                                            },
                                                           
                                                          ],
                                              },
                                            },
                                          	
                                          	
                                          		
                                          		
                                          	]
                                          

                                          i hope you can help me.
                                          greetings from Germany

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            BenRoe Module Developer @dominic
                                            last edited by

                                            @dominic remove the squared brackets from the host row.

                                            D 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • 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