Add lightning warning badge on home page
This commit is contained in:
@@ -173,6 +173,25 @@ views:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: navigate
|
action: navigate
|
||||||
navigation_path: /lovelace/weather
|
navigation_path: /lovelace/weather
|
||||||
|
- type: custom:mushroom-template-card
|
||||||
|
primary: Lightning Warning
|
||||||
|
secondary: >-
|
||||||
|
{{
|
||||||
|
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
|
||||||
|
}} strikes in last hour!
|
||||||
|
icon: mdi:lightning-bolt
|
||||||
|
entity: binary_sensor.lightning_warning
|
||||||
|
color: var(--warning-color)
|
||||||
|
badge_icon: mdi:exclamation
|
||||||
|
badge_color: var(--error-color)
|
||||||
|
tap_action:
|
||||||
|
action: none
|
||||||
|
icon_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.lightning_warning
|
||||||
|
state: 'on'
|
||||||
column_span: 1
|
column_span: 1
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
Reference in New Issue
Block a user