mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
30_DUOFERN: Add sun sensor 9478-1
git-svn-id: https://svn.fhem.de/fhem/trunk@26036 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ba427f7bf2
commit
5a89f7cb16
@ -37,10 +37,12 @@ my %devices = (
|
||||
"A5" => {"name" => "Sonnensensor" },
|
||||
"A7" => {"name" => "Funksender UP" },
|
||||
"A8" => {"name" => "HomeTimer" },
|
||||
"A9" => {"name" => "Sonnen-/Windsensor" },
|
||||
"AA" => {"name" => "Markisenwaechter" },
|
||||
"AB" => {"name" => "Rauchmelder" },
|
||||
"AC" => {"name" => "Fenster-Tuer-Kontakt" },
|
||||
"AD" => {"name" => "Wandtaster 6fach Bat" },
|
||||
"AF" => {"name" => "Sonnensensor" },
|
||||
"E0" => {"name" => "Handzentrale" },
|
||||
"E1" => {"name" => "Heizkoerperantrieb" },
|
||||
);
|
||||
@ -68,6 +70,8 @@ my %sensorMsg = (
|
||||
"0721" => {"name" => "endMotion", "chan" => 5, "state" => "off"},
|
||||
"0723" => {"name" => "opened", "chan" => 5, "state" => "opened"},
|
||||
"0724" => {"name" => "closed", "chan" => 5, "state" => "closed"},
|
||||
"0725" => {"name" => "startVibration", "chan" => 5 },
|
||||
"0726" => {"name" => "endVibration", "chan" => 5 },
|
||||
"0E01" => {"name" => "off", "chan" => 6, "state" => "Btn01"},
|
||||
"0E02" => {"name" => "off", "chan" => 6, "state" => "Btn02"},
|
||||
"0E03" => {"name" => "on", "chan" => 6, "state" => "Btn03"},
|
||||
@ -1345,7 +1349,7 @@ DUOFERN_Parse($$)
|
||||
if($code =~ m/^(AC)..../ && substr($msg, 14, 2) eq "FE") {
|
||||
readingsSingleUpdate($hash, "state", "tilted", 1);
|
||||
$state = "tilted";
|
||||
} elsif($code =~ m/^(65|A5|AA|AB|AC)..../) {
|
||||
} elsif($code =~ m/^(65|A5|AA|AB|AC|AF)..../ && defined($sensorMsg{$id}{state})) {
|
||||
readingsSingleUpdate($hash, "state", $sensorMsg{$id}{state}, 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user