31_HUEDevice.pm: initialize battery helper
git-svn-id: https://svn.fhem.de/fhem/trunk@20319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -352,6 +352,8 @@ sub HUEDevice_Define($$)
|
|||||||
$hash->{helper}{pct} = -1;
|
$hash->{helper}{pct} = -1;
|
||||||
$hash->{helper}{rgb} = "";
|
$hash->{helper}{rgb} = "";
|
||||||
|
|
||||||
|
$hash->{helper}{battery} = -1;
|
||||||
|
|
||||||
$attr{$name}{devStateIcon} = '{(HUEDevice_devStateIcon($name),"toggle")}' if( !defined( $attr{$name}{devStateIcon} ) );
|
$attr{$name}{devStateIcon} = '{(HUEDevice_devStateIcon($name),"toggle")}' if( !defined( $attr{$name}{devStateIcon} ) );
|
||||||
|
|
||||||
my $icon_path = AttrVal("WEB", "iconPath", "default:fhemSVG:openautomation" );
|
my $icon_path = AttrVal("WEB", "iconPath", "default:fhemSVG:openautomation" );
|
||||||
|
|||||||
Reference in New Issue
Block a user