2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

22_HOMEMODE: v1.2.0 - fix commandref and name2alias

git-svn-id: https://svn.fhem.de/fhem/trunk@15610 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
deespe 2017-12-14 22:56:35 +00:00
parent 6753c7a60c
commit 4dd41a8320

View File

@ -2723,9 +2723,9 @@ sub HOMEMODE_name2alias($;$)
my ($name,$witharticle) = @_; my ($name,$witharticle) = @_;
my $alias = AttrVal($name,"alias",$name); my $alias = AttrVal($name,"alias",$name);
my $art; my $art;
$art = "der" if ($alias =~ /[Ss]ensor/); $art = "der" if ($alias =~ /sensor|dete[ck]tor|melder/i);
$art = "die" if ($alias =~ /[Tt](ü|ue)r/); $art = "die" if ($alias =~ /t(ü|ue)r/i);
$art = "das" if ($alias =~ /[Ff]enster/); $art = "das" if ($alias =~ /fenster/i);
my $ret = $witharticle && $art ? "$art $alias" : $alias; my $ret = $witharticle && $art ? "$art $alias" : $alias;
return $ret; return $ret;
} }
@ -4787,19 +4787,19 @@ sub HOMEMODE_Details($$$)
value of minimum weather forecast temperature value of minimum weather forecast temperature
</li> </li>
</ul> </ul>
<p>These placeholders can only be used within HomeCMDcontact and HomeCMDmotion attributes</p> <p>These placeholders can only be used within HomeCMDcontact, HomeCMDmotion and HomeCMDalarm attributes</p>
<ul> <ul>
<li> <li>
<b><i>%ALIAS%</i></b><br> <b><i>%ALIAS%</i></b><br>
alias of the last triggered contact/motion sensor alias of the last triggered contact/motion/smoke sensor
</li> </li>
<li> <li>
<b><i>%SENSOR%</i></b><br> <b><i>%SENSOR%</i></b><br>
name of the last triggered contact/motion sensor name of the last triggered contact/motion/smoke sensor
</li> </li>
<li> <li>
<b><i>%STATE%</i></b><br> <b><i>%STATE%</i></b><br>
state of the last triggered contact/motion sensor state of the last triggered contact/motion/smoke sensor
</li> </li>
</ul> </ul>
<p>These placeholders can only be used within calendar event related HomeCMDevent attributes</p> <p>These placeholders can only be used within calendar event related HomeCMDevent attributes</p>