Read the statement by Michael Teeuw here.
Activate Profiles (via MMM-ProfileSwitcher) using MMM-Remote-Control...
-
@mortenbirkelund {“status”:“Unexpected token P in JSON at position 1”}
Tried that… :)
-
@Snille It is not an object, that you are supposed to send, see the documentation, just a simple string, i.e.
...?action=NOTIFICATION¬ification=CURRENT_PROFILE&payload=%22Snille%22
. -
@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! :)
-
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. :) -
@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:
- I can’t find any php or js function to (as you said) “visit” URL:s --> because you have to be in a browser
- 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