Update ambient light sensor
This commit is contained in:
+23
-5
@@ -37,13 +37,13 @@ spi:
|
|||||||
mosi_pin: GPIO5
|
mosi_pin: GPIO5
|
||||||
|
|
||||||
substitutions:
|
substitutions:
|
||||||
nr_of_pages: 1
|
nr_of_pages: '"1"'
|
||||||
page_names: '{"Page 1"}'
|
page_names: '{"Page 1"}'
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
- id: nr_of_pages
|
- id: nr_of_pages
|
||||||
type: int
|
type: int
|
||||||
initial_value: '${nr_of_pages}'
|
initial_value: ${nr_of_pages}
|
||||||
- id: actual_page
|
- id: actual_page
|
||||||
type: int
|
type: int
|
||||||
initial_value: '0'
|
initial_value: '0'
|
||||||
@@ -85,14 +85,32 @@ sensor:
|
|||||||
i2c_id: sensors
|
i2c_id: sensors
|
||||||
update_interval: 10s
|
update_interval: 10s
|
||||||
type: ALS
|
type: ALS
|
||||||
auto_mode: true
|
auto_mode: false
|
||||||
|
gain: 48x
|
||||||
ambient_light:
|
ambient_light:
|
||||||
name: "Ambient Light"
|
name: "Ambient Light"
|
||||||
id: buttonplus_ambientlight
|
id: buttonplus_ambientlight
|
||||||
unit_of_measurement: "lx"
|
unit_of_measurement: "lx"
|
||||||
icon: "mdi:brightness-percent"
|
icon: "mdi:brightness-6"
|
||||||
device_class: "illuminance"
|
device_class: "illuminance"
|
||||||
state_class: "measurement"
|
state_class: "measurement"
|
||||||
|
accuracy_decimals: 1
|
||||||
|
infrared_counts:
|
||||||
|
name: "Infrared Counts"
|
||||||
|
id: buttonplus_infraredcounts
|
||||||
|
unit_of_measurement: "#"
|
||||||
|
icon: "mdi:brightness-5"
|
||||||
|
accuracy_decimals: 0
|
||||||
|
full_spectrum_counts :
|
||||||
|
name: "Full Spectrum Counts"
|
||||||
|
id: buttonplus_fullspectrumcounts
|
||||||
|
unit_of_measurement: "#"
|
||||||
|
icon: "mdi:brightness-7"
|
||||||
|
accuracy_decimals: 0
|
||||||
|
actual_gain:
|
||||||
|
name: "Actual Gain"
|
||||||
|
id: buttonplus_actualgain
|
||||||
|
icon: "mdi:multiplication"
|
||||||
accuracy_decimals: 0
|
accuracy_decimals: 0
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Active Page ID"
|
name: "Active Page ID"
|
||||||
@@ -139,7 +157,7 @@ number:
|
|||||||
id: menuselector
|
id: menuselector
|
||||||
optimistic: true
|
optimistic: true
|
||||||
min_value: 0
|
min_value: 0
|
||||||
max_value: ${nr_of_pages}
|
max_value: ${nr_of_pages | int - 1}
|
||||||
step: 1
|
step: 1
|
||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
|
|||||||
Reference in New Issue
Block a user