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

Wayne Gatlin <[email protected]> Thu, 17 Mar 2022 22:01:27 -0500
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <CANgJVDdwqwS9tG+h0X6KR2b52io2SPn7qPLRafEhUt=21EhtFw@mail.gmail.com>
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 followup
> MisterHouse: Home Automation with Perl / Re: [mh] MisterHouse and Echo
> integration
> <https://sourceforge.net/p/misterhouse/mailman/message/35607985/>
> Has 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 here
> https://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.mht
> a line with all the command options for the Xiaomi vacuum
> ALEXABRIDGE_ADD, AlexaItems, !_vacuum, Vacuum, run_voice_cmd, start,
> stop,  find, home, pause
> Alexa 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?
>
> TIA
> GV
>
> 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
1647572268724.jpg (image/jpeg, 194.8 KB) - not displayed