@shbatm I don not see anything out of the ordinary in my logs when i do pm2 logs mm
definitely not 36 ports open in addition to 29100 when i go to location ~/.pm2/logs
the log files are there in the directory but empty.
Read the statement by Michael Teeuw here.
Posts made by richland007
-
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
-
RE: MMM-MirrorMirrorOnTheWall installation issue
@blackpanda OK well i think i got it to work but not really …it doesn’t seem like it is working right!!!
I changed the alexa.appId = APP_ID but when i test Lambda it is still giving this error onthe Lamda Test: application Id must be unique.START RequestId: 12e0e369-111e-11e9-9390-b5c3e0fcc19a Version: $LATEST 2019-01-05T19:14:08.827Z 12e0e369-111e-11e9-9390-b5c3e0fcc19a The applicationIds don't match: amzn1.ask.skill.[unique-value-here] and amzn1.ask.skill.e0223a06-d061-48bd-9b1c-XXX9a950fcf 2019-01-05T19:14:08.850Z 12e0e369-111e-11e9-9390-b5c3e0fcc19a { "errorMessage": "Invalid ApplicationId: amzn1.ask.skill.e0223a06-d061-48bd-9b1c-XXXX9a950fcf", "errorType": "Error", "stackTrace": [ "AlexaRequestEmitter.ValidateRequest (/var/task/node_modules/alexa-sdk/lib/alexa.js:157:27)", "HandleLambdaEvent.i18n.use.init (/var/task/node_modules/alexa-sdk/lib/alexa.js:123:29)", "/var/task/node_modules/i18next/dist/commonjs/i18next.js:190:9", "done (/var/task/node_modules/i18next/dist/commonjs/i18next.js:281:21)", "/var/task/node_modules/i18next/dist/commonjs/i18next.js:302:7", "I18n.loadResources (/var/task/node_modules/i18next/dist/commonjs/i18next.js:238:7)", "I18n.changeLanguage (/var/task/node_modules/i18next/dist/commonjs/i18next.js:301:10)", "load (/var/task/node_modules/i18next/dist/commonjs/i18next.js:186:14)", "I18n.init (/var/task/node_modules/i18next/dist/commonjs/i18next.js:195:7)", "AlexaRequestEmitter.HandleLambdaEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:114:32)" ] } END RequestId: 12e0e369-111e-11e9-9390-b5c3e0fcc19a REPORT RequestId: 12e0e369-111e-11e9-9390-b5c3e0fcc19a Duration: 208.20 ms Billed Duration: 300 ms Memory Size: 128 MB Max Memory Used: 65 MB
On a good note:
When i start the MMM-MirrorMirrorOnTheWall now i can see:cd ~/MagicMirror Display=:0 npm start
Connected to AWS IoT:
Subscribed: etc etc …for all 4: new-text, new-images, change-module, new-video just like yours so it is connected to IoTHowever when i go to developer.alexa site and try to build the new interaction model using the drag and drop template i get this error
Again the Interaction Model Is the stock one that comes with the package form github
Lets get this sucker going it is driving me nuts… i can confirm that the AppID is the right one
Denis
-
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
@shbatm Where do i see the logs??
When i usenetstat -tulpn | grep electron
It only show that 1 one port 0.0.0.0:21900 Listen
D
-
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
@shbatm Ok so it works BUT it is only finding the last device on my list of the config.js file module entry when there are 36 others there. I tried discovery like 20 times from the website.
Should i try adding them one by one from the bottom up by commenting them out and adding them one by one …unless you got any other ideas :)D
-
RE: MMM-MirrorMirrorOnTheWall installation issue
@oceank I haven’t gotten the chance to give it another try but i will soon :)
Did you do the changes that @blackpanda suggested ?? whats it telling you now??@blackpanda It took me a while to realize that it says MagicMirror but on our MirrorMirror.js file the ClienId is MirrorMirror so i changed that and i uploaded on Lambda and i made the appropriate policy changes on the IoT to reflect my arn:aws and my number nut just copy paste yours
but when i test Lambda now i get this error: The applicationIds don’t match: amzn1.ask.skill.[unique-value-here] and amzn1.ask.skill.e0223a06-d061-48bd-9b1c-3XXXXa950fcfAnd the app ID has not changed?? And also when i go to test the skill now on the Alexa developer side now i dont even get"Hello My queen…" i used to get it just goes straight to there was a problem with the requested skills response.
What else do i need to change cause i doubt there is anything major …has the syntax changed again appID or aplicationId etc???
Thank you any help is greatly appreciated
D -
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
@shbatm All right so i got it to work :) i have not fully tested yet with all my modules (i have 37 of them) but i did it with one and it works.
So this is what i did:
- I ran the FauxMo example just like you said and it activates on ports 11000 and 11001
I than went on alexa.amazon.com from my desktop and that is where i did the device discovery that found those sample devices… from my local echo it would not find anything. - I went on the MMM-AlexaOnOff.js file and changed the minimum required version to 2.4.1 which is what i have (others if they happen to look into this forum thread should change it according to theirs)
- I activated my sample 1 module on/off on my config.js and Alexa did find it but it did not do anything until i changed the name of the module to “module_6_MMM-horoscope” again just like you said above and than it worked :)
One last question: Through MMM-AlexaOnOff i want to create another on/off device called “Mirror” utilizing MMM-Remote-Control, that on On will send the command MONITORON and on Off with send the command MONITOROFF So will this work…I have no clue but just by dissecting your code???
{ name: "Mirror", on: { notification: "REMOTE_ACTION", payload: { action: "MONITORON"} }, off: { notification: "REMOTE_ACTION", payload: { action: "MONITOROFF"} },
Do you think i will have any issues with 37 modules??
I want to add them all on my config. js file before i run discovery on AlexaThank you
Denis - I ran the FauxMo example just like you said and it activates on ports 11000 and 11001
-
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
@shbatm When i try to run the FauxMo example i see that it says: started …
but there is no service running on port 21900 when i do “netstat -tulpn”
I get a bunch of services running but none on that port.
And when i try to discover devices, Alexa comes up saying that no new ones were found agian… so no Office Lamp and no Office FanI am running Magic Mirror M 2.4.1
Node version is: v6.13.0
Rasbian Stretch 9.6 release (it is updated and upgraded as of today but i do not know if it is the lates release since i have been playing with it for a while)one more time with some more explanation on the MMM-Remote-Control names please… i did not quite get it where would i find the names again and are they numbered by MMM-Remote-Control according to their place that they have on my congfig.js list ??
thank you for your help
Denis -
RE: [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
@shbatm Here is my config.js entry
{ module: 'MMM-AlexaOnOff', config: { devices: [{ name: "Horoscope Module", on: { notification: "REMOTE_ACTION", payload: { action: "SHOW", module: "MMM-horoscope" } }, off: { notification: "REMOTE_ACTION", payload: { action: "HIDE", module: "MMM-horoscope" } }, }] } },
and there is the pm2 logs
(the forum wont allow me to add a picture for some reason) but its all green when it comes to MMM-AlexaOnOff
I am on wifi on the same network as the echo, i am using IPv4 and of course on Rpi
I wish i could send you the picture of the pm2 logs… it says:
Connecting socket for: AlexaOnOff
Module helper started for module AlexaOnOff
Sockets connected & Module startedWhat do you think?? i do not see any errors
D
-
RE: Spotify Play?
@rasmus-rytter First you have to have a premium Spotify account to play outside authorized Spotify devices (google home device is a different story) and if you have Spotify Premium you need to install raspotify on your Raspberry Pi (if that is what you are using) and than you can sling music to it from your phone or ask google to play Spotify on your mirror.
So 2 things:- Spotify premium
- You dont play it on the Magic Mirror per say or form the module you play it form the outside of the mirror in if i am making any sense …the MMM-NowPlayingOnSpotify does exactly that …displays whats playing on your Spotify at that time whether in your phone, tablet or mirror but just displays the info and art that is it …it does not play the music.
Raspotify is the one that does play the music
D
-
RE: MMM-MirrorMirrorOnTheWall installation issue
@blackpanda Hey thank you for reviving the topic and happy new year.
Quick question were do i find the ‘AWS IoT>Secure>Policies’
so i can make the necessary changes at??Is it over on the MirrorMirrorOnTheWallSkill i have a aws-iot-device-sdk folder under src/node_modules but there is no Secure sub folder in it!!!
D