Removed minus from const value.

This commit is contained in:
Kai Lauterbach 2022-05-05 10:26:29 +02:00
parent f25b6dfa8e
commit 27a3a08127

View file

@ -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