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