mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 17:55:57 +00:00
Merge remote-tracking branch 'upstream/fix-valve-action-trigger-args' into integration
This commit is contained in:
@@ -356,6 +356,19 @@ number:
|
||||
min_value: 0
|
||||
max_value: 100
|
||||
step: 1
|
||||
# Exercise valve.control inside a trigger with non-empty Ts (number on_value
|
||||
# passes float).
|
||||
- platform: template
|
||||
id: template_valve_position_number
|
||||
optimistic: true
|
||||
min_value: 0
|
||||
max_value: 100
|
||||
step: 1
|
||||
on_value:
|
||||
then:
|
||||
- valve.control:
|
||||
id: template_valve
|
||||
position: !lambda "return x / 100.0f;"
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
|
||||
Reference in New Issue
Block a user