Open owarek opened 5 years ago
It looks like you are missing the single quote ' around the text of the template...
dark_sky_current_text:
value_template: '{% if is_state("sensor.dark_sky_icon","clear-day") %} Clear
{% elif is_state("sensor.dark_sky_icon","clear-night") %} Clear
{% elif is_state("sensor.dark_sky_icon","rain") %} Rain
{% elif is_state("sensor.dark_sky_icon","snow") %} Snowy
{% elif is_state("sensor.dark_sky_icon","fog") %} Foggy
{% elif is_state("sensor.dark_sky_icon","sleet") %} Sleet
{% elif is_state("sensor.dark_sky_icon","wind") %} Windy
{% elif is_state("sensor.dark_sky_icon","cloudy") %} Cloudy
{% elif is_state("sensor.dark_sky_icon","partly-cloudy-day") %} Partly Cloudy
{% elif is_state("sensor.dark_sky_icon","partly-cloudy-night") %} Partly Cloudy
{% elif is_state("sensor.dark_sky_icon","hail") %} Hailing
{% elif is_state("sensor.dark_sky_icon","lightning") %} Lightning
{% elif is_state("sensor.dark_sky_icon","thunderstorm") %} Thunderstorm
{% endif %}'
I have the same problem. It works in the template but when trying to run from AWS CloudFormation Templates errors: "Fn::Join": [ "\n", [ "#!/bin/bash", "sudo apt-get install -y jq", "/usr/bin/curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r '"region=(.region)"' >> /etc/environment" ] ]
Really would appreciate your thoughts.
When: When inserting template for
dark_sky_current_text:
What:YAML Error: YAMLException: missed comma between flow collection entries at line 58, column 27: value_template: {% if is_state("sensor.dark_sky_i ... ^
Note: When I try to paste the template to template editor it works. But when I insert it directly to the card it does not. The
dark_sky_alt_wind:
example works with no problem.Here is PasteBin link to whole card: https://pastebin.com/E81wLR0g
Can you please look at it? Thank you very much 😄