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-Loxone

    Scheduled Pinned Locked Moved Utilities
    loxonesmart home
    94 Posts 11 Posters 93.6k Views 14 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
      bobbythemoh
      last edited by bobbythemoh

      pi@MagicMirror:~ $ pm2 log MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines:
      0|MagicMir | [865:0515/052002.614227:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
      0|MagicMir | #0 0x0000007fd980 <unknown>
      0|MagicMir | #1 0x000000841db2 <unknown>
      0|MagicMir | #2 0x0000012700d2 <unknown>
      0|MagicMir |
      0|MagicMir | npm ERR! code ELIFECYCLE
      0|MagicMir | npm ERR! errno 1
      0|MagicMir | npm ERR! magicmirror@2.3.1 start: `sh run-start.sh`
      0|MagicMir | npm ERR! Exit status 1
      0|MagicMir | npm ERR!
      0|MagicMir | npm ERR! Failed at the magicmirror@2.3.1 start script.
      0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      0|MagicMir |
      0|MagicMir | npm ERR! A complete log of this run can be found in:
      0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2018-05-15T05_31_52_606Z-debug.log
      
      /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines:
      0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room
      0|MagicMir | MMM-Loxone Found LightControl (Lichtsteuerung) in room OG Bad
      0|MagicMir | MMM-Loxone NotificationUuid: 0ea3ebd1-008d-029d-ffff390cde3b9b45
      0|MagicMir | MMM-Loxone Enabling statusupdates
      0|MagicMir | MMM-Loxone Successfully executed 'dev/sps/enablebinstatusupdate' with code 200 and value 1
      0|MagicMir | MMM-Loxone Got lightMood change [1]
      0|MagicMir | MMM-Loxone Got room temperature: 21.8
      0|MagicMir | MMM-Loxone Got lightMood change [777]
      0|MagicMir | MMM-Loxone Got lightMood change [778]
      0|MagicMir | MMM-Loxone Got lightMood change [1]
      0|MagicMir | MMM-Loxone Got lightMood change [777]
      0|MagicMir | MMM-Loxone Got lightMood change [1]
      0|MagicMir | MMM-Loxone Got lightMood change [777]
      0|MagicMir | MMM-Loxone Got lightMood change [778]
      0|MagicMir | MMM-Loxone Got lightMood change [1]
      
      
      
      idoodlerI 1 Reply Last reply Reply Quote 0
      • idoodlerI Offline
        idoodler Module Developer @bobbythemoh
        last edited by

        @bobbythemoh Ok, thanks. No unhandled rejections.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bobbythemoh
          last edited by bobbythemoh

          @idoodler , did “vcgencmd” solve the issue?

          idoodlerI 1 Reply Last reply Reply Quote 0
          • idoodlerI Offline
            idoodler Module Developer @bobbythemoh
            last edited by

            @bobbythemoh No. I think there is an issue within the communication module for the Miniserver. If the module crashes when the screen is turned off the screen will never be turned on again and vice versa.

            1 Reply Last reply Reply Quote 0
            • B Offline
              bobbythemoh
              last edited by

              @idoodler , i dont think so. Let me explain the behaviour of the Module:

              Light in the Room Switched ON, Booting the Mirror gives me the Mirror as it should be
              Switching the Light off, switches the Monitor off.
              Switchint the Light on again activates the Background light of the Monitor but does not give content
              Entering the command “xset -display :0 -dpms” while the light is switched ON brings back the content

              in my opinion this is not a miniserver issue since I can observe an reaction (Backlight of the monitor comes alive), this is an issue with the “tvservice”

              idoodlerI 2 Replies Last reply Reply Quote 0
              • idoodlerI Offline
                idoodler Module Developer @bobbythemoh
                last edited by idoodler

                @bobbythemoh You misunderstoodme. I think the issue is in my code with the communication layer crashing resulting in not receiving any state changes, hence the mirror doesn’t know to enable the display again.

                I just found an issue and testing it over the night.

                1 Reply Last reply Reply Quote 0
                • idoodlerI Offline
                  idoodler Module Developer @bobbythemoh
                  last edited by

                  @bobbythemoh I just pushed some changes, please update. Don’t forget to execute npm install after updating MMM-Loxone.

                  1 Reply Last reply Reply Quote 1
                  • B Offline
                    bobbythemoh
                    last edited by bobbythemoh

                    David, you are my hero, it works!!!
                    Energy Consumption of RPI + 24" Monitor Powered ON = 56W; 3.4W if no one is present in the room. AWESOME!
                    Thank you for the efforts!
                    May I also ask you for the feature request with displaying variables from the Miniserver? Id like to see things like the PV production or an analog value like the level in a tank.

                    Thank you so much!

                    idoodlerI 2 Replies Last reply Reply Quote 1
                    • idoodlerI Offline
                      idoodler Module Developer @bobbythemoh
                      last edited by

                      @bobbythemoh please create a separate Issue in Github for the power consumption thing.

                      1 Reply Last reply Reply Quote 0
                      • idoodlerI Offline
                        idoodler Module Developer @bobbythemoh
                        last edited by

                        @bobbythemoh Please check the latest version of MMM-Loxone. It’s not possible to display custom states:)

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bobbythemoh
                          last edited by

                          Hi @idoodler ,

                          I have just tried to get the “observingUuids” working.
                          I dont get anything on the MM. My question: Is there a way to test if I did something wrong with “ALERT” or with “MMM-Loxone”

                              modules: [
                                      {
                                              module: "alert",
                                              config: {
                                                      //display_time: "3500",
                                                      //alert_effect: "jelly",
                                                      //effect: "slide",
                                                      //position: "center"
                                                      }
                                      },
                          

                          MMM-Loxone:

                                      {
                                              module: "MMM-Loxone",
                                              //position: "top_right", //macht keinen Sinn, ga kein GUI
                                              config: {
                                                      host: "192.168.0.200",
                                                      user: "XXX",
                                                      pwd: "XXX",
                                                      presence: "true",
                                                      //roomUuid: "0ea3ebd1-00eb-0517-ffff390cde3b9b45", //Arbeitszimmer
                                                      roomUuid: "0ea3ebd1-00eb-04ef-ffff390cde3b9b45", //Badezimmer
                                                      showInfoNotifications: "true",
                                                      showErrorNotifications: "true",
                                                      showSystemNotifications: "true",
                                                      observingUuids:[
                                                                      "103d9aaf-0037-597e-ffff390cde3b9b45",//Bad Luftfeuchte
                                                                      "11aee03b-01ea-a7bb-ffff390cde3b9b45"
                                                                      ]
                                              }
                                      },
                          

                          Furthermore, i found and interesting module called “mmm-openhabfloorplan”. I have seen it is using a HTTP server on the MagicMirror, would it be possible to adapt it for Loxone aswell?

                          Regading displaying Charts: I found an extension called “MMM-ImagePhotos” Do you have any Idea, how the “Energy-Monitor” data can be exported on regular basis, like every minute? I was thinking of making a python skript that creates a picture every X Minutes and puts it to the display with the MMM-ImagePhotos. Do you have any suggestions?

                          Thank you in advance.
                          Robert

                          idoodlerI 1 Reply Last reply Reply Quote 0
                          • idoodlerI Offline
                            idoodler Module Developer @bobbythemoh
                            last edited by

                            @bobbythemoh If you use the the observingUuids you need to add the module position.
                            The alert module config looks good, what notifications do you want to display?

                            The mmm-openhabfloorplan module looks cool. I will definetly look into it :thumbs_up:

                            You can create a python periodicaly fetches the statistic files from your Miniserver (http://192.168.0.200/stats) and creates an image from it, saves in the directory the MMM-ImagePhotos module listens to.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Meininger
                              last edited by

                              Hi idoodler,

                              i have the same problem with the presence option. when i enable the option the display switches off with the light controller in the room. wenn the light in the room is going on, the display is also going on, but only the cursor in the left top is blinking, no MagicMirror information is shown. Ich have updated the MMM-Loxone Modul und the MMM installation, the command in previus postings don´t bring back the screen…

                              idoodlerI 1 Reply Last reply Reply Quote 0
                              • T Offline
                                teddy
                                last edited by teddy

                                how can I make the table smaller? can someone help me?

                                alt text

                                1 Reply Last reply Reply Quote 0
                                • elmatttE Offline
                                  elmattt
                                  last edited by

                                  hi, loxone here too :)
                                  i use mmm-remotecontrol with loxone to switch on and off the mirror, really easy to set-up :)
                                  i give a try to your module and come back :)

                                  1 Reply Last reply Reply Quote 1
                                  • idoodlerI Offline
                                    idoodler Module Developer @Meininger
                                    last edited by

                                    @meininger Hey, I just published an update of MMM-Loxone. Please update your MagicMirror, it fixes some connection issues.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Meininger @idoodler
                                      last edited by

                                      @idoodler thank´s for your help. I have test the changes and the problem with the restart of the Mirror Display is the same as bevor. But the connection to ne new version of the Loxone Room Controller (v2) is now possible to get the room temperature.

                                      idoodlerI 2 Replies Last reply Reply Quote 1
                                      • idoodlerI Offline
                                        idoodler Module Developer @Meininger
                                        last edited by

                                        @meininger Thanks for the update. May I ask you to show me your MagicMirrors log via pm2 log mm. Also, what Version do you have installed on your Loxone Miniserver?

                                        1 Reply Last reply Reply Quote 0
                                        • idoodlerI Offline
                                          idoodler Module Developer @Meininger
                                          last edited by

                                          @meininger I am asking this, because I noticed, that I have some occasional crashes in some other modules like Calendar and Weather which lead to a crashed MagicMirror, so the presence detection feature isn’t working.

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            Meininger
                                            last edited by

                                            @idoodler so i have an idea how it not works for me. I dont use pm2 to start magicmirror. My mirror is in the badroom also for playing music, so i startet the setup with a max2play distribution for easy Audio Set up. Then i installed the magicmirror Script, its runs perfekt. Only starting the mirror with pm2 dosent work for me. So i looked for an other way to Start, i have found that with the crontap file, it starts the mirror at reboot.

                                            At the Moment the mmm-Loxone Script runs ok for me, room Temperature, notifications and virtual Status values are publisched on the mirror. Thank you for this god Job!

                                            My Loxone is on the acutal Software Version 10.0.9. 24.

                                            idoodlerI 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
                                            • 3
                                            • 4
                                            • 5
                                            • 3 / 5
                                            • 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