mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
10_GFPROBT: fix eco values
git-svn-id: https://svn.fhem.de/fhem/trunk@22001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec3e5131a4
commit
213c798bf4
@ -48,7 +48,7 @@ sub GFPROBT_Define($$$) {
|
||||
|
||||
$hash->{NAME} = $name;
|
||||
$hash->{STATE} = "initialized";
|
||||
$hash->{VERSION} = "2.1.0";
|
||||
$hash->{VERSION} = "2.0.0";
|
||||
$hash->{loglevel} = 4;
|
||||
Log3 $hash, 3, "GFPROBT: G.F.Pro Eco Watering Bluetooth ".$hash->{VERSION};
|
||||
|
||||
@ -776,8 +776,8 @@ sub GFPROBT_execGatttool($) {
|
||||
$json{'timer'.$timercnt."-Weekdays"} = join(",", @{$timers{$hour}{$minute}{$duration}});
|
||||
if ($ecoValuesHex ne "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00") {
|
||||
#get week of eco activation based on known eco sequence
|
||||
my $defaultEcoValues = "0000000000280e0e0b14110e0d0b1914111d16120f0b07040302020000fefefdfcf9f6f3f1eeeaf2efecf6f5f3f2eff6f5f3e300";
|
||||
$defaultEcoValues .= "0000000000280e0e0b14110e0d0b1914111d16120f0b07040302020000fefefdfcf9f6f3f1eeeaf2efecf6f5f3f2eff6f5f3e300";
|
||||
my $defaultEcoValues = "0000000000280e0d0b14110e0d0b1914111d16120f0b07040302020000fefefdfcf9f6f3f1eeeaf2efecf6f5f3f2eff6f5f3e300";
|
||||
$defaultEcoValues .= "0000000000280e0d0b14110e0d0b1914111d16120f0b07040302020000fefefdfcf9f6f3f1eeeaf2efecf6f5f3f2eff6f5f3e300";
|
||||
my $ecoVals = join("", split(" ", $ecoValuesHex));
|
||||
#search ecoVals in defaultEcoValues to get activation week
|
||||
my $weekPos = index($defaultEcoValues, $ecoVals);
|
||||
|
Loading…
Reference in New Issue
Block a user