From 74b31ec408a0d51f4e67ad12b39d093059c5e9da Mon Sep 17 00:00:00 2001 From: Byte09 <> Date: Sun, 7 Jul 2019 05:36:30 +0000 Subject: [PATCH] 98_Siro.pm:fix fav / channel 0 git-svn-id: https://svn.fhem.de/fhem/trunk@19790 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_Siro.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_Siro.pm b/fhem/FHEM/98_Siro.pm index 3a241e40f..360601f34 100644 --- a/fhem/FHEM/98_Siro.pm +++ b/fhem/FHEM/98_Siro.pm @@ -839,7 +839,14 @@ sub Set($@) { readingsSingleUpdate( $hash, "ActionTrigger", "fhem", 1 ); # name befehl befehlscode $hash->{helper}{exexcmd}="on"; - SendCommand( $hash, $sendCommands{$cmd} ); + + + Log3( $name, 5, "Siro-def0: sende kommando ".$sendCommands{$cmd}); + + if ($sendCommands{$cmd} eq 'fav'){ + SendCommand( $hash, 'stop' , 'longstop' );} + else{ + SendCommand( $hash, $sendCommands{$cmd} );} return; }