Use globals for slider values
This commit is contained in:
parent
ae73ae5ad6
commit
10f1fbc448
@ -607,13 +607,12 @@ number:
|
|||||||
- platform: template
|
- platform: template
|
||||||
name: "PIR Hold Time"
|
name: "PIR Hold Time"
|
||||||
id: pir_hold_time_setter
|
id: pir_hold_time_setter
|
||||||
optimistic: true
|
|
||||||
min_value: 0
|
min_value: 0
|
||||||
max_value: 60
|
max_value: 60
|
||||||
step: 5
|
step: 5
|
||||||
restore_value: true
|
lambda: |-
|
||||||
initial_value: 15
|
return id(pir_hold_time);
|
||||||
on_value:
|
set_action:
|
||||||
then:
|
then:
|
||||||
- globals.set:
|
- globals.set:
|
||||||
id: pir_hold_time
|
id: pir_hold_time
|
||||||
@ -624,13 +623,12 @@ number:
|
|||||||
- platform: template
|
- platform: template
|
||||||
name: "Light Presence Threshold"
|
name: "Light Presence Threshold"
|
||||||
id: light_presence_threshold_setter
|
id: light_presence_threshold_setter
|
||||||
optimistic: true
|
|
||||||
min_value: 0
|
min_value: 0
|
||||||
max_value: 200
|
max_value: 200
|
||||||
step: 5
|
step: 5
|
||||||
restore_value: true
|
lambda: |-
|
||||||
initial_value: 30
|
return id(light_presence_threshold);
|
||||||
on_value:
|
set_action:
|
||||||
then:
|
then:
|
||||||
- globals.set:
|
- globals.set:
|
||||||
id: light_presence_threshold
|
id: light_presence_threshold
|
||||||
|
Loading…
x
Reference in New Issue
Block a user