From 93e6d1dd8be5cc49732ff0cbd7e1854170523280 Mon Sep 17 00:00:00 2001 From: delmar <> Date: Mon, 7 Jan 2019 20:47:25 +0000 Subject: [PATCH] 70_ONKYO_AVR: clearing screenItemCxxx readings on page update git-svn-id: https://svn.fhem.de/fhem/trunk@18175 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_ONKYO_AVR.pm | 16 +++++++++++++--- fhem/MAINTAINER.txt | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 0c5964f5b..bf6b6223b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 70_ONKYO_AVR: clearing screenItemCxxx readings on page update - bugfix: 93_DbRep: sort problem in diffValue Forum:#msg882082 - bugfix: 98_weekprofile: fix f18 style - feature: 98_weekprofile: Force to send complete week profile diff --git a/fhem/FHEM/70_ONKYO_AVR.pm b/fhem/FHEM/70_ONKYO_AVR.pm index 88b5129a0..7aece23d8 100644 --- a/fhem/FHEM/70_ONKYO_AVR.pm +++ b/fhem/FHEM/70_ONKYO_AVR.pm @@ -2401,8 +2401,9 @@ sub ONKYO_AVR_Read2($$$) { } - # curser information - else { + #Cursor Position (Update) + elsif ( $1 eq "C" ) { + foreach my $item ( keys %{ $hash->{SCREEN}{ $hash->{SCREENLAYER} }{list} } ) { @@ -2412,9 +2413,18 @@ sub ONKYO_AVR_Read2($$$) { $hash->{SCREEN}{ $hash->{SCREENLAYER} }{list}{$item}{curser} = 1 if ( $item ne "-" ); - + readingsBulkUpdate( $hash, "screenCurser", $2 ) if ( ReadingsVal( $name, "screenCurser", "" ) ne $2 ); + + if ( $3 eq "P" ) { #Page Information Update (Page Clear or Disable List Info) + Log3 $name, 4, "ONKYO_AVR $name: page clear"; + + for ( my $idx=0; $idx < 10; $idx++ ) { + readingsBulkUpdate( $hash, "screenItemC000" . $idx, '' ); + } + } + } } diff --git a/fhem/MAINTAINER.txt b/fhem/MAINTAINER.txt index 1fd972773..39496f359 100644 --- a/fhem/MAINTAINER.txt +++ b/fhem/MAINTAINER.txt @@ -310,7 +310,7 @@ FHEM/70_JSONMETER.pm tupol Sonstiges (Link als PM an tupo FHEM/70_LaMetric2.pm loredo Multimedia FHEM/70_MEDIAPORTAL.pm Reinerlein Multimedia FHEM/70_PHTV.pm loredo Multimedia -FHEM/70_ONKYO_AVR.pm loredo Multimedia +FHEM/70_ONKYO_AVR.pm delmar Multimedia FHEM/70_PIONEERAVR.pm 50watt Multimedia FHEM/70_SCIVT.pm rudolfkoenig/orphan Sonstiges FHEM/70_SISPM.pm real-wusel Sonstiges