mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
72_XiaomiDevice: carpet mode for v1 vacuum
git-svn-id: https://svn.fhem.de/fhem/trunk@16574 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a18009d0ae
commit
48f7434da8
@ -1,7 +1,7 @@
|
|||||||
# 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.
|
||||||
- bugfix: 00_SIGNALduino: fixed ws7000 decoding
|
- bugfix: 00_SIGNALduino: fixed ws7000 decoding
|
||||||
- feature: 72_XiaomiDevice: predefined zones and points
|
- feature: 72_XiaomiDevice: predefined zones and points, carpet mode
|
||||||
- bugfix: 88_xs1Bridge: blacklist PEARL Warning + Code mod
|
- bugfix: 88_xs1Bridge: blacklist PEARL Warning + Code mod
|
||||||
- feature: 74_AMADDevice: add support to set and read Adaptive brightness
|
- feature: 74_AMADDevice: add support to set and read Adaptive brightness
|
||||||
- bugfix: 88_xs1Bridge: blacklist option (forum #790923)
|
- bugfix: 88_xs1Bridge: blacklist option (forum #790923)
|
||||||
|
@ -535,7 +535,7 @@ sub XiaomiDevice_Set($$@) {
|
|||||||
}
|
}
|
||||||
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 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 .= ' carpet_mode:on,off' if(!defined($hash->{model}) || $hash->{model} ne "rockrobo.vacuum.v1");
|
$list .= ' carpet_mode:on,off';
|
||||||
$list .= ' sleep:noArg wakeup:noArg';
|
$list .= ' sleep:noArg wakeup:noArg';
|
||||||
|
|
||||||
$list .= ' fan_power:slider,1,1,100' if(defined($hash->{model}) && $hash->{model} eq "rockrobo.vacuum.v1");
|
$list .= ' fan_power:slider,1,1,100' if(defined($hash->{model}) && $hash->{model} eq "rockrobo.vacuum.v1");
|
||||||
@ -1606,8 +1606,6 @@ sub XiaomiDevice_GetSettings($)
|
|||||||
$hash->{helper}{packet}{$packetid} = "get_sound_volume";
|
$hash->{helper}{packet}{$packetid} = "get_sound_volume";
|
||||||
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"get_sound_volume","params":[""]}' );
|
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"get_sound_volume","params":[""]}' );
|
||||||
|
|
||||||
return undef if(defined($hash->{model}) && $hash->{model} eq "rockrobo.vacuum.v1");
|
|
||||||
|
|
||||||
$packetid = $hash->{helper}{packetid};
|
$packetid = $hash->{helper}{packetid};
|
||||||
$hash->{helper}{packetid} = $packetid+1;
|
$hash->{helper}{packetid} = $packetid+1;
|
||||||
$hash->{helper}{packet}{$packetid} = "get_carpet_mode";
|
$hash->{helper}{packet}{$packetid} = "get_carpet_mode";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user