mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 16:56:04 +00:00
73_GardenaSmartBridge: Change state to connected
git-svn-id: https://svn.fhem.de/fhem/trunk@15469 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
da75b78ec3
commit
ac573a2c99
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- gugfix: 74_GardenaSmartBridge: change state to connected
|
||||
- bugfix: 74_XiaomiFlowerSens: fix change InternalTimer now
|
||||
- bugfix: 49_SSCam: V3.2.4, don't retrieve presets during restart if cam is
|
||||
disabled
|
||||
|
@ -68,7 +68,7 @@ eval "use JSON;1" or $missingModul .= "JSON ";
|
||||
eval "use IO::Socket::SSL;1" or $missingModul .= "IO::Socket::SSL ";
|
||||
|
||||
|
||||
my $version = "0.2.7";
|
||||
my $version = "0.2.8";
|
||||
|
||||
|
||||
|
||||
@ -396,7 +396,7 @@ sub GardenaSmartBridge_ErrorHandling($$$) {
|
||||
return;
|
||||
}
|
||||
|
||||
if( ( ($data =~ /Error/ ) or defined(eval{decode_json($data)}->{errors}) ) and exists( $param->{code} ) ) {
|
||||
if( ( ($data =~ /Error/ ) or defined(eval{decode_json($data)}->{errors}) ) and exists( $param->{code} ) ) {
|
||||
readingsBeginUpdate( $dhash );
|
||||
readingsBulkUpdate( $dhash, "state", $param->{code}, 1 ) if( ReadingsVal( $dname, "state" ,0) ne "initialized" );
|
||||
|
||||
@ -450,7 +450,7 @@ sub GardenaSmartBridge_ErrorHandling($$$) {
|
||||
|
||||
|
||||
|
||||
readingsSingleUpdate($hash,'state','connect to cloud',1) if( defined($hash->{helper}{locations_id}) );
|
||||
readingsSingleUpdate($hash,'state','connected to cloud',1) if( defined($hash->{helper}{locations_id}) );
|
||||
GardenaSmartBridge_ResponseProcessing($hash,$data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user