98_Hyperion: new attr disable, added commandref summary

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11993 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
deespe 2016-08-19 19:38:38 +00:00
parent d9609eda7f
commit 410685aa03

View File

@ -62,7 +62,8 @@ sub Hyperion_Initialize($)
$hash->{GetFn} = "Hyperion_Get"; $hash->{GetFn} = "Hyperion_Get";
$hash->{SetFn} = "Hyperion_Set"; $hash->{SetFn} = "Hyperion_Set";
$hash->{UndefFn} = "Hyperion_Undef"; $hash->{UndefFn} = "Hyperion_Undef";
$hash->{AttrList} = "hyperionBin ". $hash->{AttrList} = "disable:1 ".
"hyperionBin ".
"hyperionConfigDir ". "hyperionConfigDir ".
"hyperionDefaultDuration ". "hyperionDefaultDuration ".
"hyperionDefaultPriority ". "hyperionDefaultPriority ".
@ -454,6 +455,7 @@ sub Hyperion_GetUpdate(@)
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
InternalTimer(gettimeofday() + $hash->{INTERVAL},"Hyperion_GetUpdate",$hash,1); InternalTimer(gettimeofday() + $hash->{INTERVAL},"Hyperion_GetUpdate",$hash,1);
} }
return undef if (IsDisabled($name) > 0);
Hyperion_Call($hash,"statusRequest",undef); Hyperion_Call($hash,"statusRequest",undef);
return undef; return undef;
} }
@ -808,13 +810,16 @@ sub Hyperion_devStateIcon($;$)
return ".*:light_exclamation" if (Value($name) eq "ERROR"); return ".*:light_exclamation" if (Value($name) eq "ERROR");
return ".*:light_question" if (Value($name) eq "Initialized"); return ".*:light_question" if (Value($name) eq "Initialized");
return ".*:on@#".$rgb.":toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "rgb"); 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"); return ".*:it_television@#0000FF:toggle" if (Value($name) ne "off" && ReadingsVal($name,"mode","") eq "clearall");
} }
1; 1;
=pod =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 =begin html
<a name="Hyperion"></a> <a name="Hyperion"></a>
@ -975,7 +980,7 @@ sub Hyperion_devStateIcon($;$)
</li> </li>
</ul> </ul>
<br> <br>
<a name="Hyperion_Attr"></a> <a name="Hyperion_attr"></a>
<p><b>Attributes</b></p> <p><b>Attributes</b></p>
<ul> <ul>
<li> <li>
@ -1013,7 +1018,7 @@ sub Hyperion_devStateIcon($;$)
</li> </li>
</ul> </ul>
<br> <br>
<a name="Hyperion_Read"></a> <a name="Hyperion_read"></a>
<p><b>Readings</b></p> <p><b>Readings</b></p>
<ul> <ul>
<li> <li>