2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

91_eventTypes.pm: add Hue + Hm reductions (Forum #34549)

git-svn-id: https://svn.fhem.de/fhem/trunk@8725 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-06-10 09:50:06 +00:00
parent f0c917530c
commit ed928a00a9

View File

@ -39,6 +39,8 @@ et_addEvt($$$;$)
return 0 if(length($evt) > 80); # Safety
$evt =~ s/ *$//; # HM?
$evt =~ s/(Long|LongRelease) \d+_\d+/$1 .* /; # HM?
$evt =~ s/rgb: [0-9a-f]{6}/rgb: .*/; # Hue
$evt =~ s/: [0-9A-F]*$/: .*/; # PANSTAMP
$evt =~ s/\b-?\d*\.?\d+\b/.*/g; # Number to .*
$evt =~ s/\.\*.*\.\*/.*/g; # Multiple wildcards to one