74_AMADDevice: add logreport is attribut fhemServerIP not set

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21406 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2020-03-11 03:49:16 +00:00
parent 011faa81b3
commit beb8fb7a3e
2 changed files with 13 additions and 12 deletions

View File

@ -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.
- change: 74_AMADDevice: add logreport is attribut fhemServerIP not set
- change: 93_DbRep: better logfile messages in some cases of index operation
- feature: 44_TEK603: new attribute "disable"
- change: 12_OilFox: package FHEM::OilFox

View File

@ -277,7 +277,6 @@ sub Define($$) {
$iodev = $hash->{IODev}->{NAME};
# $hash->{VERSIONFLOWSET} = FHEM::Meta::Get( $defs{$iodev}, 'x_flowsetversion' );
$hash->{VERSIONFLOWSET} = $defs{$iodev}->{VERSIONFLOWSET};
my $d = $modules{AMADDevice}{defptr}{$amad_id};
@ -358,7 +357,7 @@ sub Attr(@) {
"AMADDevice ($name) - set remoteServer to other" );
}
$hash->{MODEL} = $attrVal;
$hash->{MODEL} = $attrVal;
$hash->{DEF} =
$hash->{HOST} . ' ' . $hash->{AMAD_ID} . ' ' . $attrVal;
}
@ -510,6 +509,12 @@ sub GetUpdate($) {
checkDeviceState($hash);
}
elsif ( AttrVal( $bname, 'fhemServerIP', 'not set' ) ne 'not set' ) {
Log3( $name, 1,
"AMADDevice ($name) - GetUpdate, attribut fhemServerIP not set in bridge device"
);
}
else {
Log3( $name, 4,
@ -784,7 +789,7 @@ sub Set($$@) {
my $openurl = join( ' ', @args );
my $browser = AttrVal( $name, 'setOpenUrlBrowser',
'com.android.chrome|com.google.android.apps.chrome.Main' );
my ($bapp,$bappclass) = split( /\|/, $browser );
my ( $bapp, $bappclass ) = split( /\|/, $browser );
$path .=
'openURL?url='
@ -818,15 +823,10 @@ sub Set($$@) {
}
elsif ( lc $cmd eq 'openapp' ) {
# my $app = join( ' ', @args );
my ($app,$appclass) = split( /\|/, $args[0] );
my ( $app, $appclass ) = split( /\|/, $args[0] );
$path .=
'openApp?app='
. $app;
$path .=
'&appclass='
. $appclass
$path .= 'openApp?app=' . $app;
$path .= '&appclass=' . $appclass
if ( defined($appclass) );
$method = 'POST';
@ -1689,7 +1689,7 @@ sub CreateChangeBtDeviceValue($$) {
],
"release_status": "stable",
"license": "GPL_2",
"version": "v4.4.7",
"version": "v4.4.8",
"author": [
"Marko Oldenburg <leongaultier@gmail.com>"
],