From 27a3a0812734d4797a8f70074a1eb6c13efcf6c5 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 5 May 2022 10:26:29 +0200 Subject: [PATCH] Removed minus from const value. --- esphome_config/weatherstation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome_config/weatherstation.yml b/esphome_config/weatherstation.yml index cae6d31..6f240c9 100644 --- a/esphome_config/weatherstation.yml +++ b/esphome_config/weatherstation.yml @@ -73,7 +73,7 @@ sensor: lambda: |- const float perc_to_raw = 65535.0 / 100.0; const float red_to_lux = -0.32466; - const float green_to_lux = -1.57837; + const float green_to_lux = 1.57837; const float blue_to_lux = -0.73191; return ((red_to_lux * id(apds9960_red).raw_state) + (green_to_lux * id(apds9960_green).raw_state) + (blue_to_lux * id(apds9960_blue).raw_state)) * perc_to_raw; update_interval: 300s