Fix motion off, help now displayed
on motion sensor the turn off now only set when it is in motion device sprecific help replace CRLF with unix LF
This commit is contained in:
@@ -234,31 +234,33 @@ sub XiaomiSmartHome_disconnect($)
|
|||||||
1;
|
1;
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
=item [helper|device|command]
|
=item device
|
||||||
=item summary Module fpr XiaomiSmartHome Gateway to use with FHEM
|
=item summary Module fpr XiaomiSmartHome Gateway to use with FHEM
|
||||||
=item summary_DE Modul um ein XiaomiSmartHome Gateyway in FHEM bekannt zu machen
|
=item summary_DE Modul um ein XiaomiSmartHome Gateyway in FHEM zu nutzen
|
||||||
|
|
||||||
=begin html
|
=begin html
|
||||||
<a name="xiaomismarthome"></a>
|
|
||||||
<h3>xiaomismarthome</h3>
|
<a name="XiaomiSmartHome"></a>
|
||||||
|
<h3>XiaomiSmartHome</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<i>XiaomiSmartHome</i> implements the XiaomiSmartHome Gateway and Sensors.
|
<i>XiaomiSmartHome</i> implements the XiaomiSmartHome Gateway and Sensors.
|
||||||
<a name="XiaomiSmartHome"></a>
|
<a name="XiaomiSmartHome"></a>
|
||||||
|
<br>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>define <name> XiaomiSmartHome <IP or Hostname></code>
|
<code>define <name> XiaomiSmartHome <IP or Hostname></code>
|
||||||
<br><br>
|
<br><br>
|
||||||
Example: <code>define XiaomiSmartHome XiaomiSmartHome 192.168.1.xxx</code>
|
Example: <code>define XiaomiSmartHome XiaomiSmartHome 192.168.1.xxx</code>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
</ul>
|
</ul>
|
||||||
=end html
|
=end html
|
||||||
|
|
||||||
=begin html_DE
|
=begin html_DE
|
||||||
<a name="xiaomismarthome"></a>
|
|
||||||
<h3>xiaomismarthome</h3>
|
<a name="XiaomiSmartHome"></a>
|
||||||
|
<h3>XiaomiSmartHome</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<i>XiaomiSmartHome</i> implements the XiaomiSmartHome Gateway and Sensors.
|
<i>XiaomiSmartHome</i> implements the XiaomiSmartHome Gateway and Sensors.
|
||||||
<a name="XiaomiSmartHome"></a>
|
<a name="XiaomiSmartHome"></a>
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ sub XiaomiSmartHome_Device_mot($$)
|
|||||||
|
|
||||||
sub XiaomiSmartHome_Device_on_timeout($){
|
sub XiaomiSmartHome_Device_on_timeout($){
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
readingsSingleUpdate($hash, "state", "off", 1 );
|
if ($hash->{STATE} eq 'motion') {
|
||||||
|
readingsSingleUpdate($hash, "state", "off", 1 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
@@ -116,6 +118,7 @@ sub XiaomiSmartHome_Device_Define($$) {
|
|||||||
AssignIoPort($hash);
|
AssignIoPort($hash);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#####################################
|
||||||
|
|
||||||
sub XiaomiSmartHome_Device_Undef($)
|
sub XiaomiSmartHome_Device_Undef($)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user