v1.0.8
v1.0.8
ADDED
- Added
humidity: icon_template
icon template for humidity indicator, a simple template engine is used jinja-js - Added
target_humidity: icon_template
icon template for target_humidity indicator, a simple template engine is used jinja-js - Added
temperature: icon_template
icon template for temperature indicator, a simple template engine is used jinja-js - Added
depth: icon_template
icon template for temperature indicator, a simple template engine is used jinja-js
#####Example
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
depth:
icon_template: >
{% if depth < 10 %}
<ha-icon class='state__value_icon' icon='mdi:tray-alert' style='color: #bd1c1c;'></ha-icon>
{% elseif depth < 45 %}
<ha-icon class='state__value_icon' icon='mdi:tray-minus'></ha-icon>
{% else %}
<ha-icon class='state__value_icon' icon='mdi:tray-full'></ha-icon>
{% endif %}
CHANGED
- styles
humidity:icon
changed default icon frommdi:water-outline
tomdi:water
depth:icon
changed default icon frommdi:beaker-outline
tomdi:tray-full