{% let column_class -%} {% match actual.reading.value -%} {% when Value::Temperature with (_) -%} {% let column_class = "is-2" -%} {% when Value::Bft with (_) -%} {% let column_class = "is-2" -%} {% when Value::Boolean with (_) -%} {% let column_class = "is-2" -%} {% when Value::WindDirection with (_) -%} {% let column_class = "is-3" -%} {% when Value::DataSize with (_) -%} {% let column_class = "is-2" -%} {% when Value::ImageUrl with (_) -%} {% let column_class = "is-4" -%} {% when Value::Rh with (_) -%} {% let column_class = "is-2" -%} {% else -%} {% let column_class = "is-3" -%} {% endmatch -%}

{{ actual.sensor.display_title() }}

{# TODO: a custom filter. #} {{ actual.reading.timestamp.format("%b %d, %H:%M:%S").to_string() }}

{% let value = actual.reading.value.as_ref() %} {% include "value.html" %}