diff --git a/fhem/FHEM/22_HOMEMODE.pm b/fhem/FHEM/22_HOMEMODE.pm index 9713edb39..96918d39d 100644 --- a/fhem/FHEM/22_HOMEMODE.pm +++ b/fhem/FHEM/22_HOMEMODE.pm @@ -2723,9 +2723,9 @@ sub HOMEMODE_name2alias($;$) my ($name,$witharticle) = @_; my $alias = AttrVal($name,"alias",$name); my $art; - $art = "der" if ($alias =~ /[Ss]ensor/); - $art = "die" if ($alias =~ /[Tt](ü|ue)r/); - $art = "das" if ($alias =~ /[Ff]enster/); + $art = "der" if ($alias =~ /sensor|dete[ck]tor|melder/i); + $art = "die" if ($alias =~ /t(ü|ue)r/i); + $art = "das" if ($alias =~ /fenster/i); my $ret = $witharticle && $art ? "$art $alias" : $alias; return $ret; } @@ -4787,19 +4787,19 @@ sub HOMEMODE_Details($$$) value of minimum weather forecast temperature -
These placeholders can only be used within HomeCMDcontact and HomeCMDmotion attributes
+These placeholders can only be used within HomeCMDcontact, HomeCMDmotion and HomeCMDalarm attributes
These placeholders can only be used within calendar event related HomeCMDevent attributes