Last active
March 30, 2024 15:25
-
-
Save lwsrbrts/03a697d23a0cdf6fa46898b54dbdf44c to your computer and use it in GitHub Desktop.
The circuits section of my Smart Home Panel dashboard. Utilises the custom_template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
views: | |
- theme: Backend-selected | |
title: Smart Home Panel | |
path: smart-home-panel | |
icon: mdi:monitor-dashboard | |
badges: [] | |
cards: | |
- title: Smart Home Panel | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_delta_pro_1_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Smart Home Panel AC 1 | |
- type: gauge | |
entity: sensor.shp_delta_pro_2_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Smart Home Panel AC 2 | |
- square: false | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Infinity AC1 | |
secondary: >- | |
{%- if is_number(states(entity)) -%} | |
{{- states(entity) | round(0) -}}% / | |
{%- else -%} | |
{%- if | |
is_number(states('sensor.delta_pro_240024_average_battery')) | |
-%} | |
({{- states('sensor.delta_pro_240024_average_battery') | | |
round(0) -}}%) / | |
{%- else -%} | |
Unavailable/ | |
{%- endif -%} | |
{%- endif -%} | |
{%- if is_state('binary_sensor.delta_pro_240024_dc_input', | |
'on') -%} | |
☀️{{- states('sensor.delta_pro_240024_dc_input') | round(0) | |
-}}w | |
{%- else -%} | |
🌙 | |
{%- endif -%} | |
icon: |- | |
{% if is_number(states(entity)) %} | |
{% set level = states(entity) | int(0) %} | |
{% set x = (level) - level % 10 %} | |
{% if x > 90 %} | |
mdi:battery | |
{% elif x < 10 %} | |
mdi:battery-alert | |
{% else %} | |
mdi:battery-{{x}} | |
{% endif %} | |
{% else %} | |
mdi:battery-unknown | |
{% endif %} | |
entity: sensor.shp_ac1_battery_percentage | |
icon_color: |- | |
{% if is_number(states(entity)) %} | |
{% set level = states(entity) | int %} | |
{% set x = (level) - level % 10 %} | |
{% if x >= 70 %} | |
green | |
{% elif x < 20 %} | |
red | |
{% else %} | |
orange | |
{% endif %} | |
{% else %} | |
grey | |
{% endif %} | |
fill_container: true | |
double_tap_action: | |
action: none | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/ecoflow-delta-pro | |
multiline_secondary: true | |
badge_color: '' | |
- type: custom:mushroom-template-card | |
primary: Infinity AC2 | |
secondary: >- | |
{%- if is_number(states(entity)) -%} | |
{{- states(entity) | round(0) -}}% / | |
{%- else -%} | |
{%- if | |
is_number(states('sensor.delta_pro_220035_average_battery')) | |
-%} | |
({{- states('sensor.delta_pro_220035_average_battery') | | |
round(0) -}}%) / | |
{%- else -%} | |
Unavailable/ | |
{%- endif -%} | |
{%- endif -%} | |
{%- if is_state('binary_sensor.delta_pro_220035_dc_input', | |
'on') -%} | |
☀️{{- states('sensor.delta_pro_220035_dc_input') | round(0) | |
-}}w | |
{%- else -%} | |
🌙 | |
{%- endif -%} | |
icon: |- | |
{% if is_number(states(entity)) %} | |
{% set level = states(entity) | int(0) %} | |
{% set x = (level) - level % 10 %} | |
{% if x > 90 %} | |
mdi:battery | |
{% elif x < 10 %} | |
mdi:battery-alert | |
{% else %} | |
mdi:battery-{{x}} | |
{% endif %} | |
{% else %} | |
mdi:battery-unknown | |
{% endif %} | |
entity: sensor.shp_ac2_battery_percentage | |
icon_color: |- | |
{% if is_number(states(entity)) %} | |
{% set level = states(entity) | int %} | |
{% set x = (level) - level % 10 %} | |
{% if x >= 70 %} | |
green | |
{% elif x < 20 %} | |
red | |
{% else %} | |
orange | |
{% endif %} | |
{% else %} | |
grey | |
{% endif %} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/ecoflow-delta-pro-2 | |
hold_action: | |
action: more-info | |
double_tap_action: | |
action: none | |
fill_container: true | |
multiline_secondary: true | |
columns: 2 | |
- square: false | |
columns: 4 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Connected | |
secondary: >- | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_1_connected','on'),'Yes', | |
'No') }} | |
icon: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_1_connected','on'),'mdi:flash', | |
'mdi:flash-off') }} | |
fill_container: false | |
icon_color: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_1_connected','on'), | |
'green', 'red') }} | |
entity: binary_sensor.ecoflow_smart_home_panel_delta_pro_1_connected | |
layout: vertical | |
tap_action: | |
action: none | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
badge_color: black | |
badge_icon: mdi:numeric-1 | |
- type: custom:mushroom-template-card | |
primary: Enabled | |
secondary: >- | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_1_enabled','on'),'Yes', | |
'No') }} | |
icon: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_1_enabled','on'),'mdi:flash', | |
'mdi:flash-off') }} | |
fill_container: false | |
icon_color: > | |
{{ iif(is_state('binary_sensor.shp_delta_pro_1_enabled','on'), | |
'green', 'red') }} | |
entity: binary_sensor.ecoflow_smart_home_panel_delta_pro_1_enabled | |
layout: vertical | |
tap_action: | |
action: none | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
badge_icon: mdi:numeric-1 | |
badge_color: black | |
- type: custom:mushroom-template-card | |
primary: Connected | |
secondary: >- | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_2_connected','on'),'Yes', | |
'No') }} | |
icon: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_2_connected','on'),'mdi:flash', | |
'mdi:flash-off') }} | |
fill_container: false | |
icon_color: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_2_connected','on'), | |
'green', 'red') }} | |
entity: binary_sensor.ecoflow_smart_home_panel_delta_pro_2_connected | |
layout: vertical | |
tap_action: | |
action: none | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
badge_color: black | |
badge_icon: mdi:numeric-2 | |
- type: custom:mushroom-template-card | |
primary: Enabled | |
secondary: >- | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_2_enabled','on'),'Yes', | |
'No') }} | |
icon: > | |
{{ | |
iif(is_state('binary_sensor.shp_delta_pro_2_enabled','on'),'mdi:flash', | |
'mdi:flash-off') }} | |
fill_container: false | |
icon_color: > | |
{{ iif(is_state('binary_sensor.shp_delta_pro_2_enabled','on'), | |
'green', 'red') }} | |
entity: binary_sensor.ecoflow_smart_home_panel_delta_pro_2_enabled | |
layout: vertical | |
tap_action: | |
action: none | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
badge_color: black | |
badge_icon: mdi:numeric-2 | |
- type: horizontal-stack | |
cards: | |
- type: entities | |
entities: | |
- entity: switch.shp_pro1_recharge | |
name: Recharge | |
state_color: true | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: switch.shp_pro2_recharge | |
name: Recharge | |
state_color: true | |
show_header_toggle: false | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Grid Status | |
secondary: >- | |
{{ iif(is_state('binary_sensor.shp_grid_available','on'),'OK', | |
'Offline') }} | |
icon: > | |
{{ | |
iif(is_state('binary_sensor.shp_grid_available','on'),'mdi:check-circle', | |
'mdi:cloud-question') }} | |
entity: binary_sensor.shp_grid_available | |
fill_container: false | |
icon_color: >- | |
{{ iif(is_state('binary_sensor.shp_grid_available','on'), | |
'green', 'red') }} | |
layout: horizontal | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
tap_action: | |
action: more-info | |
- type: custom:mushroom-template-card | |
primary: |- | |
{% if is_number(states(entity)) %} | |
{% if states(entity) | int > 0 %} | |
Solar Excess | |
{% else %} | |
Solar Deficit | |
{% endif %} | |
{% else %} | |
Solar Night | |
{% endif %} | |
secondary: | | |
{% if is_number(states(entity)) %} | |
{{states(entity)}}W | |
{% else %} | |
🌙 | |
{% endif %} | |
icon: mdi:solar-panel-large | |
fill_container: false | |
icon_color: |- | |
{% if is_number(states(entity)) %} | |
{% if states(entity) | int > 1200 %} | |
#800000 | |
{% elif states(entity) | int > 900 %} | |
#db4437 | |
{% elif states(entity) | int > 600 %} | |
#ffa600 | |
{% elif states(entity) | int > 300 %} | |
#43a047 | |
{% else %} | |
#209cee | |
{% endif %} | |
{% endif %} | |
layout: horizontal | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
entity: sensor.excess_solar_watts | |
tap_action: | |
action: more-info | |
- square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: entities | |
entities: | |
- entity: number.shp_charge_limit | |
name: Charge Limit % | |
- entity: number.shp_discharge_limit | |
name: Discharge Limit % | |
- entity: switch.shp_eps | |
name: EPS Mode | |
show_header_toggle: false | |
state_color: false | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode above.</ha-alert> | |
title: Warning! ⚠️ | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Smart Home Panel Power | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: gauge | |
entity: sensor.ecoflow_smart_home_panel_combined_circuit_power | |
min: 0 | |
max: 7.2 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1.5 | |
color: '#43a047' | |
- from: 3 | |
color: '#ffa600' | |
- from: 4.5 | |
color: '#db4437' | |
- from: 6.9 | |
color: '#800000' | |
name: SHP Grid + Battery | |
- type: gauge | |
entity: sensor.electricity_power | |
min: 0 | |
max: 10 | |
segments: | |
- from: 0 | |
color: '#43a047' | |
- from: 2 | |
color: '#ffa600' | |
- from: 4 | |
color: '#db4437' | |
- from: 8 | |
color: '#800000' | |
needle: true | |
name: Grid Total | |
- type: horizontal-stack | |
cards: | |
- type: gauge | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: SHP Grid | |
entity: sensor.shp_circuits_grid_demand | |
- type: gauge | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: SHP Battery | |
entity: sensor.shp_circuits_battery_demand | |
- type: conditional | |
conditions: | |
- entity: sensor.supply_grid_and_shp_demand_difference | |
state_not: unavailable | |
card: | |
type: gauge | |
min: 0 | |
max: 14000 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Direct Grid | |
entity: sensor.supply_grid_and_shp_demand_difference | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 30s | |
graph_span: 6h | |
header: | |
show: true | |
show_states: true | |
colorize_states: true | |
title: Smart Home Panel Circuits (Watts) | |
apex_config: | |
chart: | |
height: 400px | |
legend: | |
show: true | |
all_series_config: | |
stroke_width: 2 | |
show: | |
last_updated: true | |
series: | |
- entity: sensor.shp_circuits_battery_demand | |
type: line | |
curve: smooth | |
name: Battery | |
color: '#43a047' | |
fill_raw: zero | |
float_precision: 0 | |
group_by: | |
func: max | |
duration: 1m | |
- entity: sensor.shp_circuits_grid_demand | |
type: line | |
curve: smooth | |
name: Grid via SHP | |
color: '#ffa600' | |
fill_raw: zero | |
float_precision: 0 | |
group_by: | |
func: max | |
duration: 1m | |
- entity: sensor.supply_grid_and_shp_demand_difference | |
type: line | |
curve: smooth | |
name: Direct Grid | |
color: '#db4437' | |
fill_raw: zero | |
float_precision: 0 | |
group_by: | |
func: max | |
duration: 1m | |
- theme: Backend-selected | |
title: Circuit 1 | |
path: circuit-1 | |
subview: true | |
badges: [] | |
cards: | |
- title: Sockets A | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_1_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Sockets A | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Sockets A | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_1_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_1_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- square: false | |
columns: 1 | |
title: Energy Usage | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_1_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_1_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_1_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- type: markdown | |
content: | | |
* [Kitchen](/lovelace-main/kitchen) | |
* Dishwasher | |
* Above cabinet single | |
* [Utility](/lovelace-main/utility) | |
* Washer | |
* Dryer | |
* Boiler | |
* [En-Suite](/lovelace-main/bedroom) | |
* Shaver/Toothbrush | |
- theme: Backend-selected | |
title: Circuit 2 | |
path: circuit-2 | |
subview: true | |
badges: [] | |
cards: | |
- title: Sockets C | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_2_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Sockets C | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Sockets C | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_2_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_2_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_2_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_2_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_2_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- type: markdown | |
content: | | |
* [Main bedroom](/lovelace-main/bedroom) | |
* [Main bathroom](/lovelace-main/bathroom) | |
* [Landing](/lovelace-main/hall--and--landing) | |
* [Small bedroom](/lovelace-main/small-bedroom) | |
* Back bedroom | |
* [Kitchen](/lovelace-main/kitchen) | |
* Worktop dining side | |
* Dining corner | |
* Extractor | |
* [Lounge](/lovelace-main/lounge) | |
* [Hall](/lovelace-main/hall--and--landing) | |
* Under stairs | |
* [Conservatory](/lovelace-main/conservatory) | |
- theme: Backend-selected | |
title: Circuit 3 | |
path: circuit-3 | |
subview: true | |
badges: [] | |
cards: | |
- title: Sockets B | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_3_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Sockets B | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Sockets B | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_3_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_3_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_3_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_3_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Energy Usage Today | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_3_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- type: markdown | |
content: |- | |
* [Office](/lovelace-main/office) | |
* [Kitchen](/lovelace-main/kitchen) | |
* Coffee | |
* Kettle | |
* Worktop kitchen side | |
* Above cabinet double | |
* [Front bedroom](/lovelace-main/front-bedroom) | |
* [Utility](/lovelace-main/utility) | |
* Socket | |
* [Hallway](/lovelace-main/hall--and--landing) | |
* Double socket | |
- theme: Backend-selected | |
title: Circuit 4 | |
path: circuit-4 | |
subview: true | |
badges: [] | |
cards: | |
- title: Oven & Microwave | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_4_power | |
min: 0 | |
max: 6900 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 1500 | |
color: '#43a047' | |
- from: 3000 | |
color: '#ffa600' | |
- from: 4500 | |
color: '#db4437' | |
- from: 6900 | |
color: '#800000' | |
name: Oven & Microwave | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Oven & Microwave | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_4_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_4_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_4_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_4_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_4_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 5 | |
path: circuit-5 | |
subview: true | |
badges: [] | |
cards: | |
- title: Ground Floor Lights | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_5_power | |
min: 0 | |
max: 1380 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 300 | |
color: '#43a047' | |
- from: 600 | |
color: '#ffa600' | |
- from: 1000 | |
color: '#db4437' | |
- from: 1200 | |
color: '#800000' | |
name: Ground Floor Lights | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Ground Floor Lights | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_5_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_5_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_5_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_5_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_5_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 6 | |
path: circuit-6 | |
subview: true | |
badges: [] | |
cards: | |
- title: First Floor Lights | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_6_power | |
min: 0 | |
max: 1380 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 300 | |
color: '#43a047' | |
- from: 600 | |
color: '#ffa600' | |
- from: 1000 | |
color: '#db4437' | |
- from: 1200 | |
color: '#800000' | |
name: First Floor Lights | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: First Floor Lights | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_6_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_6_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_6_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_6_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_6_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 7 | |
path: circuit-7 | |
subview: true | |
badges: [] | |
cards: | |
- title: Under Floor Heating | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_7_power | |
min: 0 | |
max: 3680 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 900 | |
color: '#43a047' | |
- from: 1800 | |
color: '#ffa600' | |
- from: 2500 | |
color: '#db4437' | |
- from: 3200 | |
color: '#800000' | |
name: Under Floor Heating | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Under Floor Heating | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_7_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_7_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_7_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_7_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_7_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 8 | |
path: circuit-8 | |
subview: true | |
badges: [] | |
cards: | |
- title: Garage Panel | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_8_power | |
min: 0 | |
max: 3680 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 900 | |
color: '#43a047' | |
- from: 1800 | |
color: '#ffa600' | |
- from: 2500 | |
color: '#db4437' | |
- from: 3200 | |
color: '#800000' | |
name: Garage Panel | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 10s | |
graph_span: 6h | |
header: | |
show: true | |
title: Garage Panel | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_8_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_8_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_8_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_8_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_8_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 9 | |
path: circuit-9 | |
subview: true | |
badges: [] | |
cards: | |
- title: Smoke Alarms | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_9_power | |
min: 0 | |
max: 1380 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 300 | |
color: '#43a047' | |
- from: 600 | |
color: '#ffa600' | |
- from: 1000 | |
color: '#db4437' | |
- from: 1200 | |
color: '#800000' | |
name: Smoke Alarms | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Smoke Alarms | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_9_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_9_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_9_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_9_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_9_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- theme: Backend-selected | |
title: Circuit 10 | |
path: circuit-10 | |
subview: true | |
badges: [] | |
cards: | |
- title: Water Heater | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: gauge | |
entity: sensor.shp_circuit_10_power | |
min: 0 | |
max: 3680 | |
needle: true | |
segments: | |
- from: 0 | |
color: '#209cee' | |
- from: 900 | |
color: '#43a047' | |
- from: 1800 | |
color: '#ffa600' | |
- from: 2500 | |
color: '#db4437' | |
- from: 3200 | |
color: '#800000' | |
name: Water Heater | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 6h | |
header: | |
show: true | |
title: Water Heater | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 2 | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Power (Watts) | |
series: | |
- entity: sensor.shp_circuit_10_power | |
yaxis_id: first | |
float_precision: 0 | |
unit: Watts | |
fill_raw: zero | |
group_by: | |
func: max | |
duration: 1m | |
show: | |
last_updated: true | |
- type: conditional | |
conditions: | |
- entity: switch.shp_eps | |
state: 'off' | |
card: | |
type: custom:vertical-stack-in-card | |
cards: | |
- type: markdown | |
content: >- | |
<ha-alert alert-type="warning">EPS Mode is *not* currently | |
enabled. Changing to battery mode will result in a short | |
outage of the circuit! Enable EPS mode below.</ha-alert> | |
title: Warning! ⚠️ | |
- type: entities | |
entities: | |
- entity: switch.shp_eps | |
name: Smart Home Panel EPS Mode | |
show_header_toggle: false | |
- type: entities | |
entities: | |
- entity: select.shp_circuit_10_mode | |
- title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', | |
'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', | |
'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', | |
'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', | |
'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', | |
'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', | |
'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', | |
'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', | |
'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', | |
'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', | |
'sensor.shp_circuit_10_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 | |
- title: Energy Usage | |
square: false | |
columns: 1 | |
type: grid | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entity | |
entity: sensor.shp_circuit_10_energy | |
name: Grid Use | |
state_color: false | |
- type: entity | |
entity: sensor.shp_circuit_10_battery_energy | |
name: Battery Use | |
state_color: false | |
icon: mdi:battery | |
- type: custom:apexcharts-card | |
update_delay: 3s | |
update_interval: 1min | |
graph_span: 24h | |
span: | |
start: day | |
show: | |
last_updated: true | |
header: | |
show: true | |
title: Usage | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
yaxis: | |
- id: first | |
apex_config: | |
title: | |
text: Power (Watts) | |
min: 0 | |
series: | |
- entity: sensor.shp_circuit_10_power | |
name: Today | |
yaxis_id: first | |
type: column | |
statistics: | |
type: mean | |
period: hour | |
align: start | |
- square: false | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Battery Water Heating | |
secondary: '{{ states(entity) | capitalize() }}' | |
icon: >- | |
{{ iif(is_state(entity,'off'),'mdi:water-boiler-off', | |
'mdi:water-boiler-auto') }} | |
entity: input_boolean.battery_hot_water | |
layout: vertical | |
tap_action: | |
action: toggle | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
icon_color: '{{ iif(is_state(entity,''off''),''grey'', ''red'') }}' | |
badge_icon: mdi:water | |
badge_color: '{{ iif(is_state(entity,''off''),''grey'', ''blue'') }}' | |
columns: 2 | |
- title: Hot Water | |
square: false | |
type: grid | |
cards: | |
- type: custom:apexcharts-card | |
header: | |
show: true | |
title: Hot Water Temperature 🌡️ | |
show_states: true | |
colorize_states: true | |
all_series_config: | |
stroke_width: 0 | |
graph_span: 24h | |
experimental: | |
color_threshold: true | |
yaxis: | |
- id: first | |
apex_config: | |
tickAmount: 5 | |
title: | |
text: Temperature (°C) | |
series: | |
- entity: sensor.boiler_wwcurtemp | |
name: Temperature | |
yaxis_id: first | |
color: '#db4437' | |
type: area | |
color_threshold: | |
- value: 20 | |
color: blue | |
opacity: 1 | |
- value: 35 | |
color: cyan | |
- value: 45 | |
color: orange | |
- value: 55 | |
color: red | |
group_by: | |
func: max | |
duration: 5m | |
columns: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# set the icon to show on the badge for the circuit #} | |
{% macro shp_battery_icon(entity_id) %} | |
{% if is_state(entity_id, '0') %} | |
mdi:transmission-tower | |
{% elif is_state(entity_id, '1') %} | |
mdi:battery-outline | |
{% elif is_state(entity_id, '2') %} | |
mdi:power-off | |
{% else %} | |
mdi:help | |
{% endif %} | |
{% endmacro %} | |
{# set the colour of the badge behind the icon #} | |
{% macro shp_battery_badge(entity_id) %} | |
{% if is_state(entity_id, '0') %} | |
blue | |
{% elif is_state(entity_id, '1') %} | |
green | |
{% elif is_state(entity_id, '2') %} | |
red | |
{% else %} | |
grey | |
{% endif %} | |
{% endmacro %} | |
{# set the colour of the badge behind the icon #} | |
{% macro shp_mode_icon(entity_id, i) %} | |
{% if is_state(entity_id, 'on') %} | |
mdi:numeric-{{i}}-circle | |
{% elif is_state(entity_id, 'off') %} | |
mdi:numeric-{{i}}-box | |
{% else %} | |
mdi:help | |
{% endif %} | |
{% endmacro %} | |
{# set the colour of the badge behind the icon #} | |
{% macro shp_mode_icon_colour(entity_id) %} | |
{% if is_state(entity_id, 'on') %} | |
grey | |
{% elif is_state(entity_id, 'off') %} | |
white | |
{% else %} | |
red | |
{% endif %} | |
{% endmacro %} | |
{# show usage of the circuit from grid and battery. #} | |
{% macro shp_circuit_info(power_id, energy_id, battery_id) %} | |
{{ states(power_id) }} W | |
⚡{{ (states(energy_id) | int / 1000) | round(1) }}kWh / 🔋{{ (states(battery_id) | int / 1000) | round(1) }}kWh | |
{% endmacro %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Circuits | |
square: false | |
columns: 2 | |
type: grid | |
cards: | |
- type: custom:mushroom-template-card | |
primary: Sockets A | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_1_power', | |
'sensor.shp_circuit_1_energy', 'sensor.shp_circuit_1_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_1_auto', '1') }} | |
entity: sensor.shp_circuit_1_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_1_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_1_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_1_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-1 | |
- type: custom:mushroom-template-card | |
primary: Sockets C | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_2_power', | |
'sensor.shp_circuit_2_energy', 'sensor.shp_circuit_2_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_2_auto', '2') }} | |
entity: sensor.shp_circuit_2_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_2_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_2_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_2_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-2 | |
- type: custom:mushroom-template-card | |
primary: Sockets B | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_3_power', | |
'sensor.shp_circuit_3_energy', 'sensor.shp_circuit_3_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_3_auto', '3') }} | |
entity: sensor.shp_circuit_3_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_3_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_3_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_3_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-3 | |
- type: custom:mushroom-template-card | |
primary: Oven & Micro | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_4_power', | |
'sensor.shp_circuit_4_energy', 'sensor.shp_circuit_4_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_4_auto', '4') }} | |
entity: sensor.shp_circuit_4_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_4_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_4_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_4_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-4 | |
- type: custom:mushroom-template-card | |
primary: Ground Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_5_power', | |
'sensor.shp_circuit_5_energy', 'sensor.shp_circuit_5_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_5_auto', '5') }} | |
entity: sensor.shp_circuit_5_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_5_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_5_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_5_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-5 | |
- type: custom:mushroom-template-card | |
primary: First Floor Lights | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_6_power', | |
'sensor.shp_circuit_6_energy', 'sensor.shp_circuit_6_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_6_auto', '6') }} | |
entity: sensor.shp_circuit_6_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_6_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_6_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_6_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-6 | |
- type: custom:mushroom-template-card | |
primary: Under Floor Heating | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_7_power', | |
'sensor.shp_circuit_7_energy', 'sensor.shp_circuit_7_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_7_auto', '7') }} | |
entity: sensor.shp_circuit_7_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_7_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_7_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_7_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-7 | |
- type: custom:mushroom-template-card | |
primary: Garage Panel | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_8_power', | |
'sensor.shp_circuit_8_energy', 'sensor.shp_circuit_8_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_8_auto', '8') }} | |
entity: sensor.shp_circuit_8_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_8_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_8_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_8_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-8 | |
- type: custom:mushroom-template-card | |
primary: Smoke Alarms | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_9_power', | |
'sensor.shp_circuit_9_energy', 'sensor.shp_circuit_9_battery_energy' ) }} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_9_auto', '9') }} | |
entity: sensor.shp_circuit_9_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_9_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_9_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_9_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-9 | |
- type: custom:mushroom-template-card | |
primary: Water Heater | |
secondary: >- | |
{% from 'shp_dashboard.jinja' import shp_circuit_info %} | |
{{ shp_circuit_info('sensor.shp_circuit_10_power', | |
'sensor.shp_circuit_10_energy', 'sensor.shp_circuit_10_battery_energy' ) | |
}} | |
icon: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon %} | |
{{ shp_mode_icon('binary_sensor.shp_circuit_10_auto', '10') }} | |
entity: sensor.shp_circuit_10_power | |
multiline_secondary: true | |
badge_icon: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_icon %} | |
{{ shp_battery_icon('sensor.shp_circuit_10_state') }} | |
fill_container: false | |
layout: vertical | |
icon_color: |- | |
{% from 'shp_dashboard.jinja' import shp_mode_icon_colour %} | |
{{ shp_mode_icon_colour('binary_sensor.shp_circuit_10_auto') }} | |
badge_color: |- | |
{% from 'shp_dashboard.jinja' import shp_battery_badge %} | |
{{ shp_battery_badge('sensor.shp_circuit_10_state') }} | |
tap_action: | |
action: navigate | |
navigation_path: /lovelace-energy/circuit-10 |
I think I also tinkered with the binary sensor for EPS. The control switch will most likely be different from mine too, I'll post mine to see if you can use it to get yours working as well.
Binary Sensor
mqtt:
binary_sensor:
- name: SHP EPS Enabled
object_id: shp_eps_enabled
unique_id: shp_eps_enabled
state_topic: "the MQTT topic containing SHP info messages"
#payload_on: 1
#payload_off: 0
qos: 0
#value_template: "{{ value_json.params.eps if value_json['params']['id'] == 25 else this.state }}"
value_template: >-
{% set id = value_json.params.id %}
{% set eps = value_json.params.eps %}
{% if (id==25) and (eps is defined) %}{{(eps==true)|iif('ON','OFF')}}{%else%}{{this.state}}{%endif%}
Switch
switch:
- platform: template
switches:
shp_eps:
friendly_name: "SHP EPS"
value_template: "{{ states('binary_sensor.shp_eps_enabled') }}"
turn_on:
- service: mqtt.publish
data:
topic: 'the MQTT topic containing your set messages'
payload: '{"from":"HA","id":"{{999900000+(range(10000,99999)|random)}}","moduleType":0,"operateType":"TCP","params":{"cmdSet":11,"id":24,"eps":1},"version":"1.0"}'
turn_off:
- service: mqtt.publish
data:
topic: 'the MQTT topic containing your setmessages'
payload: '{"from":"HA","id":"{{999900000+(range(10000,99999)|random)}}","moduleType":0,"operateType":"TCP","params":{"cmdSet":11,"id":24,"eps":0},"version":"1.0"}'
icon_template: >-
{% if is_state('binary_sensor.shp_eps_enabled','on') %}
mdi:speedometer
{% else %}
mdi:speedometer-slow
{% endif %}
Thanks. I'll play with all this sometime this weekend. I have a Sense energy monitor that I could likely use for the electricity_power sensor.
Thanks again for sharing all this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That will probably be this lot but the
electricity_power
one depends on an actual sensor I have monitoring my home's actual power usage from the grid using a sensor placed in the meter box.