mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
72_XiaomiDevice: added zone and goto for all robots
git-svn-id: https://svn.fhem.de/fhem/trunk@16545 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ea2d8f1ce3
commit
85924d67d7
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 72_XiaomiDevice: added zone and goto
|
||||||
- bugfix: 57_Calendar: fix weekly events, get full all, defaultTimeFormat
|
- bugfix: 57_Calendar: fix weekly events, get full all, defaultTimeFormat
|
||||||
- change: 93_DbLog: V3.10.0, addLog considers DbLogExclude in Devices,
|
- change: 93_DbLog: V3.10.0, addLog considers DbLogExclude in Devices,
|
||||||
keyword "!useExcludes" to switch off considering
|
keyword "!useExcludes" to switch off considering
|
||||||
|
@ -530,7 +530,7 @@ sub XiaomiDevice_Set($$@) {
|
|||||||
$list .= " on:noArg off:noArg";
|
$list .= " on:noArg off:noArg";
|
||||||
}
|
}
|
||||||
elsif( defined($attr{$name}) && defined($attr{$name}{subType}) && $attr{$name}{subType} eq "VacuumCleaner"){
|
elsif( defined($attr{$name}) && defined($attr{$name}{subType}) && $attr{$name}{subType} eq "VacuumCleaner"){
|
||||||
$list .= ' start:noArg stop:noArg pause:noArg spot:noArg charge:noArg locate:noArg dnd_enabled:on,off dnd_start dnd_end move remotecontrol:start,stop,forward,left,right reset_consumable:filter,mainbrush,sidebrush,sensors timezone volume:slider,0,1,100 volume_test:noArg';
|
$list .= ' start:noArg stop:noArg pause:noArg spot:noArg zone charge:noArg locate:noArg dnd_enabled:on,off dnd_start dnd_end goto move remotecontrol:start,stop,forward,left,right reset_consumable:filter,mainbrush,sidebrush,sensors timezone volume:slider,0,1,100 volume_test:noArg';
|
||||||
$list .= ' carpet_mode:on,off' if($hash->{model} ne "rockrobo.vacuum.v1");
|
$list .= ' carpet_mode:on,off' if($hash->{model} ne "rockrobo.vacuum.v1");
|
||||||
$list .= ' sleep:noArg wakeup:noArg';
|
$list .= ' sleep:noArg wakeup:noArg';
|
||||||
|
|
||||||
@ -702,6 +702,21 @@ sub XiaomiDevice_Set($$@) {
|
|||||||
$hash->{helper}{packet}{$packetid} = "app_spot";
|
$hash->{helper}{packet}{$packetid} = "app_spot";
|
||||||
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_spot","params":[""]}' );
|
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_spot","params":[""]}' );
|
||||||
}
|
}
|
||||||
|
elsif ($cmd eq 'zone')
|
||||||
|
{
|
||||||
|
my $packetid = $hash->{helper}{packetid};
|
||||||
|
$hash->{helper}{packetid} = $packetid+1;
|
||||||
|
$hash->{helper}{packet}{$packetid} = "app_zoned_clean";
|
||||||
|
my $zone = join("],[", @arg);
|
||||||
|
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_zoned_clean","params":['.$zone.']}' );
|
||||||
|
}
|
||||||
|
elsif ($cmd eq 'goto')
|
||||||
|
{
|
||||||
|
my $packetid = $hash->{helper}{packetid};
|
||||||
|
$hash->{helper}{packetid} = $packetid+1;
|
||||||
|
$hash->{helper}{packet}{$packetid} = "app_goto_target";
|
||||||
|
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_goto_target","params":['.$arg[0].']}' );
|
||||||
|
}
|
||||||
elsif ($cmd eq 'pause')
|
elsif ($cmd eq 'pause')
|
||||||
{
|
{
|
||||||
my $packetid = $hash->{helper}{packetid};
|
my $packetid = $hash->{helper}{packetid};
|
||||||
@ -2771,6 +2786,10 @@ sub XiaomiDevice_DbLog_splitFn($) {
|
|||||||
<br>
|
<br>
|
||||||
Start spot cleaning
|
Start spot cleaning
|
||||||
</li><br>
|
</li><br>
|
||||||
|
<li><code>zone</code> pointA1,pointA2,pointA3,pointA4 [pointB1,pointB2,pointB3,pointB4]<i>(VacuumCleaner)</i>
|
||||||
|
<br>
|
||||||
|
Start zone cleaning (enter points for one or more valid zones)
|
||||||
|
</li><br>
|
||||||
<li><code>pause</code> <i>(VacuumCleaner)</i>
|
<li><code>pause</code> <i>(VacuumCleaner)</i>
|
||||||
<br>
|
<br>
|
||||||
Pause cleaning
|
Pause cleaning
|
||||||
@ -2783,6 +2802,10 @@ sub XiaomiDevice_DbLog_splitFn($) {
|
|||||||
<br>
|
<br>
|
||||||
Return to dock
|
Return to dock
|
||||||
</li><br>
|
</li><br>
|
||||||
|
<li><code>goto</code> pointX,pointY <i>(VacuumCleaner)</i>
|
||||||
|
<br>
|
||||||
|
Go to point X/Y (needs to be valid on the map)
|
||||||
|
</li><br>
|
||||||
<li><code>locate</code> <i>(VacuumCleaner)</i>
|
<li><code>locate</code> <i>(VacuumCleaner)</i>
|
||||||
<br>
|
<br>
|
||||||
Locate the vacuum cleaner
|
Locate the vacuum cleaner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user