Comment added
This commit is contained in:
parent
9d21170f06
commit
d83182ddf5
1 changed files with 3 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue