remove ASC_slatDriveCmdInverse and the extended Fn Code
This commit is contained in:
		| @@ -97,7 +97,6 @@ sub Initialize { | ||||
|       . 'ASC_expert:1 ' | ||||
|       . 'ASC_blockAscDrivesAfterManual:0,1 ' | ||||
|       . 'ASC_debug:1 ' | ||||
|       . 'ASC_slatDriveCmdInverse:0,1 ' | ||||
|       . $readingFnAttributes; | ||||
|     $hash->{NotifyOrderPrefix} = '51-';    # Order Nummer für NotifyFn | ||||
|     $hash->{FW_detailFn} = | ||||
| @@ -895,7 +894,6 @@ sub Initialize { | ||||
|             <li><strong>ASC_twilightDevice</strong> - das Device, welches die Informationen zum Sonnenstand liefert. Wird unter anderem für die Beschattung verwendet.</li> | ||||
|             <a name="ASC_windSensor"></a> | ||||
|             <li><strong>ASC_windSensor - DEVICE[:READING]</strong> - Sensor für die Windgeschwindigkeit. Kombination aus Device und Reading.</li> | ||||
|             <li><strong>ASC_slatDriveCmdInverse</strong> - Vertauscht wie Reihnfolge der Fahrbefehle für Slat und Drive</li> | ||||
|         </ul> | ||||
|         <br /> | ||||
|         <br /> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| UPD 2020-06-29_09:05:05 97824 FHEM/73_AutoShuttersControl.pm | ||||
| UPD 2020-06-29_12:59:48 189668 lib/FHEM/Automation/ShuttersControl.pm | ||||
| UPD 2020-06-29_14:06:13 97655 FHEM/73_AutoShuttersControl.pm | ||||
| UPD 2020-06-29_14:05:34 188779 lib/FHEM/Automation/ShuttersControl.pm | ||||
| UPD 2020-06-22_09:41:40 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm | ||||
| UPD 2020-06-22_09:41:40 2493 lib/FHEM/Automation/ShuttersControl/Roommate.pm | ||||
| UPD 2020-06-29_09:05:05 30157 lib/FHEM/Automation/ShuttersControl/Shutters.pm | ||||
|   | ||||
| @@ -4700,63 +4700,32 @@ sub _SetCmdFn { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     if (   $ascDev->getSlatDriveCmdInverse | ||||
|         && $slatPos > -1 | ||||
|         && $shutters->getSlatPosCmd ne 'none' ) | ||||
|     { | ||||
|         CommandSet( | ||||
|             undef, | ||||
|             ( | ||||
|                   $shutters->getSlatDevice ne 'none' | ||||
|                 ? $shutters->getSlatDevice | ||||
|                 : $shuttersDev | ||||
|               ) | ||||
|               . ' ' | ||||
|               . $shutters->getSlatPosCmd . ' ' | ||||
|               . $slatPos | ||||
|         ); | ||||
|  | ||||
|         InternalTimer( | ||||
|             gettimeofday() + 3, | ||||
|             sub() { | ||||
|                 CommandSet( undef, | ||||
|                         $shuttersDev | ||||
|                       . ':FILTER=' | ||||
|                       . $shutters->getPosCmd . '!=' | ||||
|                       . $posValue . ' ' | ||||
|                       . $driveCommand ); | ||||
|             }, | ||||
|     CommandSet( undef, | ||||
|             $shuttersDev | ||||
|         ); | ||||
|     } | ||||
|     else { | ||||
|         CommandSet( undef, | ||||
|                 $shuttersDev | ||||
|               . ':FILTER=' | ||||
|               . $shutters->getPosCmd . '!=' | ||||
|               . $posValue . ' ' | ||||
|               . $driveCommand ); | ||||
|             . ':FILTER=' | ||||
|             . $shutters->getPosCmd . '!=' | ||||
|             . $posValue . ' ' | ||||
|             . $driveCommand ); | ||||
|  | ||||
|         InternalTimer( | ||||
|             gettimeofday() + 3, | ||||
|             sub() { | ||||
|                 CommandSet( | ||||
|                     undef, | ||||
|                     ( | ||||
|                           $shutters->getSlatDevice ne 'none' | ||||
|                         ? $shutters->getSlatDevice | ||||
|                         : $shuttersDev | ||||
|                       ) | ||||
|                       . ' ' | ||||
|                       . $shutters->getSlatPosCmd . ' ' | ||||
|                       . $slatPos | ||||
|                 ); | ||||
|             }, | ||||
|             $shuttersDev | ||||
|           ) | ||||
|           if ( $slatPos > -1 | ||||
|             && $shutters->getSlatPosCmd ne 'none' ); | ||||
|     } | ||||
|     InternalTimer( | ||||
|         gettimeofday() + 3, | ||||
|         sub() { | ||||
|             CommandSet( | ||||
|                 undef, | ||||
|                 ( | ||||
|                         $shutters->getSlatDevice ne 'none' | ||||
|                     ? $shutters->getSlatDevice | ||||
|                     : $shuttersDev | ||||
|                     ) | ||||
|                     . ' ' | ||||
|                     . $shutters->getSlatPosCmd . ' ' | ||||
|                     . $slatPos | ||||
|             ); | ||||
|         }, | ||||
|         $shuttersDev | ||||
|         ) | ||||
|         if ( $slatPos > -1 | ||||
|         && $shutters->getSlatPosCmd ne 'none' ); | ||||
|  | ||||
|     $shutters->setSelfDefenseAbsent( 0, 0 ) | ||||
|       if (!$shutters->getSelfDefenseAbsent | ||||
|   | ||||
		Reference in New Issue
	
	Block a user