Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daveonkels/bcd000b65e3f1173ba9b17a5ade89c56 to your computer and use it in GitHub Desktop.
Save daveonkels/bcd000b65e3f1173ba9b17a5ade89c56 to your computer and use it in GitHub Desktop.
Lovelace WX Card Example
cards:
- entity: weather.seattle_wa
type: weather-forecast
- entities:
- entity: sensor.dark_sky_summary
show_header_toggle: false
type: entities
- cards:
- color_thresholds:
- color: '#1B5ED0'
value: 25
- color: '#1B5E82'
value: 10
- color: '#1B8FD0'
value: 0
entities:
- entity: sensor.dark_sky_wind_speed
index: 0
line_width: 5
name: Wind Speed
show:
labels: true
type: 'custom:mini-graph-card'
- color_thresholds:
- color: '#1B5ED0'
value: 75
- color: '#1B5E82'
value: 50
- color: '#1B8FD0'
value: 25
entities:
- entity: sensor.dark_sky_humidity
index: 0
line_width: 5
name: Humidity
show:
labels: true
type: 'custom:mini-graph-card'
type: horizontal-stack
- cards:
- color_thresholds:
- color: '#1B5ED0'
value: 75
- color: '#1B5E82'
value: 60
- color: '#1B8FD0'
value: 50
entities:
- entity: sensor.dark_sky_apparent_temperature
index: 0
line_width: 5
name: Apparent Temp
show:
labels: true
type: 'custom:mini-graph-card'
- color_thresholds:
- color: '#1B5ED0'
value: 75
- color: '#1B5E82'
value: 60
- color: '#1B8FD0'
value: 50
entities:
- entity: sensor.dark_sky_temperature
index: 0
line_width: 5
name: Actual Temp
show:
labels: true
type: 'custom:mini-graph-card'
type: horizontal-stack
- columns: 3
entities:
- entity: sensor.dark_sky_wind_speed_1h
name: Wind Speed
- entity: sensor.dark_sky_apparent_temperature_1h
name: Feels Like
- entity: sensor.dark_sky_cloud_coverage_1h
name: Cloud Coverage
- entity: sensor.dark_sky_humidity_1h
name: Humidity
- entity: sensor.dark_sky_precip_intensity_1h
name: Precip
- entity: sensor.dark_sky_precip_probability_1h
name: Probability
title: Forecast for the next hour
type: glance
type: vertical-stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment