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:
justme1968
2019-10-06 14:43:18 +00:00
parent 2521cbe132
commit dc582328aa

View File

@@ -352,6 +352,8 @@ sub HUEDevice_Define($$)
$hash->{helper}{pct} = -1;
$hash->{helper}{rgb} = "";
$hash->{helper}{battery} = -1;
$attr{$name}{devStateIcon} = '{(HUEDevice_devStateIcon($name),"toggle")}' if( !defined( $attr{$name}{devStateIcon} ) );
my $icon_path = AttrVal("WEB", "iconPath", "default:fhemSVG:openautomation" );