From 10a2bdcc4a7bdb15745442f4747b06c891a2220d Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sun, 16 Dec 2012 21:06:16 +0000 Subject: [PATCH] added input_name reading git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2341 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/71_YAMAHA_AVR.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FHEM/71_YAMAHA_AVR.pm b/FHEM/71_YAMAHA_AVR.pm index 9caf1a599..80507fbdb 100755 --- a/FHEM/71_YAMAHA_AVR.pm +++ b/FHEM/71_YAMAHA_AVR.pm @@ -142,6 +142,11 @@ YAMAHA_AVR_GetStatus($;$) readingsBulkUpdate($hash, "input", YAMAHA_AVR_InputParam2Fhem(lc($1), 0)); } + if($return =~ /.*?\s*?(\S+?)\s*?<\/Title>.*<\/Input>/) + { + readingsBulkUpdate($hash, "input_name", $1); + } + readingsEndUpdate($hash, 1); InternalTimer(gettimeofday()+$hash->{helper}{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 1) unless($local == 1);