Re: [mh] Help for Alexa Integration - Episode #2 : Xiaomi vacuum (mirobo)
Paul Onley <[email protected]> Mon, 14 Mar 2022 17:55:54 -0500
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
ALEXABRIDGE_ADD, AlexaItems, set_sleep_!, Sleep,
run_voice_cmd, on, off
$v_set_sleep = new Voice_Cmd("set sleep [raise,on,off,25]");
$p_set_sleep = new Process_Item;
if ( my $state = said $v_set_sleep ){
$Sleep_mode=$state;
}
This sets the global var $Sleep_mode to what was said that was picked up
by the !
On 3/14/22 4:11 PM, Gianni Veloce via misterhouse-users wrote:
> Hi again MH-lovers!
>
> Sadly did not get too many responses to my question below...
> So may I suppose that what i asked is unachievable within Misterhouse?
>
> Or maybe ask you a more general question:
> Does anyone of you have integrated somehow Alexa to Misterhouse to be
> able to send "MH" voice commands ?
> (i mean those defined with voice_cmd)
>
> TIA
> GV
>
> On Saturday, March 12, 2022, 08:26:53 PM GMT+2, 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
> <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