2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

SetExtensions.pm: remove eventmap workaround for EnOcean devices

git-svn-id: https://svn.fhem.de/fhem/trunk@6982 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-11-15 15:10:03 +00:00
parent 98885885b3
commit 369ad2e219

View File

@ -32,7 +32,11 @@ SetExtensions($$@)
$hasOn = ($em =~ m/:on\b/) if(!$hasOn); $hasOn = ($em =~ m/:on\b/) if(!$hasOn);
$hasOff = ($em =~ m/:off\b/) if(!$hasOff); $hasOff = ($em =~ m/:off\b/) if(!$hasOff);
} }
$cmd = ReplaceEventMap($name, $cmd, 1) if($cmd ne "?"); # Fix B0-for-timer # Following is fix for: /B0:on/on-for-timer 300:5 Minuten/
# $cmd = ReplaceEventMap($name, $cmd, 1) if($cmd ne "?");
# Has problem with (Forum #28855):
# /on-for-timer 300:5 Minuten/on:Ein/ -> Ein-for-timer
# Workaround for Problem#1 /on-for-timer 300:5 Minuten/B0:on/
(undef, $value) = ReplaceEventMap($name, [$name, $value], 0); (undef, $value) = ReplaceEventMap($name, [$name, $value], 0);
} }
if(!$hasOn || !$hasOff) { # No extension if(!$hasOn || !$hasOff) { # No extension