diff --git a/dashboards/views/network.yaml b/dashboards/views/network.yaml index c1a96464..462104d7 100644 --- a/dashboards/views/network.yaml +++ b/dashboards/views/network.yaml @@ -68,18 +68,18 @@ variables: svg_path: "M22,9V7H20V5A2,2 0 0,0 18,3H4A2,2 0 0,0 2,5V19A2,2 0 0,0 4,21H18A2,2 0 0,0 20,19V17H22V15H20V13H22V11H20V9H22M18,19H4V5H18V19M6,13H11V17H6V13M12,7H16V10H12V7M6,7H11V12H6V7M12,11H16V17H12V11Z" entities: - - entity: "binary_sensor.ground_floor_heat_pump_status" - state_color: true - - entity: "sensor.ground_floor_heat_pump_uptime" - - entity: "binary_sensor.kitchen_proxy_status" - state_color: true - - entity: "sensor.kitchen_proxy_uptime" - - entity: "binary_sensor.lounge_proxy_status" - state_color: true - - entity: "sensor.lounge_proxy_uptime" - - entity: "binary_sensor.office_proxy_status" - state_color: true - - entity: "sensor.office_proxy_uptime" + - type: "custom:template-entity-row" + entity: "binary_sensor.ground_floor_heat_pump_status" + secondary: "{{ state_translated('sensor.ground_floor_heat_pump_uptime') }}" + - type: "custom:template-entity-row" + entity: "binary_sensor.kitchen_proxy_status" + secondary: "{{ state_translated('sensor.kitchen_proxy_uptime') }}" + - type: "custom:template-entity-row" + entity: "binary_sensor.lounge_proxy_status" + secondary: "{{ state_translated('sensor.lounge_proxy_uptime') }}" + - type: "custom:template-entity-row" + entity: "binary_sensor.office_proxy_status" + secondary: "{{ state_translated('sensor.office_proxy_uptime') }}" - type: entities show_header_toggle: false diff --git a/dashboards/views/sensor-details.yaml b/dashboards/views/sensor-details.yaml index d01605c7..d732bfb3 100644 --- a/dashboards/views/sensor-details.yaml +++ b/dashboards/views/sensor-details.yaml @@ -16,7 +16,7 @@ <<: &aggregate_row_options type: custom:template-entity-row active: "{{ is_state('this.entity_id', 'on') }}" - secondary: "{% if states['this.entity_id'] %}{{ time_since(states['this.entity_id'].last_changed, 0) }} ago{% endif %}" + secondary: "{% if states['this.entity_id'] %}{{ time_since(states['this.entity_id'].last_changed, 0) }}{% endif %}" state: "{{ state_translated('this.entity_id') }}" name: >- {% if states['this.entity_id'] -%}