mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +00:00
72_XiaomiDevice: Vacuum segment names fix
git-svn-id: https://svn.fhem.de/fhem/trunk@22358 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
77d1e376ca
commit
27ec49e1b5
@ -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.
|
||||||
|
- bugfix: 72_XiaomiDevice: Vacuum segment names fix
|
||||||
- feature: 51_MOBILEALERTS: Added Sensor MA 10238
|
- feature: 51_MOBILEALERTS: Added Sensor MA 10238
|
||||||
- bugfix 73_AutoShuttersControl: fix bug in
|
- bugfix 73_AutoShuttersControl: fix bug in
|
||||||
./lib/FHEM/Automation/ShuttersControl.pm
|
./lib/FHEM/Automation/ShuttersControl.pm
|
||||||
|
@ -1089,7 +1089,7 @@ sub XiaomiDevice_Set($$@) {
|
|||||||
my $segment = join(",", @arg);
|
my $segment = join(",", @arg);
|
||||||
$segment = $hash->{helper}{segments}{$arg[0]} if(defined($hash->{helper}{segments}) && defined($hash->{helper}{segments}{$arg[0]}));
|
$segment = $hash->{helper}{segments}{$arg[0]} if(defined($hash->{helper}{segments}) && defined($hash->{helper}{segments}{$arg[0]}));
|
||||||
|
|
||||||
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_segment_clean","params":['.$arg[0].']}' );
|
XiaomiDevice_WriteJSON($hash, '{"id":'.$packetid.',"method":"app_segment_clean","params":['.$segment.']}' );
|
||||||
}
|
}
|
||||||
elsif ($cmd eq 'segment_stop')
|
elsif ($cmd eq 'segment_stop')
|
||||||
{
|
{
|
||||||
@ -3677,7 +3677,7 @@ sub XiaomiDevice_Attr($$$) {
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($attrName eq "zone_names" || $attrName eq "point_names" || $attrName eq "map_names") {
|
if($attrName eq "zone_names" || $attrName eq "point_names" || $attrName eq "map_names" || $attrName eq "segment_names") {
|
||||||
my $hash = $defs{$name};
|
my $hash = $defs{$name};
|
||||||
InternalTimer( gettimeofday() + 2, "XiaomiDevice_ReadZones", $hash);
|
InternalTimer( gettimeofday() + 2, "XiaomiDevice_ReadZones", $hash);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user