• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 4 Posters 3.9k Views 3 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.
  • S Offline
    Snille Module Developer
    last edited by Snille Feb 28, 2017, 1:12 PM Feb 28, 2017, 12:42 PM

    Hi all,
    I’m trying to switch profiles with the MMM-Remote-Control module via notifications to the MMM-ProfileSwitcher module.
    But I can’t get it to work. I do get the MMM-ProfileSwitcher to “switch” but only to a profile called [object Object].
    My profile in this case is called “Snille”.
    The Profile Switcher work otherwise with the MMM-Touch-Navigation module, so it’s not broken otherwise. :)

    Iv’e tried with the following URL (and variants of that):
    http://MagicMirorIP:8080/remote?action=NOTIFICATION&notification=CURRENT_PROFILE&payload={“Profile”:“Snille”}
    As long as the “json” is ok at the end I get the “Switched to profile [object Object]” on the mirror. But, of course I don’t have any “[object Object]” profile. :)
    I do get a: {“status”:“success”} from the MMM-Remote-Control as well (as long as the “json” string is ok as well).
    Anybody have any idea? :)

    If you cant find it, make it and share it!
    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

    1 Reply Last reply Reply Quote 0
    • M Offline
      mortenbirkelund
      last edited by Feb 28, 2017, 12:56 PM

      http://MagicMirorIP:8080/remote?action=NOTIFICATION¬ification=CURRENT_PROFILE&payload={Profile:“Snille”}

      What about if you remove the double quotes from Profile? Just a guess.

      S J 2 Replies Last reply Feb 28, 2017, 12:57 PM Reply Quote 0
      • S Offline
        Snille Module Developer @mortenbirkelund
        last edited by Feb 28, 2017, 12:57 PM

        @mortenbirkelund {“status”:“Unexpected token P in JSON at position 1”}

        Tried that… :)

        If you cant find it, make it and share it!
        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jopyth Moderator @mortenbirkelund
          last edited by Jopyth Feb 28, 2017, 2:08 PM Feb 28, 2017, 2:07 PM

          @Snille It is not an object, that you are supposed to send, see the documentation, just a simple string, i.e. ...?action=NOTIFICATION&notification=CURRENT_PROFILE&payload=%22Snille%22.

          Helpful sticky: How to troubleshoot

          S 1 Reply Last reply Feb 28, 2017, 2:09 PM Reply Quote 0
          • S Offline
            Snille Module Developer @Jopyth
            last edited by Feb 28, 2017, 2:09 PM

            @Jopyth said in Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...:

            %22Snille%22

            Oh! Works! :) I can’t believe that I did not try that… Thank you! :)

            If you cant find it, make it and share it!
            Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

            1 Reply Last reply Reply Quote 0
            • S Offline
              Snille Module Developer
              last edited by Snille Feb 28, 2017, 3:40 PM Feb 28, 2017, 3:38 PM

              Bonus for anyone who wounder why I wanted to do this…

              I’m a user of “Alexa” (Amazons Echo Dot). I have 6 dots in my house. I wanted to be able to interact with the mirror with Alexa. And, yes I know there are lot’s of modules and stuff out there for this. But I have tried and not been satisfied with different modules/solutions that I found.

              Now, It happens I already use a small software called “HA-Bridge” for controlling all kind of things using Alexa (for example all my lights via Z-Wave using a Fibaro HC2 controller). So this software can be configured to “visit” URL:s when called up on with a voice command though Alexa (in reality HA emulates a Philips HUE light that Alexa can “find” under “Smart House”, that give 3 different commands: On, off and dim.). This opens up a sea of opportunities as you can imagine. :)

              So, now I say: “Alexa, turn on Snilles Mirror” to view my profile. (Switches to my profile)
              Or: “Alexa, turn off Mirror Screen.” (Monitor off)
              Or: “Alexa, turn off Mirror” (Shutdown the mirror)
              And so on…
              Yes… Imagine the possibilities. :)

              If you cant find it, make it and share it!
              Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

              C 1 Reply Last reply Jun 22, 2018, 12:14 PM Reply Quote 0
              • C Offline
                ceddirr @Snille
                last edited by Jun 22, 2018, 12:14 PM

                @snille Hello Snilles how are you?

                I’ve been stuck for ages trying to do the same thing (switch profile on demand) with scripts or Google Home. The reason is:

                1. I can’t find any php or js function to (as you said) “visit” URL:s --> because you have to be in a browser
                2. You can add commands on Google Home via IFTTT request, which only uses external IP!

                Would you have any idea that could help me please?

                Thank you very much for your help,

                Cedric

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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