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.
    • idoodlerI Offline
      idoodler Module Developer @Meininger
      last edited by

      @meininger Ok, there may be some unexpected reconnects due to some changes in the authentication behavior on the Loxone side. But you shouldn’t see an issues because the Module will automatically reconnect to the Miniserver. I will update the module as soon as I can.

      Thanks for keeping me up-to-date 👍

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

        @idoodler keeping up to Date is the only way to make Things better… 😉

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

          @idoodler at the Moment it is an new error, the mirror dosn´t start. Its an error at boot “detect-rpi” module can not load. So i deactivate the complete Loxone Module in Mirror config file, than start´s the mirror like before, but without the cool Loxone feature. :-(

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

            Hello everyone,

            I also have some trouble configuring the Loxone module. The MM itself and the calender, traffic, weather an News modules are running without any problem.

            BUT: The Loxone modules does not want to run at all. Attached you’ll find the required parts of my config.

            Maybe some of you can find the wrong passage.

            Thanks in advance

            1_1550254824769_MMM_lox2.PNG 0_1550254824767_MMM_lox1.PNG

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

              @DO86 I think “position” is wrong.
              See my config:

                            {
                                      module: "MMM-Loxone",
                                      position: "bottom_left", 
                                      config: {
                                              host: "Loxone IP",
                                              user: "Username",
                                              pwd: "Password",
                                              presence: "true", //if you want to use the light controller V2 to toggle the display
                                              roomUuid: "0ea3ebd1-00eb-04ef-ffff390cde3b9b45", //Room ID where MM is located
                                              showInfoNotifications: "true",
                                              showErrorNotifications: "true",
                                              showSystemNotifications: "true",
                                              observingUuids:[
                                                              "103d9aaf-0037-597e-ffff390cde3b9b45",//Variable you want to observe
                                                              ]
                                                  }
                              },
              
              1 Reply Last reply Reply Quote 0
              • B Offline
                bobbythemoh
                last edited by

                @idoodler : Today i updated my RPI and i add 2 Modules “MMM-RPI-LED” and “MMM-Moon-Phase” (Just a side info, maybe this is the reason for my issue).

                “MMM-Loxone” was working perfect for a long time. Now i am having issues with the Monitor coming alive again.

                Test-Scenario:
                Light in the Room is ON; in the config I changed Presence: “false” -->MM Starts and works
                now i am switching presence: “true”; light is still on -->MM Starts and works
                now i am switching off the light --> MM gets dark
                now I am switching on the light -->MM stays dark

                in the PM2 LOG i can see the status of the light controller changing.

                I think there was something changed in the OS. Does anyone experience a similar behaviour?

                Thank you.

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

                  @bobbythemoh Hi, may you please post the MagicMirrors log via pm2 log mm. Did you update your Raspberry pi?

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

                    Hi,

                    I did sudo apt-get update, then sudo apt-get upgrade.
                    Please find the log file. As you can see, changing the light status works.

                    0|MagicMir | Starting MagicMirror: v2.5.0
                    0|MagicMir | Loading config ...
                    0|MagicMir | Loading module helpers ...
                    0|MagicMir | No helper found for module: alert.
                    0|MagicMir | No helper found for module: clock.
                    0|MagicMir | Initializing new module helper ...
                    0|MagicMir | Module helper loaded: MMM-ImagesPhotos
                    0|MagicMir | Initializing new module helper ...
                    0|MagicMir | Check MagicMirror version for node helper 'MMM-Loxone' - Minimum ve                                                            rsion:  2.1.1 - Current version: 2.5.0
                    0|MagicMir | Version is ok!
                    0|MagicMir | Module helper loaded: MMM-Loxone
                    0|MagicMir | Initializing new module helper ...
                    0|MagicMir | Module helper loaded: calendar
                    0|MagicMir | No helper found for module: currentweather.
                    0|MagicMir | Initializing new module helper ...
                    0|MagicMir | Module helper loaded: MMM-MoonPhase
                    0|MagicMir | Initializing new module helper ...
                    0|MagicMir | Module helper loaded: newsfeed
                    0|MagicMir | All module helpers loaded.
                    0|MagicMir | Starting server on port 8080 ...
                    0|MagicMir | Server started ...
                    0|MagicMir | Connecting socket for: MMM-ImagesPhotos
                    0|MagicMir | Starting node helper for: MMM-ImagesPhotos
                    0|MagicMir | Connecting socket for: MMM-Loxone
                    0|MagicMir | Connecting socket for: calendar
                    0|MagicMir | Starting node helper for: calendar
                    0|MagicMir | Connecting socket for: MMM-MoonPhase
                    0|MagicMir | Starting module helper: MMM-MoonPhase
                    0|MagicMir | Connecting socket for: newsfeed
                    0|MagicMir | Starting module: newsfeed
                    0|MagicMir | Sockets connected & modules started ...
                    0|MagicMir | Launching application.
                    0|MagicMir | Create new calendar fetcher for url: http://localhost:8080/modules/                                                            calendars/E4AD5817-F7E8-4334-AA45-34CBF51B7682.ics - Interval: 300000
                    0|MagicMir | Create new news fetcher for url: http://derStandard.at/?page=rss&re                                                            ssort=Seite1 - Interval: 300000
                    0|MagicMir | Create new news fetcher for url: https://rss.orf.at/news.xml - Interval: 300000
                    0|MagicMir | Opening Socket to your Miniserver
                    0|MagicMir | MMM-Loxone Download LoxApp3.json
                    0|MagicMir | MMM-Loxone Search room with uuid: 0ea3ebd1-00eb-04ef-ffff390cde3b9b45
                    0|MagicMir | MMM-Loxone Found room: OG Bad
                    0|MagicMir | MMM-Loxone Search IRC for room temperature
                    0|MagicMir | MMM-Loxone Found IRC (Intelligente Raumregelung) in room OG Bad
                    0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room
                    0|MagicMir | MMM-Loxone Found LightControl (Badezimmerlicht) 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 room temperature: 22.4
                    0|MagicMir | MMM-Loxone Got lightMood change to: All off(778)
                    0|MagicMir | MMM-Loxone Got lightMood change to: Custom mode(1)
                    0|MagicMir | MMM-Loxone Got lightMood change to: All on(777)
                    0|MagicMir | MMM-Loxone Got lightMood change to: All off(778)
                    
                    
                    idoodlerI 1 Reply Last reply Reply Quote 0
                    • idoodlerI Offline
                      idoodler Module Developer @bobbythemoh
                      last edited by

                      @bobbythemoh I am currently unable to test it on a Raspberry Pi running Raspbian, because I am working on another project. Please try to execute /opt/vc/bin/tvservice -o, this will turn off the HTMI port, if this won’t work there may be an issue with the last update of Rasbian.

                      I am currently anyway working on another method to toggle the HDMI port on different operating systems, so I may resolve this anyway.

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

                        @idoodler Hey, i tried the following things:
                        in config.js I set presence “false”; restart but after the MM is loaded, screen is getting dark. The only was to get a monitor signal is to restart with light in the room switched on although presence is “false”.

                        If the display was dark it does not come back any more:
                        I tried tvservice -o: It switches off HDMI, i can see the monitor going to sleep (flashing Power LED)
                        I tried tvservice -p: i can see the monitor coming alive but only with a black screen (constant Power LED).

                        If HDMI is on (-p) by connecting to the MM via VNC i can press STRG+Q to close MM; i can see the deskop on VNC but no change on the real Monitor.

                        So to summarize: if tvservice -o was set, the monitor signal does not come back any more (besides restart with light in the room)

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

                          @bobbythemoh I just double checked the code, if you disable the presence property there is no way to toggle the display by the Loxone Module. Do you see the log message Got lightMood change to: All off(778) after you disable the presence property.

                          The Monitor is directly toggled after the log command.

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

                            @idoodler Hey,

                            In the config.js it says:

                                {
                                                    module: "MMM-Loxone",
                                                    position: "bottom_left", 
                                                    config: {
                                                            host: "IP",
                                                            user: "User",
                                                            pwd: "PW",
                                                            presence: "false",
                                                            roomUuid: "0ea3ebd1-00eb-04ef-ffff390cde3b9b45",
                                                            showInfoNotifications: "true",
                                                            showErrorNotifications: "true",
                                                            showSystemNotifications: "true",
                                                            observingUuids:[
                                                                            "103d9aaf-0037-597e-ffff390cde3b9b45",//Bad Luftfeuchte
                                                                            "104c401f-03a0-9afc-ffff390cde3b9b45",//WarmwasserTemp
                                                                            ]
                                                    }
                            },
                             
                            

                            I switched on the monitor with light on, picture was there, i toggled the light to off, MM image is gone and does not come back. To your question, here is the log file, i can see the “got ligtmode”.

                            /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines:
                            0|MagicMir | Create new news fetcher for url: http://derStandard.at/?page=rss&ressort=Seite1 - Interval: 300000
                            0|MagicMir | Create new news fetcher for url: https://rss.orf.at/news.xml - Interval: 300000
                            0|MagicMir | Opening Socket to your Miniserver
                            0|MagicMir | MMM-Loxone Download LoxApp3.json
                            0|MagicMir | MMM-Loxone Search room with uuid: 0ea3ebd1-00eb-04ef-ffff390cde3b9b45
                            0|MagicMir | MMM-Loxone Found room: OG Bad
                            0|MagicMir | MMM-Loxone Search IRC for room temperature
                            0|MagicMir | MMM-Loxone Found IRC (Intelligente Raumregelung) in room OG Bad
                            0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room
                            0|MagicMir | MMM-Loxone Found LightControl (Badezimmerlicht) 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 room temperature: 22.9
                            0|MagicMir | MMM-Loxone Got lightMood change to: Custom mode(1)
                            0|MagicMir | MMM-Loxone Got lightMood change to: All on(777)
                            0|MagicMir | MMM-Loxone Got lightMood change to: All off(778)
                            0|MagicMir | MMM-Loxone Got lightMood change to: Custom mode(1)
                            
                            idoodlerI 1 Reply Last reply Reply Quote 0
                            • idoodlerI Offline
                              idoodler Module Developer @bobbythemoh
                              last edited by

                              @bobbythemoh Oh, now everything makes sense. You have errors in your config.js.

                              Boolean values must not be strings. Replace "true" and "false" with true and false. in Javascript "false" is equal to true, so you basically have presence enabled :winking_face:

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

                                Hey, uncommenting the Room UUID gives with presence “false”:

                                0|MagicMir | Opening Socket to your Miniserver
                                0|MagicMir | MMM-Loxone Download LoxApp3.json
                                0|MagicMir | MMM-Loxone Search room with uuid: null
                                0|MagicMir | MMM-Loxone Couldn't find Room!
                                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
                                

                                Now i can do whatever i want with the light, the video is ok.

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

                                  @bobbythemoh Yes, it looks like there is an issue with tvservice with one of the last Raspbian updates. I am looking into fixing this and also support more operating systems.

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

                                    @idoodler OMG. thats what happens when an mechanical engineer works with code… sorry… :D i guess that was the reason why it takes long to start the MM, at least now its faster.

                                    OK the presence problem is fixed, but the Display problem remains…

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

                                      @idoodler thanks for the help als always, looking forward for the module working again, my wife already complained that she is missing it now that it is not there (first she complained that it is there) :D

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

                                        @bobbythemoh Thanks for informing me about that issue. I am currently working on something else, so I had to ditch my current installation.

                                        Schönen Abend noch;)

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

                                          @bobbythemoh Hi, I have good news for you, I just pushed a fix. Please update MMM-Loxone for it to work again. I also made it a bit faster, I hope your wife will be happy again:smiling_face_with_open_mouth_smiling_eyes:

                                          Btw. This issue semes to be related to one of the latest Raspbian updates, I assume its because the new Raspberry Pi has two HDMI outputs, so there may be some changes to the HDMI related code…

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

                                            @idoodler Hey, i just updated. works perfectly again. Thanks a lot.

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 4 / 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