Add icons to various sensors
This commit is contained in:
parent
fd7e438c62
commit
5c94e56847
@ -575,6 +575,7 @@ sensor:
|
||||
# Dew Point
|
||||
- platform: template
|
||||
name: "SHT45 Dew Point"
|
||||
icon: mdi:thermometer-water
|
||||
id: sht45_dew_point
|
||||
unit_of_measurement: "°C"
|
||||
lambda: |-
|
||||
@ -589,6 +590,7 @@ sensor:
|
||||
# IAQ Index (1-5, 5=Great))
|
||||
- platform: template
|
||||
name: "IAQ Index"
|
||||
icon: mdi:air-purifier
|
||||
id: iaq_index
|
||||
lambda: |-
|
||||
int tvoc = id(sgp30_tvoc).state;
|
||||
@ -603,6 +605,7 @@ sensor:
|
||||
# Room Health Score (1-4, 4=Optimal)
|
||||
- platform: template
|
||||
name: "Room Health Score"
|
||||
icon: mdi:home-thermometer
|
||||
id: room_health
|
||||
lambda: |-
|
||||
float temp = id(sht45_temperature).state;
|
||||
@ -750,6 +753,7 @@ text_sensor:
|
||||
# VOC Level
|
||||
- platform: template
|
||||
name: "VOC Level"
|
||||
icon: mdi:radiator
|
||||
lambda: |-
|
||||
int tvoc = id(sgp30_tvoc).state;
|
||||
if (tvoc < 65) return {"Great"};
|
||||
@ -762,6 +766,7 @@ text_sensor:
|
||||
# CO2 Level
|
||||
- platform: template
|
||||
name: "CO2 Level"
|
||||
icon: mdi:molecule-co2
|
||||
lambda: |-
|
||||
int eco2 = id(sgp30_eco2).state;
|
||||
if (eco2 < 500) return {"Great"};
|
||||
@ -774,6 +779,7 @@ text_sensor:
|
||||
# IAQ Classification
|
||||
- platform: template
|
||||
name: "IAQ Classification"
|
||||
icon: mdi:air-purifier
|
||||
lambda: |-
|
||||
int iaq = id(iaq_index).state;
|
||||
if (iaq == 5) return {"Great"};
|
||||
@ -786,6 +792,7 @@ text_sensor:
|
||||
# Room Health
|
||||
- platform: template
|
||||
name: "Room Health"
|
||||
icon: mdi:home-thermometer
|
||||
lambda: |-
|
||||
int score = id(room_health).state;
|
||||
if (score == 4) return {"Optimal"};
|
||||
|
Loading…
x
Reference in New Issue
Block a user