diff --git a/fhem/FHEM/32_yowsup.pm b/fhem/FHEM/32_yowsup.pm
index 09cd34901..87d14480b 100644
--- a/fhem/FHEM/32_yowsup.pm
+++ b/fhem/FHEM/32_yowsup.pm
@@ -25,7 +25,7 @@ yowsup_Initialize($)
#$hash->{GetFn} = "yowsup_Get";
$hash->{AttrFn} = "yowsup_Attr";
$hash->{AttrList} = "disable:1 ";
- $hash->{AttrList} .= "acceptFrom cmd home ". $readingFnAttributes;
+ $hash->{AttrList} .= "acceptFrom cmd home nickname ". $readingFnAttributes;
}
#####################################
@@ -181,6 +181,7 @@ yowsup_Connect($)
InternalTimer(gettimeofday()+20, "yowsup_Connect", $hash, 0);
}
}
+
sub
yowsup_Disconnect($)
{
@@ -334,6 +335,9 @@ yowsup_Parse($$)
if( $hash->{WAITING_FOR_LOGIN} ) {
yowsup_Write( $hash, '/L' );
yowsup_Write( $hash, '/presence available' );
+
+ yowsup_Write( $hash, "/presence name '". AttrVal($name, 'nickname', "") ."'" ) if(defined(AttrVal($name, 'nickname', undef)));
+
#yowsup_Write( $hash, '/ping' );
delete $hash->{WAITING_FOR_LOGIN};
@@ -555,6 +559,9 @@ yowsup_Attr($$$)
PWD -> set to $PWD
anything else -> use as $HOME
+