added ring

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3996 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-10-03 16:24:44 +00:00
parent d1dd17c2fb
commit 6d02d7b579

View File

@ -216,6 +216,7 @@ TRX_LIGHT_Set($@)
if ( lc($hash->{TRX_LIGHT_devicelog}) eq "window" || lc($hash->{TRX_LIGHT_devicelog}) eq "door" ||
lc($hash->{TRX_LIGHT_devicelog}) eq "motion" ||
lc($hash->{TRX_LIGHT_devicelog}) eq "ring" ||
lc($hash->{TRX_LIGHT_devicelog}) eq "lightsensor" || lc($hash->{TRX_LIGHT_devicelog}) eq "photosensor" ||
lc($hash->{TRX_LIGHT_devicelog}) eq "lock"
) {
@ -618,6 +619,8 @@ sub TRX_LIGHT_parse_X10 ($$)
$command = ($command eq "on") ? "dark" : "bright" ;
} elsif (lc($def->{TRX_LIGHT_devicelog}) eq "lock") {
$command = ($command eq "on") ? "Closed" : "Open" ;
} elsif (lc($def->{TRX_LIGHT_devicelog}) eq "ring") {
$command = ($command eq "on") ? "normal" : "alert" ;
}
readingsBeginUpdate($def);