mirror of
https://github.com/Threnklyn/NSPanel_HA_Blueprint.git
synced 2026-05-18 20:53:28 +02:00
Update nspanel_blueprint.yaml
This commit is contained in:
@@ -4620,7 +4620,7 @@ action:
|
|||||||
component: "{{ repeat.item.row }}_state"
|
component: "{{ repeat.item.row }}_state"
|
||||||
message: >
|
message: >
|
||||||
{% if is_number(states(repeat.item.entity)) %}
|
{% if is_number(states(repeat.item.entity)) %}
|
||||||
{{ states(repeat.item.entity) | round(1) }}{{ state_attr(repeat.item.entity, "unit_of_measurement") if state_attr(repeat.item.entity, "unit_of_measurement") else '' }}
|
{{ states(repeat.item.entity) | round(2) }}{{ state_attr(repeat.item.entity, "unit_of_measurement") if state_attr(repeat.item.entity, "unit_of_measurement") else '' }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ states(repeat.item.entity) | default('unknown') }}
|
{{ states(repeat.item.entity) | default('unknown') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user