Update human-sensor-f2-stable-github.yaml
Added filters for sensors and a lambda-filter for text-sensor
This commit is contained in:
parent
06f5726673
commit
21bc020c1e
|
|
@ -148,6 +148,13 @@ text_sensor:
|
||||||
icon: "mdi:format-text"
|
icon: "mdi:format-text"
|
||||||
entity_category: "diagnostic"
|
entity_category: "diagnostic"
|
||||||
internal: False #If Don't Want to See UART Receive Data, Set To True
|
internal: False #If Don't Want to See UART Receive Data, Set To True
|
||||||
|
filters:
|
||||||
|
- lambda: |-
|
||||||
|
static std::string last;
|
||||||
|
if (x == last)
|
||||||
|
return {};
|
||||||
|
last = x;
|
||||||
|
return x;
|
||||||
on_value:
|
on_value:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
if (id(LD1125F_UART_Text).state.substr(0,3) == "occ") {
|
if (id(LD1125F_UART_Text).state.substr(0,3) == "occ") {
|
||||||
|
|
@ -247,15 +254,14 @@ sensor:
|
||||||
unit_of_measurement: "m"
|
unit_of_measurement: "m"
|
||||||
accuracy_decimals: 2
|
accuracy_decimals: 2
|
||||||
filters: # Use Fliter To Debounce
|
filters: # Use Fliter To Debounce
|
||||||
- sliding_window_moving_average:
|
- delta: 0%
|
||||||
window_size: 8
|
|
||||||
send_every: 2
|
|
||||||
- heartbeat: 0.2s
|
|
||||||
- platform: bh1750
|
- platform: bh1750
|
||||||
name: "Illuminance"
|
name: "Illuminance"
|
||||||
accuracy_decimals: 1
|
accuracy_decimals: 1
|
||||||
id: bh1750_light
|
id: bh1750_light
|
||||||
update_interval: 1s
|
update_interval: 1s
|
||||||
|
filters:
|
||||||
|
- delta: 0.1
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: status_led
|
- platform: status_led
|
||||||
|
|
@ -415,4 +421,3 @@ number:
|
||||||
min_value: 0.5
|
min_value: 0.5
|
||||||
max_value: 10
|
max_value: 10
|
||||||
step: 0.5
|
step: 0.5
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user