Skip to content

Instantly share code, notes, and snippets.

@Snipercaine
Created May 29, 2020 18:15
Show Gist options
  • Save Snipercaine/b54153bebd9c3fea57dad8373c7f9f62 to your computer and use it in GitHub Desktop.
Save Snipercaine/b54153bebd9c3fea57dad8373c7f9f62 to your computer and use it in GitHub Desktop.
title: Solar Power
type: 'custom:bar-card'
entities:
- entity: sensor.energy_generation
icon: 'mdi:white-balance-sunny'
min: 0
max: 65
severity:
- color: Green
from: 45
to: 70
- color: Orange
from: 20
to: 44
- color: Red
from: 0
to: 19
- entity: sensor.power_generation
icon: 'mdi:sunglasses'
min: 0
max: 7700
severity:
- color: Blue
from: 6500
to: 7700
- color: Yellow
from: 3000
to: 6499
- color: Grey
from: 0
to: 2999
- entity: sensor.power_monitor_total_watts
min: 1000
max: 12000
severity:
- color: Red
from: 8000
to: 16000
icon: 'mdi:cash-usd'
- color: Orange
from: 3000
to: 6999
- color: Green
from: 0
to: 2999
icon: 'mdi:piggy-bank'
columns: '1'
positions:
icon: inside
indicator: inside
name: 'off'
animation:
state: 'on'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment