Re: [mh] Help for Alexa Integration - Episode #2 : Xiaomi vacuum (mirobo)

Gianni Veloce via misterhouse-users <[email protected]> Fri, 18 Mar 2022 06:19:24 +0000 (UTC)
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
 Thankx Waynethat sounds very promising!can you pls give an example for this eg how to make a custom voice command routine in Alexa that will trigger a voice command in MH?
TIA 
GV
    On Friday, March 18, 2022, 05:02:44 AM GMT+2, Wayne Gatlin <[email protected]> wrote:  
 
 In the Alexa app go to "more" then "routines", you can make custom voice commands that trigger smart devices to what ever state you want among other things.


On Wed, Mar 16, 2022, 12:56 PM Gianni Veloce <[email protected]> wrote:

 Dear Wayne
Thanks another time for your reply.
The proposed  workarounds seem  to be working as already thought of them as a possibility. Their drawback though is that using the Mobile Alexa App you still see the On and Off buttons but this not a big issue.
But the sentence " Either way, you then make a routine in the Alexa app with the commands you want to say and map the routine action to the MH AlexaItems you made in the last step. " is not so well understood by me.So could you pls elaborate a bit more about this routine?
In addition checking the MH support site I found a promising solution for Alexa Voice control of higher effort/complexity published 5 years ago with no further followupMisterHouse: Home Automation with Perl / Re: [mh] MisterHouse and Echo integrationHas anyone implemented such solution to share experiences?



TIA
GV

"
    On Wednesday, March 16, 2022, 03:39:36 AM GMT+2, Wayne Gatlin <[email protected]> wrote:  
 You only have on and off commands with the hue emulation. But what I do is make enough AlexaItems to map all the commands to on and off, so you would need 3 here, the last one you can map on and off to the same command. Or a cleaner method is to just make 5 AlexaItems, 1 for each command and map on and off to each command so you can easily tell what each one is. Either way, you then make a routine in the Alexa app with the commands you want to say and map the routine action to the MH AlexaItems you made in the last step. 
I did this for my garage door so I can say open instead of on, also for my tv volume, etc.


I considered adding some code to automatically add routines for custom commands but I never go to it.


On Sat, Mar 12, 2022, 12:26 PM Gianni Veloce via misterhouse-users <[email protected]> wrote:

Hi MH-lovers!
Having solved the issues with my Alexa (grace to your great support) I have managed finally to voice control all my lights (a mixture of X10 and Insteon, I know it is old-fashion but heading soon for tasmotized Sonoffs:))
Happy after that initial success I tried to integrate to Alexa my Xiaomi Roborock S6 vacuum.For those that may not know there is a script for linux that works pretty well with various Xiaomi models and you can find it herehttps://github.com/haim0n/python-mirobo
But the issue with Alexa is that afaik AlexaBridge is allowing only ON and OFF commands, so when I put in my items.mhta line with all the command options for the Xiaomi vacuumALEXABRIDGE_ADD, AlexaItems, !_vacuum, Vacuum, run_voice_cmd, start, stop,  find, home, pauseAlexa responds only to the two first (start and stop that are linked to on and off).
So i ask you experts is there any way to make Alexa respond to all 5 commands? 
TIAGV
P.S. here is my mirobo.pl$v_vac1 = new Voice_Cmd '[start,stop,find,home,pause] vacuum';if ($state = said $v_vac1) {    speak "$state vacuum";    `mirobo $state`;} 
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users