2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-25 15:59:21 +00:00

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:
justme-1968 2019-10-06 14:43:18 +00:00
parent f613e6ed79
commit 9ba515d4c3

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" );