Working on my Floorplan design, which is almost done, but I’m stuck on the second line of my weather report…
If the first line is over 75 characters, the rest gets put on the second line, which works great. However if it’s LESS than 75 characters, I can’t seem to figure out how to make the sensor’s state “blank”. I currently just have it set to “_”. Can I make it completely empty? Here is my code:
hourly_summary_2:
friendly_name: "Hourly Summary 2"
value_template: >-
{% if states.sensor.dark_sky_hourly_summary.state | length > 75 %}
{{ (states.sensor.dark_sky_hourly_summary.state | wordwrap(75, true,"§")).split("§")[1] }}
{% else %}
_
{% endif %}