Merge pull request 'patch-wrongReadingsNameFromSetter' (#96) from patch-wrongReadingsNameFromSetter into dev
Reviewed-on: #96
This commit is contained in:
		| @@ -1462,7 +1462,7 @@ __END__ | |||||||
|   ], |   ], | ||||||
|   "release_status": "stable", |   "release_status": "stable", | ||||||
|   "license": "GPL_2", |   "license": "GPL_2", | ||||||
|   "version": "v0.10.20", |   "version": "v0.10.21", | ||||||
|   "author": [ |   "author": [ | ||||||
|     "Marko Oldenburg <fhemdevelopment@cooltux.net>" |     "Marko Oldenburg <fhemdevelopment@cooltux.net>" | ||||||
|   ], |   ], | ||||||
|   | |||||||
| @@ -1,16 +1,16 @@ | |||||||
| UPD 2022-01-10_10:41:35 116177 FHEM/73_AutoShuttersControl.pm | UPD 2022-01-15_15:38:33 116177 FHEM/73_AutoShuttersControl.pm | ||||||
| UPD 2022-01-10_10:41:35 75839 lib/FHEM/Automation/ShuttersControl.pm | UPD 2022-01-15_15:38:39 75817 lib/FHEM/Automation/ShuttersControl.pm | ||||||
| UPD 2022-01-02_07:57:18 2691 lib/FHEM/Automation/ShuttersControl/Dev.pm | UPD 2022-01-14_08:49:13 2691 lib/FHEM/Automation/ShuttersControl/Dev.pm | ||||||
| UPD 2022-01-02_07:57:18 2677 lib/FHEM/Automation/ShuttersControl/Roommate.pm | UPD 2022-01-14_08:49:13 2677 lib/FHEM/Automation/ShuttersControl/Roommate.pm | ||||||
| UPD 2022-01-02_08:52:49 32016 lib/FHEM/Automation/ShuttersControl/Shutters.pm | UPD 2022-01-14_08:49:13 32016 lib/FHEM/Automation/ShuttersControl/Shutters.pm | ||||||
| UPD 2022-01-02_07:57:18 25452 lib/FHEM/Automation/ShuttersControl/Shading.pm | UPD 2022-01-14_08:49:13 25452 lib/FHEM/Automation/ShuttersControl/Shading.pm | ||||||
| UPD 2022-01-02_07:57:18 112122 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm | UPD 2022-01-14_08:49:13 112122 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm | ||||||
| UPD 2022-01-10_11:04:15 40603 lib/FHEM/Automation/ShuttersControl/Helper.pm | UPD 2022-01-14_08:49:13 40603 lib/FHEM/Automation/ShuttersControl/Helper.pm | ||||||
| UPD 2022-01-02_07:57:18 2209 lib/FHEM/Automation/ShuttersControl/Window.pm | UPD 2022-01-14_08:49:13 2209 lib/FHEM/Automation/ShuttersControl/Window.pm | ||||||
| UPD 2022-01-10_11:06:40 11857 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm | UPD 2022-01-14_08:49:13 11857 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm | ||||||
| UPD 2022-01-01_20:15:38 7265 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm | UPD 2022-01-14_08:49:13 7265 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm | ||||||
| UPD 2022-01-01_20:15:38 52751 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm | UPD 2022-01-14_08:49:13 52751 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm | ||||||
| UPD 2022-01-01_20:15:38 2799 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm | UPD 2022-01-14_08:49:13 2799 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm | ||||||
| UPD 2022-01-01_20:15:38 3887 lib/FHEM/Automation/ShuttersControl/Window/Attr.pm | UPD 2022-01-14_08:49:13 3887 lib/FHEM/Automation/ShuttersControl/Window/Attr.pm | ||||||
| UPD 2022-01-01_20:15:38 2200 lib/FHEM/Automation/ShuttersControl/Window/Readings.pm | UPD 2022-01-14_08:49:13 2200 lib/FHEM/Automation/ShuttersControl/Window/Readings.pm | ||||||
| UPD 2022-01-02_07:57:18 7113 lib/FHEM/Automation/ShuttersControl/Rainprotection.pm | UPD 2022-01-14_08:49:13 7113 lib/FHEM/Automation/ShuttersControl/Rainprotection.pm | ||||||
|   | |||||||
| @@ -519,40 +519,38 @@ sub Set { | |||||||
|     my $cmd  = shift @$aArg |     my $cmd  = shift @$aArg | ||||||
|       // return qq{"set $name" needs at least one argument}; |       // return qq{"set $name" needs at least one argument}; | ||||||
|  |  | ||||||
|     $cmd = lc($cmd); |  | ||||||
|  |  | ||||||
|     given ($cmd) { |     given ($cmd) { | ||||||
|         when ('renewalltimer') { |         when ('renewAllTimer') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); | ||||||
|             RenewSunRiseSetShuttersTimer($hash); |             RenewSunRiseSetShuttersTimer($hash); | ||||||
|         } |         } | ||||||
|         when ('renewtimer') { |         when ('renewTimer') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             CreateSunRiseSetShuttersTimer( $hash, $aArg->[0] ); |             CreateSunRiseSetShuttersTimer( $hash, $aArg->[0] ); | ||||||
|         } |         } | ||||||
|         when ('scanforshutters') { |         when ('scanForShutters') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); | ||||||
|             ShuttersDeviceScan($hash); |             ShuttersDeviceScan($hash); | ||||||
|         } |         } | ||||||
|         when ('createnewnotifydev') { |         when ('createNewNotifyDev') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); | ||||||
|             CreateNewNotifyDev($hash); |             CreateNewNotifyDev($hash); | ||||||
|         } |         } | ||||||
|         when ('partymode') { |         when ('partyMode') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ) |             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ) | ||||||
|               if ( $aArg->[0] ne ::ReadingsVal( $name, 'partyMode', 0 ) ); |               if ( $aArg->[0] ne ::ReadingsVal( $name, 'partyMode', 0 ) ); | ||||||
|         } |         } | ||||||
|         when ('hardlockout') { |         when ('hardLockOut') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); |             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); | ||||||
|             HardewareBlockForShutters( $hash, $aArg->[0] ); |             HardewareBlockForShutters( $hash, $aArg->[0] ); | ||||||
|         } |         } | ||||||
|         when ('sunrisetimeweholiday') { |         when ('sunriseTimeWeHoliday') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); |             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); | ||||||
|         } |         } | ||||||
|         when ('controlshading') { |         when ('controlShading') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|  |  | ||||||
|             my $response = CheckASC_ConditionsForShadingFn( $hash, $aArg->[0] ); |             my $response = CheckASC_ConditionsForShadingFn( $hash, $aArg->[0] ); | ||||||
| @@ -568,19 +566,19 @@ sub Set { | |||||||
|                 1 |                 1 | ||||||
|             ); |             ); | ||||||
|         } |         } | ||||||
|         when ('selfdefense') { |         when ('selfDefense') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); |             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); | ||||||
|         } |         } | ||||||
|         when ('ascenable') { |         when ('ascEnable') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); |             ::readingsSingleUpdate( $hash, $cmd, $aArg->[0], 1 ); | ||||||
|         } |         } | ||||||
|         when ('advdrivedown') { |         when ('advDriveDown') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 ); | ||||||
|             EventProcessingAdvShuttersClose($hash); |             EventProcessingAdvShuttersClose($hash); | ||||||
|         } |         } | ||||||
|         when ('shutterascenabletoggle') { |         when ('shutterASCenableToggle') { | ||||||
|             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); |             return "usage: $cmd" if ( scalar( @{$aArg} ) > 1 ); | ||||||
|             ::readingsSingleUpdate( |             ::readingsSingleUpdate( | ||||||
|                 $defs{ $aArg->[0] }, |                 $defs{ $aArg->[0] }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user