mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
74_XiaomiFlowerSens: new Attributs minLux and maxLux
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13816 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d2cc34e115
commit
3589a54cf4
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- feature: 74_XiaomiFlowerSens: 1.0.1 new Attributs minLux and maxLux
|
||||
- feature: 98_monitoring: blacklist attribute is now a space seperated list
|
||||
of devspecs instead a comma seperated list of devices
|
||||
- bugfix: 32_withings: web token fix
|
||||
|
@ -36,7 +36,7 @@ use JSON;
|
||||
use Blocking;
|
||||
|
||||
|
||||
my $version = "1.0.0";
|
||||
my $version = "1.0.1";
|
||||
|
||||
|
||||
|
||||
@ -78,6 +78,8 @@ sub XiaomiFlowerSens_Initialize($) {
|
||||
"maxTemp ".
|
||||
"minMoisture ".
|
||||
"maxMoisture ".
|
||||
"minLux ".
|
||||
"maxLux ".
|
||||
"sshHost ".
|
||||
$readingFnAttributes;
|
||||
|
||||
@ -560,6 +562,9 @@ sub XiaomiFlowerSens_BlockingDone($) {
|
||||
DoTrigger($name, 'minMoisture ' . ($response_json->{moisture}<AttrVal($name,'minMoisture',0)?'low':'ok')) if( AttrVal($name,'minMoisture','none') ne 'none' );
|
||||
DoTrigger($name, 'maxMoisture ' . ($response_json->{moisture}>AttrVal($name,'maxMoisture',0)?'high':'ok')) if( AttrVal($name,'maxMoisture','none') ne 'none' );
|
||||
|
||||
DoTrigger($name, 'minLux ' . ($response_json->{lux}<AttrVal($name,'minLux',0)?'low':'ok')) if( AttrVal($name,'minLux','none') ne 'none' );
|
||||
DoTrigger($name, 'maxLux ' . ($response_json->{lux}>AttrVal($name,'maxLux',0)?'high':'ok')) if( AttrVal($name,'maxLux','none') ne 'none' );
|
||||
|
||||
|
||||
Log3 $name, 4, "Sub XiaomiFlowerSens_BlockingDone ($name) - Abschluss!";
|
||||
}
|
||||
@ -653,7 +658,9 @@ sub XiaomiFlowerSens_BlockingAborted($) {
|
||||
<li>minMoisture - min moisture value befor low warn event</li>
|
||||
<li>maxMoisture - max moisture value befor High warn event</li>
|
||||
<li>minTemp - min temperature value befor low warn event</li>
|
||||
<li>maxTemp - max temperature value befor high warn event
|
||||
<li>maxTemp - max temperature value befor high warn event</li>
|
||||
<li>minlux - min lux value befor low warn event</li>
|
||||
<li>maxlux - max lux value befor high warn event
|
||||
<br>
|
||||
Event Example for min/max Value's: 2017-03-16 11:08:05 XiaomiFlowerSens Dracaena minMoisture low<br>
|
||||
Event Example for min/max Value's: 2017-03-16 11:08:06 XiaomiFlowerSens Dracaena maxTemp high</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user