@@ -24,6 +24,7 @@ import {
2424 faCloudShowersHeavy ,
2525 faCloudSunRain ,
2626 faCog ,
27+ faCoins ,
2728 faCompass ,
2829 faCube ,
2930 faDatabase ,
@@ -43,6 +44,7 @@ import {
4344 faGaugeHigh ,
4445 faGear ,
4546 faGraduationCap ,
47+ faHandHoldingDollar ,
4648 faHandPointUp ,
4749 faHashtag ,
4850 faHeartPulse ,
@@ -71,12 +73,14 @@ import {
7173 faPlane ,
7274 faPlay ,
7375 faPlugCircleXmark ,
76+ faPlus ,
7477 faPowerOff ,
7578 faRadiation ,
7679 faRadiationAlt ,
7780 faRainbow ,
7881 faRecycle ,
7982 faRotate ,
83+ faRotateLeft ,
8084 faRuler ,
8185 faSeedling ,
8286 faShieldHalved ,
@@ -151,16 +155,19 @@ const ICON_MAP: Record<string, IconDefinition> = {
151155 overpower : faBolt ,
152156 overcurrent : faBolt ,
153157 current : faBolt ,
158+ leakage_current : faBolt ,
154159 reactive_energy : faBolt ,
155160 signed_power : faBolt ,
156161 power : faBolt ,
157162 energy : faBolt ,
163+ energy_produced : faBolt ,
158164 watt : faBolt ,
159165 frequency : faWaveSquare ,
160166 power_factor : faIndustry ,
161167
162168 // Temperature / climate
163- // cpu_temperature: faTemperatureHigh, // customized in fn
169+ cpu_temperature : faThermometerThreeQuarters ,
170+ device_temperature : faThermometerThreeQuarters ,
164171 heating_stop : faTemperatureHigh ,
165172 heat_protect : faTemperatureHigh ,
166173 warm_floor : faTemperatureHigh ,
@@ -353,10 +360,14 @@ const ICON_MAP: Record<string, IconDefinition> = {
353360 linkage_alarm : faTriangleExclamation ,
354361 alarm : faTriangleExclamation ,
355362 alarm_status : faTriangleExclamation ,
363+ alarm_set_1 : faTriangleExclamation ,
364+ alarm_set_2 : faTriangleExclamation ,
365+ alarm_set_3 : faTriangleExclamation ,
356366 alert_behaviour : faTriangleExclamation ,
357367 warning : faTriangleExclamation ,
358368 clear_fault : faCircleCheck ,
359369 fault : faCircleExclamation ,
370+ faults : faCircleExclamation ,
360371 error : faCircleExclamation ,
361372 breaker : faCircleExclamation ,
362373 trouble : faCircleExclamation ,
@@ -371,6 +382,7 @@ const ICON_MAP: Record<string, IconDefinition> = {
371382 restore_default : faPowerOff ,
372383 reset_switch : faPowerOff ,
373384 powerup_status : faPowerOff ,
385+ power_on_behavior : faPowerOff ,
374386 status : faCircleInfo ,
375387 state : faStarHalfAlt ,
376388 enabled : faCircleCheck ,
@@ -463,11 +475,18 @@ const ICON_MAP: Record<string, IconDefinition> = {
463475 region : faMap ,
464476 sub_region : faMap ,
465477
466- // Contracts / production
478+ // Contracts / production / expenses
467479 contract : faFileContract ,
468480 contract_type : faFileContract ,
469481 production : faIndustry ,
470482 producer : faIndustry ,
483+ prepayment : faHandHoldingDollar ,
484+ energy_balance : faCoins ,
485+
486+ // Operations
487+ energy_balance_add : faPlus ,
488+ energy_balance_reset : faRotateLeft ,
489+ water_total_reset : faRotateLeft ,
471490
472491 // Generic descriptors
473492 model : faTag ,
@@ -643,8 +662,13 @@ export const getFeatureIcon = (name: string, value: unknown, unit?: unknown): [I
643662
644663 break ;
645664 }
646- case "cpu_temperature" :
647- case "device_temperature" :
665+ case "faults" : {
666+ if ( Array . isArray ( value ) && value . length > 0 ) {
667+ className = "text-error" ;
668+ }
669+
670+ break ;
671+ }
648672 case "temperature" :
649673 case "local_temperature" : {
650674 [ icon , className ] = getTemperatureIcon ( value as number , unit as TemperatureUnit ) ;
0 commit comments