mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
correct value_template format for command_state (#1868)
This commit is contained in:
parent
a11ff60b86
commit
297e37dbae
@ -59,7 +59,7 @@ switch:
|
|||||||
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
|
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
|
||||||
command_off: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/0"
|
command_off: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/0"
|
||||||
command_state: "/usr/bin/curl -X GET http://192.168.1.10/digital/4"
|
command_state: "/usr/bin/curl -X GET http://192.168.1.10/digital/4"
|
||||||
value_template: '{% raw %}{{ return_value == "1" }}{% endraw %}'
|
value_template: '{% raw %}{{ value == "1" }}{% endraw %}'
|
||||||
friendly_name: Kitchen Lightswitch
|
friendly_name: Kitchen Lightswitch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user