added input_name reading

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2012-12-16 21:06:16 +00:00
parent 0250d9aa9b
commit 58682af3ee

View File

@@ -142,6 +142,11 @@ YAMAHA_AVR_GetStatus($;$)
readingsBulkUpdate($hash, "input", YAMAHA_AVR_InputParam2Fhem(lc($1), 0));
}
if($return =~ /<Input>.*?<Title>\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);