Merge pull request #3403 from BioSehnsucht/rename-input-slider
Rename input_slider to input_number and add numeric text box option
This commit is contained in:
parent
48d1b3347f
commit
7076f2006d
7 changed files with 59 additions and 51 deletions
|
@ -1257,7 +1257,7 @@ self.toggle("light.office_1", color_name = "green")
|
|||
|
||||
### {% linkable_title select_value() %}
|
||||
|
||||
This is a convenience function for the `input_slider.select_value` function. It is able to set the value of an input_slider in Home Assistant.
|
||||
This is a convenience function for the `input_number.select_value` function. It is able to set the value of an input_number in Home Assistant.
|
||||
|
||||
#### {% linkable_title Synopsis %}
|
||||
|
||||
|
@ -1273,16 +1273,16 @@ None
|
|||
|
||||
##### {% linkable_title entity_id %}
|
||||
|
||||
Fully qualified entity_id of the input_slider to be changed, e.g. `input_slider.alarm_hour`.
|
||||
Fully qualified entity_id of the input_number to be changed, e.g. `input_number.alarm_hour`.
|
||||
|
||||
##### {% linkable_title value %}
|
||||
|
||||
The new value to set the input slider to.
|
||||
The new value to set the input number to.
|
||||
|
||||
#### {% linkable_title Examples %}
|
||||
|
||||
```python
|
||||
self.select_value("input_slider.alarm_hour", 6)
|
||||
self.select_value("input_number.alarm_hour", 6)
|
||||
```
|
||||
|
||||
### {% linkable_title select_option() %}
|
||||
|
@ -1307,7 +1307,7 @@ Fully qualified entity_id of the input_select to be changed, e.g. `input_select.
|
|||
|
||||
##### {% linkable_title value %}
|
||||
|
||||
The new value to set the input slider to.
|
||||
The new value to set the input number to.
|
||||
|
||||
#### {% linkable_title Examples %}
|
||||
|
||||
|
|
|
@ -71,9 +71,9 @@ delay:
|
|||
```
|
||||
|
||||
```yaml
|
||||
# Waits however many minutes input_slider.minute_delay is set to
|
||||
# Waits however many minutes input_number.minute_delay is set to
|
||||
# Valid formats include HH:MM and HH:MM:SS
|
||||
delay: {% raw %}'00:{{ states.input_slider.minute_delay.state | int }}:00'{% endraw %}
|
||||
delay: {% raw %}'00:{{ states.input_number.minute_delay.state | int }}:00'{% endraw %}
|
||||
```
|
||||
### {% linkable_title Wait %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue