mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Add quotes to the payload_template example. (#14206)
The payload_template example was missing enclosing quotes. Confirmed that this is required. `payload_template: {{ states('sun.sun') }}` causes the service call to fail, ("value should be string for dictionary value"). `payload_template: "{{ states('sun.sun') }}"` publishes correctly
This commit is contained in:
parent
8a48c2f9d3
commit
807e232172
@ -28,7 +28,7 @@ payload: on
|
||||
{% raw %}
|
||||
```yaml
|
||||
topic: home-assistant/light/1/state
|
||||
payload_template: {{ states('device_tracker.paulus') }}
|
||||
payload_template: "{{ states('device_tracker.paulus') }}"
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user