{% for state in states.sensor | selectattr('attributes.friendly_name', 'defined') | selectattr('attributes.unit_of_measurement', 'equalto', 'kWh') | sort(attribute='attributes.friendly_name') %} {% if state.state not in ['unavailable', 'unknown'] and state.state | float is defined %}{{ state.attributes.friendly_name }} {{ state.state | round(1) }} {{ state.attributes.unit_of_measurement }}{% endif %}{% endfor %}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter