Skip to content

Commit

Permalink
Tweak devices status card
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Jul 14, 2024
1 parent 8a40450 commit 3bbf787
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions dashboards/views/network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dashboards/views/sensor-details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'] -%}
Expand Down

0 comments on commit 3bbf787

Please sign in to comment.