mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
added ring
git-svn-id: https://svn.fhem.de/fhem/trunk@3996 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
54643dea99
commit
bc8e2f46d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user