mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
MAX: allow pairing of WallThermostat and ShutterContact by Gui
git-svn-id: https://svn.fhem.de/fhem/trunk@4553 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9e58d5ac88
commit
edb6f45fec
@ -525,8 +525,20 @@ MAX_Set($@)
|
||||
$assoclist .= "," if(length($assoclist));
|
||||
$assoclist .= "fakeWallThermostat,fakeShutterContact";
|
||||
}
|
||||
} elsif($hash->{type} eq "ShutterContact" || $hash->{type} eq "WallMountedThermostat") {
|
||||
$assoclist = join(",", map { defined($_->{type}) && $_->{type} =~ /HeatingThermostat.*/ ? $_->{NAME} : () } values %{$modules{MAX}{defptr}});
|
||||
|
||||
} elsif($hash->{type} =~ /WallMountedThermostat/) {
|
||||
$assoclist = join(",", map { defined($_->{type}) &&
|
||||
($_->{type} eq "HeatingThermostat"
|
||||
|| $_->{type} eq "HeatingThermostatPlus"
|
||||
|| $_->{type} eq "ShutterContact")
|
||||
&& $_ != $hash ? $_->{NAME} : () } values %{$modules{MAX}{defptr}});
|
||||
if($hash->{IODev}->{TYPE} eq "CUL_MAX") {
|
||||
$assoclist .= "," if(length($assoclist));
|
||||
$assoclist .= "fakeShutterContact";
|
||||
}
|
||||
|
||||
} elsif($hash->{type} eq "ShutterContact") {
|
||||
$assoclist = join(",", map { defined($_->{type}) && $_->{type} =~ /.*Thermostat.*/ ? $_->{NAME} : () } values %{$modules{MAX}{defptr}});
|
||||
}
|
||||
|
||||
my $templistOffset = join(",",map { MAX_SerializeTemperature(($_-7)/2) } (0..14));
|
||||
|
Loading…
Reference in New Issue
Block a user