2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-27 20:34:52 +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:
moises 2020-07-06 14:14:40 +00:00
parent 77d1e376ca
commit 27ec49e1b5
2 changed files with 31 additions and 30 deletions

@ -1,5 +1,6 @@
# 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.
- bugfix: 72_XiaomiDevice: Vacuum segment names fix
- feature: 51_MOBILEALERTS: Added Sensor MA 10238
- bugfix 73_AutoShuttersControl: fix bug in
./lib/FHEM/Automation/ShuttersControl.pm

@ -1089,7 +1089,7 @@ sub XiaomiDevice_Set($$@) {
my $segment = join(",", @arg);
$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')
{
@ -3677,7 +3677,7 @@ sub XiaomiDevice_Attr($$$) {
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};
InternalTimer( gettimeofday() + 2, "XiaomiDevice_ReadZones", $hash);
}