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