diff --git a/73_GardenaSmartBridge.pm b/73_GardenaSmartBridge.pm index 7ec0a15..dc5e37b 100644 --- a/73_GardenaSmartBridge.pm +++ b/73_GardenaSmartBridge.pm @@ -5,6 +5,11 @@ # (c) 2017 Copyright: Marko Oldenburg (leongaultier at gmail dot com) # All rights reserved # +# Special thanks goes to comitters: +# - Michael (mbrak) Thanks for Commandref +# - Matthias (Kenneth) Thanks for Wiki entry +# +# # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -65,7 +70,7 @@ eval "use IO::Socket::SSL;1" or $missingModul .= "IO::Socket::SSL "; ###todo Hier fehlt noch Modulabfrage für ssl -my $version = "0.0.58"; +my $version = "0.1.0"; @@ -746,17 +751,128 @@ sub GardenaSmartBridge_ParseJSON($$) { =pod =item device -=item summary Gardena Smart -=item summary_DE Gardena Smart +=item summary Modul to communicate with the GardenaCloud +=item summary_DE Modul zur Datenübertragung zur GardenaCloud =begin html - + +

GardenaSmartBridge

+ +
+ +Define + =end html =begin html_DE - + +

GardenaSmartBridge

+ +
+ +Define + =end html_DE =cut diff --git a/74_GardenaSmartDevice.pm b/74_GardenaSmartDevice.pm index 4dc154f..b6f482c 100644 --- a/74_GardenaSmartDevice.pm +++ b/74_GardenaSmartDevice.pm @@ -5,6 +5,11 @@ # (c) 2017 Copyright: Marko Oldenburg (leongaultier at gmail dot com) # All rights reserved # +# Special thanks goes to comitters: +# - Michael (mbrak) Thanks for Commandref +# - Matthias (Kenneth) Thanks for Wiki entry +# +# # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -63,7 +68,7 @@ eval "use Encode qw(encode encode_utf8 decode_utf8);1" or $missingModul .= "Enco eval "use JSON;1" or $missingModul .= "JSON "; -my $version = "0.0.58"; +my $version = "0.1.0"; @@ -95,8 +100,7 @@ sub GardenaSmartDevice_Initialize($) { $hash->{ParseFn} = "GardenaSmartDevice_Parse"; $hash->{AttrFn} = "GardenaSmartDevice_Attr"; - $hash->{AttrList} = "disable:1 ". - "readingValueLanguage:de ". + $hash->{AttrList} = "readingValueLanguage:de,en ". "model ". $readingFnAttributes; @@ -470,7 +474,7 @@ sub GardenaSmartDevice_ReadingLangGerman($$) { 'inactive' => 'nicht aktiv' ); - if( defined($langGermanMapp{$readingValue}) and (AttrVal('global','language','none') eq 'DE' or AttrVal($name,'readingValueLanguage','none') eq 'de') ) { + if( defined($langGermanMapp{$readingValue}) and (AttrVal('global','language','none') eq 'DE' or AttrVal($name,'readingValueLanguage','none') eq 'de') and AttrVal($name,'readingValueLanguage','none') ne 'en') { return $langGermanMapp{$readingValue}; } else { return $readingValue; @@ -520,17 +524,284 @@ sub GardenaSmartDevice_Zulu2LocalString($) { =pod =item device -=item summary Gardena Smart -=item summary_DE Gardena Smart +=item summary Modul to control GardenaSmart Devices +=item summary_DE Modul zur Steuerung von GardenaSmartgeräten =begin html - + +

GardenaSmartDevice

+ =end html =begin html_DE - + +

GardenaSmartDevice

+ +
+ =end html_DE =cut