2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

37_harmony.pm: added automation.state and vnd.logitech.control.button events

git-svn-id: https://svn.fhem.de/fhem/trunk@10729 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-02-05 21:26:22 +00:00
parent defda9d835
commit 8caf73c292

View File

@ -980,6 +980,12 @@ harmony_Read($)
if( $content =~ m/type="harmony.engine\?startActivityFinished"/ ) { if( $content =~ m/type="harmony.engine\?startActivityFinished"/ ) {
harmony_updateActivity($hash, $decoded->{activityId}) if( defined($decoded->{activityId}) ); harmony_updateActivity($hash, $decoded->{activityId}) if( defined($decoded->{activityId}) );
} elsif( $content =~ m/type="vnd.logitech.harmony\/vnd.logitech.control.button\?pressType"/ ) {
DoTrigger( $name, "vnd.logitech.control.button: $decoded->{type}" );
} elsif( $content =~ m/type="automation.state\?notify"/ ) {
DoTrigger( $name, "automation.state: $cdata" );
} else { } else {
Log3 $name, 4, "$name: unknown message: $content"; Log3 $name, 4, "$name: unknown message: $content";