From d94e248bc2107e0d4cacb6b7a7149be29c6159b7 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Fri, 5 Feb 2016 21:26:22 +0000 Subject: [PATCH] 37_harmony.pm: added automation.state and vnd.logitech.control.button events git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10729 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/37_harmony.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FHEM/37_harmony.pm b/FHEM/37_harmony.pm index ef29eaa36..c95c981b3 100644 --- a/FHEM/37_harmony.pm +++ b/FHEM/37_harmony.pm @@ -980,6 +980,12 @@ harmony_Read($) if( $content =~ m/type="harmony.engine\?startActivityFinished"/ ) { 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 { Log3 $name, 4, "$name: unknown message: $content";