2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

added input_name reading

git-svn-id: https://svn.fhem.de/fhem/trunk@2341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2012-12-16 21:06:16 +00:00
parent 9de505c9ca
commit 98beb4000d

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);