mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
added ring
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3996 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d1dd17c2fb
commit
6d02d7b579
@ -216,6 +216,7 @@ TRX_LIGHT_Set($@)
|
|||||||
|
|
||||||
if ( lc($hash->{TRX_LIGHT_devicelog}) eq "window" || lc($hash->{TRX_LIGHT_devicelog}) eq "door" ||
|
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 "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 "lightsensor" || lc($hash->{TRX_LIGHT_devicelog}) eq "photosensor" ||
|
||||||
lc($hash->{TRX_LIGHT_devicelog}) eq "lock"
|
lc($hash->{TRX_LIGHT_devicelog}) eq "lock"
|
||||||
) {
|
) {
|
||||||
@ -618,6 +619,8 @@ sub TRX_LIGHT_parse_X10 ($$)
|
|||||||
$command = ($command eq "on") ? "dark" : "bright" ;
|
$command = ($command eq "on") ? "dark" : "bright" ;
|
||||||
} elsif (lc($def->{TRX_LIGHT_devicelog}) eq "lock") {
|
} elsif (lc($def->{TRX_LIGHT_devicelog}) eq "lock") {
|
||||||
$command = ($command eq "on") ? "Closed" : "Open" ;
|
$command = ($command eq "on") ? "Closed" : "Open" ;
|
||||||
|
} elsif (lc($def->{TRX_LIGHT_devicelog}) eq "ring") {
|
||||||
|
$command = ($command eq "on") ? "normal" : "alert" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
readingsBeginUpdate($def);
|
readingsBeginUpdate($def);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user