Fixed sliders to numbers
This commit is contained in:
parent
6733138762
commit
74bccbbe32
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue