Comment added

This commit is contained in:
Kai Lauterbach 2022-05-05 09:54:00 +02:00
parent 9d21170f06
commit d83182ddf5

View file

@ -60,9 +60,10 @@ sensor:
name: "APDS9960_blue_channel"
id: apds9960_blue
- platform: template
name: "lux"
name: "light"
lambda: |-
return (-0.32466F * id(apds9960_red)..raw_state) + (1.57837F * id(apds9960_green)..raw_state) + (-0.73191F * id(apds9960_blue)..raw_state);
# TODO fix calculation to get lux instead of a percentual value
return (-0.32466F * id(apds9960_red).raw_state) + (1.57837F * id(apds9960_green).raw_state) + (-0.73191F * id(apds9960_blue).raw_state);
update_interval: 300s
unit_of_measurement: 'lux'