Automation Icon fix

This commit is contained in:
JonatanRek 2019-10-08 18:30:44 +02:00
parent 9ae039a4b5
commit 517a5863ce

View File

@ -6,27 +6,28 @@
<h5 class="fa"> <h5 class="fa">
<?php <?php
//echo $AUTOMATIONDATA['ifSomething']; //echo $AUTOMATIONDATA['ifSomething'];
switch ($AUTOMATIONDATA['ifSomething']) { $ifCode = json_decode($AUTOMATIONDATA['ifSomething']);
switch ($ifCode->type) {
case 'sunSet': case 'sunSet':
echo'&#xf186'; echo'&#xf186';
break; break;
case 'sunRise': case 'sunRise':
echo'&#xf185 '; echo'&#xf185 ';
break; break;
case 'inHome': case 'inHome':
echo'&#xf090'; echo'&#xf090';
break; break;
case 'outHome': case 'outHome':
echo'&#xf08b'; echo'&#xf08b';
break; break;
case 'outDevice': case 'outDevice':
echo'&#xf2db'; echo'&#xf2db';
break; break;
default: default:
echo'&#xf017'; echo'&#xf017';
break; break;