From c08c9f8f784cec6485d32ccd4bf9ae374e5ddb6b Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Thu, 18 Jul 2013 22:19:17 +0000 Subject: [PATCH] CUL_MAX: fakeSC affects all with same groupId != 0 git-svn-id: https://svn.fhem.de/fhem/trunk@3447 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/14_CUL_MAX.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/14_CUL_MAX.pm b/fhem/FHEM/14_CUL_MAX.pm index db55a1874..1b13a23e1 100644 --- a/fhem/FHEM/14_CUL_MAX.pm +++ b/fhem/FHEM/14_CUL_MAX.pm @@ -187,7 +187,8 @@ CUL_MAX_Set($@) return "Invalid fakeSCaddr attribute set (must not be 000000)" if(CUL_MAX_fakeSCaddr($hash) eq "000000"); my $state = $args[1] ? "12" : "10"; - return CUL_MAX_Send($hash, "ShutterContactState",$dest,$state, flags => "06", src => CUL_MAX_fakeSCaddr($hash)); + my $groupid = ReadingsVal($hash,"groupid",0); + return CUL_MAX_Send($hash, "ShutterContactState",$dest,$state, groupId => sprintf("%02x",$groupid), flags => ( $groupid ? "04" : "06" ), src => CUL_MAX_fakeSCaddr($hash)); } elsif($setting eq "fakeWT") { return "Invalid number of arguments" if(@args != 3); @@ -553,9 +554,9 @@ CUL_MAX_BroadcastTime(@)
  • pairmode
    Sets the CUL_MAX into pairing mode for 60 seconds where it can be paired with other devices (Thermostats, Buttons, etc.). You also have to set the other device into pairing mode manually. (For Thermostats, this is pressing the "Boost" button for 3 seconds, for example).
  • fakeSC <device> <open>
    - Sends a fake ShutterContactState message; <open> must be 0 or 1 for "window closed" or "window opened". Make sure you associate the target device with fakeShutterContact beforehand.
  • + Sends a fake ShutterContactState message; <open> must be 0 or 1 for "window closed" or "window opened". If the <device> has a non-zero groupId, the fake ShutterContactState message affects all devices with that groupId. Make sure you associate the target device(s) with fakeShutterContact beforehand.
  • fakeWT <device> <desiredTemperature> <measuredTemperature>
    - Sends a fake WallThermostatControl message (parameters both may have one digit after the decimal point, for desiredTemperature it may only by 0 or 5). Make sure you associate the target device with fakeWallThermostat beforehand.
  • + Sends a fake WallThermostatControl message (parameters both may have one digit after the decimal point, for desiredTemperature it may only by 0 or 5). If the <device> has a non-zero groupId, the fake WallThermostatControl message affects all devices with that groupId. Make sure you associate the target device with fakeWallThermostat beforehand.