diff --git a/fhem/contrib/98_GoogleAuth.pm b/fhem/contrib/98_GoogleAuth.pm index 16d2d9d61..3e3dd94c8 100644 --- a/fhem/contrib/98_GoogleAuth.pm +++ b/fhem/contrib/98_GoogleAuth.pm @@ -22,6 +22,7 @@ sub GoogleAuth_Initialize($) { $hash->{FW_detailFn} = "GoogleAuth_Detail"; # $hash->{AttrFn} = "GoogleAuth_Attr"; $hash->{AttrList} = "ga_qrsize ". + "ga_labelName ". "$readingFnAttributes"; } @@ -55,7 +56,7 @@ sub GoogleAuth_Set($$@) { setKeyValue("googleAuth$name",$secret_base32); # write to fhem keystore - my $label = "FHEM%20Authentication%20$name"; + my $label = AttrVal($name,'ga_labelName',"FHEM Authentication $name"); my $qrsize = AttrVal($name,'ga_qrsize','200x200'); my $url = "otpauth://totp/$label?secret=$secret_base32"; my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=$qrsize"."&chl=".uri_escape($url);