From 410685aa03393a134e0e7e7c76688a904738c239 Mon Sep 17 00:00:00 2001 From: deespe <> Date: Fri, 19 Aug 2016 19:38:38 +0000 Subject: [PATCH] 98_Hyperion: new attr disable, added commandref summary git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11993 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_Hyperion.pm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/FHEM/98_Hyperion.pm b/FHEM/98_Hyperion.pm index ade375b26..bea0d5f39 100644 --- a/FHEM/98_Hyperion.pm +++ b/FHEM/98_Hyperion.pm @@ -62,7 +62,8 @@ sub Hyperion_Initialize($) $hash->{GetFn} = "Hyperion_Get"; $hash->{SetFn} = "Hyperion_Set"; $hash->{UndefFn} = "Hyperion_Undef"; - $hash->{AttrList} = "hyperionBin ". + $hash->{AttrList} = "disable:1 ". + "hyperionBin ". "hyperionConfigDir ". "hyperionDefaultDuration ". "hyperionDefaultPriority ". @@ -454,6 +455,7 @@ sub Hyperion_GetUpdate(@) RemoveInternalTimer($hash); InternalTimer(gettimeofday() + $hash->{INTERVAL},"Hyperion_GetUpdate",$hash,1); } + return undef if (IsDisabled($name) > 0); Hyperion_Call($hash,"statusRequest",undef); return undef; } @@ -808,13 +810,16 @@ sub Hyperion_devStateIcon($;$) return ".*:light_exclamation" if (Value($name) eq "ERROR"); return ".*:light_question" if (Value($name) eq "Initialized"); return ".*:on@#".$rgb.":toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "rgb"); - return ".*:on@#FFFF00:toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "effect"); + return ".*:light_led_stripe_rgb@#FFFF00:toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "effect"); return ".*:it_television@#0000FF:toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "clearall"); } 1; =pod +=item helper +=item summary provides access to the Hyperion JSON server +=item summary_DE stellt Zugang zum Hyperion JSON Server zur Verfügung =begin html @@ -975,7 +980,7 @@ sub Hyperion_devStateIcon($;$)
- +

Attributes


- +

Readings