From 604198c35216db59b5d72f8df9335af419e16c58 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Fri, 8 Jan 2021 16:54:03 +0100 Subject: [PATCH] Added white light level to the output. --- src/main.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f430ecc..9327e0f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,16 +30,17 @@ SoundData_t soundData = {0}; // Definition of the display attributes of data sent to Home Assistant. // The attribute fields are: {name, unit, icon, decimal places} HA_Attributes_t pressure = {"Pressure", "hPa", "weather-cloudy", 1}; -HA_Attributes_t humidity = {"Humidity","%","water-percent",1}; +HA_Attributes_t humidity = {"Humidity", "%", "water-percent", 1}; HA_Attributes_t temperature = {"Temperature", CELSIUS_SYMBOL, "thermometer", 1}; -HA_Attributes_t illuminance = {"Illuminance","lx","white-balance-sunny",2}; -HA_Attributes_t soundLevel = {"Sound level","dBA","microphone",1}; -HA_Attributes_t peakAmplitude = {"Sound peak","mPa","waveform",2}; -HA_Attributes_t estimatedCO2 = {"Estimated CO2","ppm","chart-bubble",1}; -HA_Attributes_t equivalentBreathVOC = {"Equivalent breath VOC","ppm","chart-bubble",2}; +HA_Attributes_t illuminance = {"Illuminance", "lx", "white-balance-sunny", 2}; +HA_Attributes_t whiteLightLevel = {"White light level", " ", "white-balance-sunny", 0}; +HA_Attributes_t soundLevel = {"Sound level", "dBA", "microphone", 1}; +HA_Attributes_t peakAmplitude = {"Sound peak", "mPa", "waveform", 2}; +HA_Attributes_t estimatedCO2 = {"Estimated CO2", "ppm", "chart-bubble", 1}; +HA_Attributes_t equivalentBreathVOC = {"Equivalent breath VOC", "ppm", "chart-bubble", 2}; HA_Attributes_t AQ_index = {"Air Quality Index", " ", "thought-bubble-outline", 1}; -HA_Attributes_t AQ_assessment = {"Air quality assessment","","flower-tulip",0}; -HA_Attributes_t AQ_calibration = {"Air quality calibration","","flower-tulip",0}; +HA_Attributes_t AQ_assessment = {"Air quality assessment", "", "flower-tulip", 0}; +HA_Attributes_t AQ_calibration = {"Air quality calibration", "", "flower-tulip", 0}; HA_Attributes_t particleConcentration = {"Particle concentration", "ppL", "chart-bubble", 0}; HA_Attributes_t particleCalibration = {"Particle calibration", "", "chart-bubble", 0};