mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
37_harmony.pm: workaround for erroneous activity changes due to home automation buttons.
see forum: https://forum.fhem.de/index.php/topic,14163.msg447336.html#msg447336 git-svn-id: https://svn.fhem.de/fhem/trunk@11474 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a07722767d
commit
2f7eeb0e4a
@ -979,7 +979,20 @@ harmony_Read($)
|
||||
} elsif( $tag eq "message" ) {
|
||||
|
||||
if( $content =~ m/type="harmony.engine\?startActivityFinished"/ ) {
|
||||
harmony_updateActivity($hash, $decoded->{activityId}) if( defined($decoded->{activityId}) );
|
||||
if( my $id = $decoded->{activityId} ) {
|
||||
if( harmony_activityOfId($hash, $id) ) {
|
||||
if( $id == -1 && $hash->{helper}{ignorePowerOff} ) {
|
||||
delete $hash->{helper}{ignorePowerOff};
|
||||
|
||||
} else {
|
||||
harmony_updateActivity($hash, $id);
|
||||
}
|
||||
|
||||
} else {
|
||||
$hash->{helper}{ignorePowerOff} = 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} elsif( $content =~ m/type="vnd.logitech.harmony\/vnd.logitech.control.button\?pressType"/ ) {
|
||||
DoTrigger( $name, "vnd.logitech.control.button: $decoded->{type}" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user