mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
74_GardenaSmartDevice: check character for create devicenames
git-svn-id: https://svn.fhem.de/fhem/trunk@15015 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b86015dcde
commit
123ef855dc
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 74_GardenaSmartDevice: check character for create devicenames
|
||||||
- bugfix: FHEM2FHEM: addStateEvent attribute (Forum #76229)
|
- bugfix: FHEM2FHEM: addStateEvent attribute (Forum #76229)
|
||||||
- bugfix: HttpUtils: use urlDecode for password in URL (Forum #76230)
|
- bugfix: HttpUtils: use urlDecode for password in URL (Forum #76230)
|
||||||
- bugfix: 74_GardenaSmartDevice.pm: fix little Commandref bug's
|
- bugfix: 74_GardenaSmartDevice.pm: fix little Commandref bug's
|
||||||
|
@ -70,7 +70,7 @@ eval "use IO::Socket::SSL;1" or $missingModul .= "IO::Socket::SSL ";
|
|||||||
###todo Hier fehlt noch Modulabfrage für ssl
|
###todo Hier fehlt noch Modulabfrage für ssl
|
||||||
|
|
||||||
|
|
||||||
my $version = "0.2.0";
|
my $version = "0.2.1";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -809,7 +809,7 @@ sub GardenaSmartBridge_ParseJSON($$) {
|
|||||||
<ul>
|
<ul>
|
||||||
<li>debugJSON - </li>
|
<li>debugJSON - </li>
|
||||||
<li>disable - Disables the Bridge</li>
|
<li>disable - Disables the Bridge</li>
|
||||||
<li>interval - Interval in Minutes (Default=5)</li>
|
<li>interval - Interval in seconds (Default=300)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@ -64,11 +64,11 @@ use Time::Local;
|
|||||||
|
|
||||||
use Data::Dumper; #debugging
|
use Data::Dumper; #debugging
|
||||||
|
|
||||||
eval "use Encode qw(encode encode_utf8 decode_utf8);1" or $missingModul .= "Encode ";
|
# eval "use Encode qw(encode encode_utf8 decode_utf8);1" or $missingModul .= "Encode "; wird nicht benötigt
|
||||||
eval "use JSON;1" or $missingModul .= "JSON ";
|
eval "use JSON;1" or $missingModul .= "JSON ";
|
||||||
|
|
||||||
|
|
||||||
my $version = "0.2.1";
|
my $version = "0.2.2";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -313,8 +313,9 @@ sub GardenaSmartDevice_Parse($$) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
Log3 $name, 3, "GardenaSmartDevice ($name) - autocreate new device " . join('',split("[ \t]+",$decode_json->{name})) . " with deviceId $decode_json->{id}, model $decode_json->{category} and IODev IODev=$name";
|
Log3 $name, 3, "GardenaSmartDevice ($name) - autocreate new device " . makeDeviceName($decode_json->{name}) . " with deviceId $decode_json->{id}, model $decode_json->{category} and IODev IODev=$name";
|
||||||
return "UNDEFINED " . join('',split("[ \t]+",$decode_json->{name})) . " GardenaSmartDevice $decode_json->{id} $decode_json->{category} IODev=$name";
|
#return "UNDEFINED " . join('',split("[ \t]+",$decode_json->{name})) . " GardenaSmartDevice $decode_json->{id} $decode_json->{category} IODev=$name";
|
||||||
|
return "UNDEFINED " . makeDeviceName($decode_json->{name}) . " GardenaSmartDevice $decode_json->{id} $decode_json->{category} IODev=$name";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user