From 6d02d7b57916221cc6eee4f2fc03a4541f4bba30 Mon Sep 17 00:00:00 2001 From: wherzig <> Date: Thu, 3 Oct 2013 16:24:44 +0000 Subject: [PATCH] added ring git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3996 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/46_TRX_LIGHT.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FHEM/46_TRX_LIGHT.pm b/FHEM/46_TRX_LIGHT.pm index bf7395ae6..b81af789b 100755 --- a/FHEM/46_TRX_LIGHT.pm +++ b/FHEM/46_TRX_LIGHT.pm @@ -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);