Originally posted by: <email address deleted>
Hi Rudi,
ich hab' mal die battery low condition mit meinem Lab Netzgerät für
TFK & WD eruiert. Seltsamerweise bekomme ich beim Einchecken:
cvs -d:pserver:klaus01@cvs.berlios.de:/cvsroot/fhem login
Password:
$cvs add fhem/FHEM/12_HMS.pm
Password:
cvs [server aborted]: could not chdir to fhem/FHEM: No such file or
directory
cvs [server aborted]: "add" requires write access to the repository
(Es liegt wahrscheinlich an der Hitze ...)
Vielleicht kannste die 2 x 2 Zeilen auf die Schnelle selbst reinbauen,
jeweils als letzte Befehle im elseif ($type eq "HMS100WD") bzw. elseif
($type eq "HMS100TFK") Zweig
$status = hex(substr($msg, 10, 1)); #Battery low condition
$v[1] = (($status & 4) ? "empty" : "ok"); # bit is set if Voltage
< 2.5 V.
Dank & Gruss
Klaus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
Hallo Klaus,
> ich hab' mal die battery low condition mit meinem Lab Netzgerät für
> TFK & WD eruiert. Seltsamerweise bekomme ich beim Einchecken:
ich konnte es einchecken, aber ich bin nicht sicher, ob ich es an der richtigen
stelle gemacht habe. Kannst Du es bitte pruefen?
Gruss,
Rudi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
Originally posted by: <email address deleted>
> ich konnte es einchecken, aber ich bin nicht sicher, ob ich es an der richtigen
> stelle gemacht habe. Kannst Du es bitte pruefen?
Hallo Rudi,
ist an der falschen Stelle eingefügt (Water detect geht verloren). Für
TFK bitte auch, sieht dann wie folgt aus:
...
} elsif ($type eq "HMS100WD") {
@txt = ( "water_detect", "battery");
@sfx = ( "", "");
my $status = hex(substr($val, 1, 1));
$v[0] = "off";
if ( $status & 1 ) { $v[0] = "on"; }
$val = "Water Detect: $v[0]";
$status = hex(substr($msg, 10, 1)); #Battery low condition
$v[1] = (($status & 4) ? "empty" : "ok"); # bit is set if Voltage
< 2.5 V.
} elsif ($type eq "HMS100TFK") { # By Peter P.
@txt = ( "switch_detect", "battery");
@sfx = ( "", "");
my $status = hex(substr($val, 1, 1));
$v[0] = ($status ? "on" : "off");
$val = "Switch Detect: $v[0]";
$status = hex(substr($msg, 10, 1)); #Battery low condition
$v[1] = (($status & 4) ? "empty" : "ok"); # bit is set if Voltage
< 2.5 V.
} elsif($type eq "RM100-2") {
...
Gruß
Klaus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-
Nochmal eingecheckt.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" group.
To post to this group, send email to fhem-users@googlegroups.com
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en
-~----------~----~----~----~------~----~------~--~-