2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

KS550 & createlog

git-svn-id: https://svn.fhem.de/fhem/trunk@839 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-02-13 14:58:16 +00:00
parent 73e0b9de9b
commit 5a908c3eb6
4 changed files with 51 additions and 13 deletions

View File

@ -18,6 +18,7 @@
devices and alike.
- bugfix: serial port setting on Linux broken if running in the background
- feature: IPV6 support, FHEMWEB basicAuth and HTTPS support
- feature: createlog added to the autocreate module
- 2010-08-15 (5.0)
- **NOTE*: The default installation path is changed to satisfy lintian

View File

@ -39,7 +39,7 @@ my %culHmModel=(
"0004" => "HM-LC-SW1-FM",
"0005" => "HM-LC-BL1-FM",
"0006" => "HM-LC-BL1-SM",
"0007" => "KS550",
"0007" => "KS550", # Tested
"0008" => "HM-RC-4", # cant pair(AES)-> broadcast only
"0009" => "HM-LC-SW2-FM",
"000A" => "HM-LC-SW2-SM",
@ -82,7 +82,7 @@ my %culHmModel=(
"003D" => "HM-WDS10-TH-O",
"003E" => "HM-WDS30-T-O",
"003F" => "HM-WDS40-TH-I",
"0040" => "HM-WDS100-C6-O",
"0040" => "HM-WDS100-C6-O", # Identical to KS550?
"0041" => "HM-WDC7000",
"0042" => "HM-SEC-SD", # Tested
"0043" => "HM-SEC-TIS",
@ -322,7 +322,7 @@ CUL_HM_Parse($$)
$t = hex($t)/10;
$t -= 3276.8 if($t > 1638.4);
$h = hex($h);
push @event, "state:T:$t H:$h";
push @event, "state:T: $t H: $h";
push @event, "temperature:$t";
push @event, "humidity:$h";
@ -335,6 +335,34 @@ CUL_HM_Parse($$)
}
} elsif($model eq "KS550") {
if($cmd eq "8670" && $p =~ m/^(....)(..)(....)(....)(..)(..)(..)/) {
my ( $t, $h, $r, $w, $wd, $s, $b ) =
(hex($1), hex($2), hex($3), hex($4), hex($5), hex($6), hex($7));
my $tsgn = ($t & 0x4000); # not tested
$t = ($t & 0x3fff)/10;
$t = -$t if($tsgn);
my $ir = $r & 0x8000;
$r = ($r & 0x7fff) * 0.295;
my $wdr = ($w>>14)*22.5;
$w = $w & 0x3fff;
$wd = $wd * 5;
push @event,
"state:T: $t H: $h W: $w R: $r IR: $ir WD: $wd WDR: $wdr S: $s B: $b";
push @event, "temperature:$t";
push @event, "humidity:$h";
push @event, "windSpeed:$w";
push @event, "windDirection:$wd";
push @event, "windDirRange:$wdr";
push @event, "rain:$r";
push @event, "isRaining:$ir";
push @event, "sunshine:$s";
push @event, "brightness:$b";
}
} elsif($st eq "KFM" && $model eq "KFM-Sensor") {
if($p =~ m/814(.)0200(..)(..)(..)/) {

View File

@ -1,15 +1,11 @@
FHEM:
- fork problem (?)
- autocreate disable / onForSec
- HomeMatic in fhemweb
- HomeMatic autocreate
- HomeMatic signing
- HomeMatic set log 2
- mergelog
- autodetect physical hardware
- RFR: Error message for uncomplete last message
- fix autocreate rename anomaly (rename filelog only)
- implement wiki decisions
Webpgm2

View File

@ -2236,8 +2236,8 @@ A line ending with \ will be concatenated with the next one, so long lines
is a separate firmware with HomeMatic support which lacks FHT support.
</li>
<li><b>Note</b>: Currently supported device families: remote, switch, dimmer,
blindActuator, smokeDetector, threeStateSensor and THSensor.
</li>
blindActuator, smokeDetector, threeStateSensor, THSensor and the
KS550</li>
</ul>
<br><br>
@ -5752,11 +5752,14 @@ Terminating
The autocreate module intercepts the UNDEFINED event generated by each
module, creates a device and optionally also FileLog and weblink
entries.<br>
<b>Note:</b>devices will be created with a unique name, which contains
<b>Note 1:</b> devices will be created with a unique name, which contains
the type and a unique id for this type. When <a href="#rename">renaming
</a> the device, the automatically created filelog and weblink devices
will also be renamed.
will also be renamed.<br>
<b>Note 2:</b> you can disable the automatic creation by setting the
<a href="#disable">disable</a> attribute, in this case only the rename
hook is active, and you can use the <a href="#createlog">createlog</a>
command to add FileLog and weblink to an already defined device.
</ul>
<br>
@ -5798,14 +5801,24 @@ Terminating
<a name="weblink"></a>
<li>weblink<br>
Create a weblinkn associated with the device/filelog.</li><br>
Create a weblink associated with the device/filelog.</li><br>
<a name="weblink_room"></a>
<li>weblink_room<br>
"Put" the newly weblink in this room. The name can contain the
wildcards %TYPE and %NAME, see the example above.</li><br>
<li><a href="#disable">disable</a></li>
</ul>
<br>
<a name="createlog"></a>
<b>createlog</b>
<ul>
Use this command to manually add a FileLog and a weblink to an existing
device. E.g. if a HomeMatic device is created automatically by something
else then a pairing message, the model is unknown, so no plots will be
generated. You can set the model/subtype attribute manually, and then call
createlog to add the corresponding logs. </ul> <br>
</ul>