hmlan state delete from readings

git-svn-id: https://svn.fhem.de/fhem/trunk@3913 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-09-16 12:44:53 +00:00
parent d9b610e925
commit 51e21a08ea

View File

@@ -101,6 +101,7 @@ sub HMLAN_Define($$) {#########################################################
HMLAN_condUpdate($hash,253);#set disconnected
$hash->{STATE} = "disconnected";
my $ret = DevIo_OpenDev($hash, 0, "HMLAN_DoInit");
return $ret;
}
@@ -546,7 +547,8 @@ sub HMLAN_DoInit($) {##########################################################
my $key = AttrVal($name, "hmKey", ""); # 36(!) hex digits
my $s2000 = sprintf("%02X", HMLAN_secSince2000());
delete $hash->{READINGS}{state};
HMLAN_SimpleWrite($hash, "A$id") if($id);
HMLAN_SimpleWrite($hash, "C");
HMLAN_SimpleWrite($hash, "Y01,01,$key");