From 4c7ea28d5793fa75954d01ab67676b1f816b52b1 Mon Sep 17 00:00:00 2001 From: deespe <> Date: Sun, 14 Aug 2016 21:00:43 +0000 Subject: [PATCH] 98_Hyperion.pm: fixed reporting Hyperion as off while clearall is active git-svn-id: https://svn.fhem.de/fhem/trunk@11965 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/98_Hyperion.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 5ce845077..20afa32b5 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. + - bugfix: 98_Hyperion: reporting Hyperion as off while clearall is active - updated: 74_AMAD: New Minor Release 2.6 new 2 Media Readings, new trigger for Mediastate MUST INSTALL AUTOMAGIC 1.31.0 fix fix Issues 480148 diff --git a/fhem/FHEM/98_Hyperion.pm b/fhem/FHEM/98_Hyperion.pm index 5edec8a80..ade375b26 100644 --- a/fhem/FHEM/98_Hyperion.pm +++ b/fhem/FHEM/98_Hyperion.pm @@ -356,8 +356,9 @@ sub Hyperion_ParseHttpResponse($$$) } else { - if (defined($prio) && $prio == 1100) + if ($prio) { + Log3 $name,4,"$name Hyperion_ParseHttpResponse clearall priority: $prio"; readingsBulkUpdate($hash,"mode","clearall") if (ReadingsVal($name,"mode","") ne "clearall"); readingsBulkUpdate($hash,"previous_mode","clearall") if (ReadingsVal($name,"previous_mode","") ne "clearall"); readingsBulkUpdate($hash,"state","clearall") if (Value($name) ne "clearall");