mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Fixed sliders to numbers
This commit is contained in:
parent
6733138762
commit
74bccbbe32
@ -124,7 +124,7 @@ script:
|
|||||||
{{ next }}{% endraw %}
|
{{ next }}{% endraw %}
|
||||||
|
|
||||||
- service_template: >
|
- service_template: >
|
||||||
{% raw %}{% if states.light.YOUR_LIGHT.attributes.brightness|default(0)|int < states('input_slider.light_maximum')|int %}
|
{% raw %}{% if states.light.YOUR_LIGHT.attributes.brightness|default(0)|int < states('input_number.light_maximum')|int %}
|
||||||
script.turn_on
|
script.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
script.turn_off
|
script.turn_off
|
||||||
@ -155,7 +155,7 @@ script:
|
|||||||
{{ next }}{% endraw %}
|
{{ next }}{% endraw %}
|
||||||
|
|
||||||
- service_template: >
|
- service_template: >
|
||||||
{% raw %}{% if states.light.YOUR_LIGHT.attributes.brightness|default(0)|int > states('input_slider.light_minimum')|int %}
|
{% raw %}{% if states.light.YOUR_LIGHT.attributes.brightness|default(0)|int > states('input_number.light_minimum')|int %}
|
||||||
script.turn_on
|
script.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
script.turn_off
|
script.turn_off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user