We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you please advise why the below blueprint does not work on the dashboard?
`blueprint: custom_cards:
entity: sensor.eskom_gridfreq icon: |2 {% if is_state(entity, '0.0') %} mdi:transmission-tower-off {% else %} mdi:transmission-tower {% endif %} icon_color: |2- {% if not is_state(entity, '0.0') %} #0c0 {% else %} red {% endif %} layout: vertical primary: |2- {% if not is_state(entity, '0.0') %} Eskom {% else %} Eskom {% endif %} secondary: |2- {% if not is_state(entity, '0.0') %} Supply Is On! {% else %} Supply Is Dead! {% endif %} tap_action: action: toggle type: custom:mushroom-template-card
entity: sensor.solar_watts icon: |2- {% if is_state(entity, '0.0') %} mdi:weather-sunset-down {% else %} mdi:solar-power {% endif %} icon_color: |2- {% if not is_state(entity, '0.0') %} #0c0 {% else %} red {% endif %} layout: vertical primary: |2- {% if not is_state(entity, '0.0') %} Solar {% else %} Solar {% endif %} secondary: |2- {% if not is_state(entity, '0.0') %} Generating Power! {% else %} Is it night time? {% endif %} tap_action: action: toggle type: custom:mushroom-template-card
entity: sensor.eskom_loadshedding_stage icon: |2+ {% if is_state(entity, '0') %} mdi:check-circle {% else %} mdi:alert-circle {% endif %}
icon_color: |2- {% if is_state(entity, '0') %} #0c0 {% else %} red {% endif %} layout: vertical primary: |2- {% if is_state(entity, '0') %} Loadshedding {% else %} LoadShedding {% endif %} secondary: |2- {% if is_state(entity, '0.0') %} None {% else %} Stage {{ states('sensor.eskom_loadshedding_stage')}} {% endif %} tap_action: action: toggle type: custom:mushroom-template-card type: horizontal-stack
The text was updated successfully, but these errors were encountered:
Hard to find an error with the code you submitted, it is not well formatted. But, the start of the Blueprint must have looked like this.
Sorry, something went wrong.
No branches or pull requests
Could you please advise why the below blueprint does not work on the dashboard?
`blueprint:
custom_cards:
description: Created from the Pi-Hole Layout
name: SolarPower
type: page
version: '1.0'
card:
cards:
item_classes: col-lg-3
type: vertical-stack
entity: sensor.eskom_gridfreq
icon: |2
{% if is_state(entity, '0.0') %}
mdi:transmission-tower-off
{% else %}
mdi:transmission-tower
{% endif %}
icon_color: |2-
{% if not is_state(entity, '0.0') %}
#0c0
{% else %}
red
{% endif %}
layout: vertical
primary: |2-
{% if not is_state(entity, '0.0') %}
Eskom
{% else %}
Eskom
{% endif %}
secondary: |2-
{% if not is_state(entity, '0.0') %}
Supply Is On!
{% else %}
Supply Is Dead!
{% endif %}
tap_action:
action: toggle
type: custom:mushroom-template-card
entity: sensor.solar_watts
icon: |2-
{% if is_state(entity, '0.0') %}
mdi:weather-sunset-down
{% else %}
mdi:solar-power
{% endif %}
icon_color: |2-
{% if not is_state(entity, '0.0') %}
#0c0
{% else %}
red
{% endif %}
layout: vertical
primary: |2-
{% if not is_state(entity, '0.0') %}
Solar
{% else %}
Solar
{% endif %}
secondary: |2-
{% if not is_state(entity, '0.0') %}
Generating Power!
{% else %}
Is it night time?
{% endif %}
tap_action:
action: toggle
type: custom:mushroom-template-card
entity: sensor.eskom_loadshedding_stage
icon: |2+
{% if is_state(entity, '0') %}
mdi:check-circle
{% else %}
mdi:alert-circle
{% endif %}
icon_color: |2-
{% if is_state(entity, '0') %}
#0c0
{% else %}
red
{% endif %}
layout: vertical
primary: |2-
{% if is_state(entity, '0') %}
Loadshedding
{% else %}
LoadShedding
{% endif %}
secondary: |2-
{% if is_state(entity, '0.0') %}
None
{% else %}
Stage {{
states('sensor.eskom_loadshedding_stage')}}
{% endif %}
tap_action:
action: toggle
type: custom:mushroom-template-card
type: horizontal-stack
icon: mdi:speedometer
layout: vertical
multiline_secondary: false
primary: Max Laod
secondary: '{{states(entity)}}'
type: custom:mushroom-template-card
icon: mdi:speedometer
layout: vertical
multiline_secondary: false
primary: PV Max
secondary: '{{states(entity)}}'
type: custom:mushroom-template-card
icon: mdi:battery
layout: vertical
multiline_secondary: false
primary: Battery Volts
secondary: '{{states(entity)}}'
type: custom:mushroom-template-card
icon: mdi:battery
layout: vertical
multiline_secondary: false
primary: Battery SOC
secondary: '{{states(entity)}} %'
type: custom:mushroom-template-card
type: horizontal-stack
entities:
entity: sensor.inverter_totalwatts
font_size: 65
font_size_header: 9
height: 35
hours_to_show: 24
icon: mdi:account-cancel-outline
line_width: 1
name: Current Load
points_per_hour: 3600
show:
average: true
extrema: true
graph: bar
smoothing: false
style: |
ha-card {
background: var(--paper-card-background-color);
border-radius: 10px;
box-shadow: 10px;
font-weight: bold;
opacity: 0.8;
}
tap_action: none
type: custom:mini-graph-card
update_interval: 1
items_classes: col-lg-12 col-md-12 col-sm-12 col-xs-12
padding: true
type: custom:dwains-flexbox-card
entities:
entity: sensor.solar_watts
font_size: 65
font_size_header: 9
height: 35
hours_to_show: 24
icon: mdi:account-cancel-outline
line_width: 1
name: Current Load
points_per_hour: 3600
show:
average: true
extrema: true
graph: bar
smoothing: false
style: |
ha-card {
background: var(--paper-card-background-color);
border-radius: 10px;
box-shadow: 10px;
font-weight: bold;
opacity: 0.8;
}
tap_action: none
type: custom:mini-graph-card
update_interval: 1
type: horizontal-stack
entities:
entity: sensor.eskom_gridwatts
font_size: 65
font_size_header: 9
height: 35
hours_to_show: 24
icon: mdi:account-cancel-outline
line_width: 1
name: Current Load
points_per_hour: 3600
show:
average: true
extrema: true
graph: bar
smoothing: false
style: |
ha-card {
background: var(--paper-card-background-color);
border-radius: 10px;
box-shadow: 10px;
font-weight: bold;
opacity: 0.8;
}
tap_action: none
type: custom:mini-graph-card
update_interval: 1
type: horizontal-stack
items_classes: col-lg-6 col-md-6 col-sm-12 col-xs-12
padding: true
type: custom:dwains-flexbox-card
item_classes: col-lg-6 col-xs-12
type: vertical-stack
item_classes: col-lg-3
type: vertical-stack
items_classes: col-xs-12
padding: true
type: custom:dwains-flexbox-card`
The text was updated successfully, but these errors were encountered: