2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-05 17:48:44 +00:00

31_HUEDevice.pm: allow 5s intervall for sensors

git-svn-id: https://svn.fhem.de/fhem/trunk@12098 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-08-31 13:00:24 +00:00
parent 383a692228
commit ceb98316e9

View File

@ -252,12 +252,11 @@ sub HUEDevice_Define($$)
$interval = 60 unless defined($interval);
}
$interval = 60 if( $interval && $interval < 10 );
$args[3] = "" if( !defined( $args[3] ) );
if( !$hash->{helper}->{devtype} ) {
$hash->{DEF} = "$id $args[3] IODev=$iodev";
$interval = 60 if( $interval && $interval < 10 );
$hash->{INTERVAL} = $interval;
$hash->{helper}{on} = -1;
@ -294,6 +293,8 @@ sub HUEDevice_Define($$)
} elsif( $hash->{helper}->{devtype} eq 'S' ) {
$hash->{DEF} = "sensor $id $args[3] IODev=$iodev";
$interval = 60 if( $interval && $interval < 5 );
$hash->{INTERVAL} = $interval;
}