mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
PRESENCE: "statusRequest" command for lan-bluetooth mode
git-svn-id: https://svn.fhem.de/fhem/trunk@4341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ad1fc6793b
commit
50308f0c17
@ -1,6 +1,8 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- SVN
|
||||
- feature: PRESENCE: "statusRequest" command for lan-bluetooth mode
|
||||
(collectord >= 1.4, presenced >= 1.1 required)
|
||||
- feature: PRESENCE: new collectord package
|
||||
- feature: devspec: removed range, added :FILTER and more general search
|
||||
- feature: HUEBridge,HUEDevice: support for groups added
|
||||
|
@ -262,16 +262,26 @@ PRESENCE_Set($@)
|
||||
|
||||
return "No Argument given" if(!defined($a[1]));
|
||||
|
||||
my $usage = (defined($hash->{MODE}) and $hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef);
|
||||
my $usage = "Unknown argument ".$a[1].", choose one of statusRequest";
|
||||
|
||||
if($a[1] eq "statusRequest")
|
||||
{
|
||||
if($hash->{MODE} ne "lan-bluetooth")
|
||||
{
|
||||
PRESENCE_StartLocalScan($hash, 1);
|
||||
return "";
|
||||
return undef;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if(exists($hash->{FD}))
|
||||
{
|
||||
DevIo_SimpleWrite($hash, "now\n", 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "PRESENCE Definition \"".$hash->{NAME}."\" is not connected to ".$hash->{DeviceName};
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1063,7 +1073,7 @@ Options:
|
||||
|
||||
<ul>
|
||||
<li>direct perl script file: <a href="http://svn.code.sf.net/p/fhem/code/trunk/fhem/contrib/PRESENCE/collectord" target="_new">collectord</a></li>
|
||||
<li>.deb package for Debian (noarch): <a href="http://svn.code.sf.net/p/fhem/code/trunk/fhem/contrib/PRESENCE/deb/collectord-1.3.deb" target="_new">collectord-1.3.deb</a></li>
|
||||
<li>.deb package for Debian (noarch): <a href="http://svn.code.sf.net/p/fhem/code/trunk/fhem/contrib/PRESENCE/deb/collectord-1.4.deb" target="_new">collectord-1.4.deb</a></li>
|
||||
</ul>
|
||||
</ul><br><br>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user