Re: [mh] Help for Alexa Integration - Episode #2 : Xiaomi vacuum (mirobo)
Gianni Veloce via misterhouse-users <[email protected]> Tue, 15 Mar 2022 08:00:04 +0000 (UTC)
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Paul
I understand that "Hue Emulation" is allowing to have Alexa sending to MH. only on and off commands My question was if there are ways to send more voice commands from Alexa to MH and not only those which are ON/OFFAs an example I provided in my below email the Xiaomi Mirobo voice commandsLooking forward to receive some hints or at least to know that this is impossible in MH?
TIA GV
On Tuesday, March 15, 2022, 02:06:40 AM GMT+2, Paul Onley <[email protected]> wrote:
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
________________________________________________________
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