-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3014010
commit 4d50b58
Showing
1 changed file
with
105 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,105 @@ | ||
views: | ||
- title: Home | ||
cards: | ||
- type: custom:mushroom-title-card | ||
title_tap_action: | ||
action: navigate | ||
navigation_path: /energy | ||
- type: vertical-stack | ||
cards: | ||
- type: custom:mushroom-title-card | ||
title: Analyse | ||
title_tap_action: | ||
action: navigate | ||
navigation_path: /energy | ||
- type: conditional | ||
conditions: | ||
- entity: sensor.total_dc_power | ||
state: '0' | ||
card: | ||
square: false | ||
type: grid | ||
cards: | ||
- type: custom:mushroom-template-card | ||
primary: Batterie Morgens | ||
secondary: >- | ||
{%if states.sensor.pv_batterie_morgensrestladung.state|int<0 | ||
%}unavailable{%elif | ||
states.sensor.pv_batterie_morgensrestladung.state|int>20 | ||
%}zu ~{{states.sensor.pv_batterie_morgensrestladung.state}}% | ||
voll {%else%}kleiner 20% !{%endif%} | ||
icon: mdi:battery-charging-100 | ||
icon_color: >- | ||
{%if states.sensor.pv_batterie_morgensrestladung.state|int<0 | ||
%}grey{%elif | ||
states.sensor.pv_batterie_morgensrestladung.state|int>20 | ||
%}green{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
entity: sensor.pv_batterie_morgensrestladung | ||
- type: custom:mushroom-template-card | ||
primary: Produktion | ||
secondary: >- | ||
in {{states.sensor.pv_zeit_zu_start_produktion.state}} | ||
Stunden | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_zeit_zu_ende_produktion | ||
icon_color: orange | ||
tap_action: | ||
action: more-info | ||
columns: 2 | ||
- type: conditional | ||
conditions: | ||
- entity: sensor.total_dc_power | ||
state_not: '0' | ||
card: | ||
square: false | ||
type: grid | ||
cards: | ||
- type: custom:mushroom-template-card | ||
primary: Min Batteriestand | ||
secondary: >- | ||
{%if | ||
states.sensor.pv_minimum_batterie_prozent.state>states.sensor.battery_level.state | ||
and (states.sensor.pv_minimum_batterie_prozent.state|int)>0 | ||
and | ||
(states.sensor.pv_minimum_batterie_prozent.state|int-states.sensor.battery_level.state|int)>0%}{{states.sensor.pv_minimum_batterie_prozent.state|int-states.sensor.battery_level.state|int}}% | ||
fehlen noch {%elif | ||
states.sensor.pv_minimum_batterie_prozent.state|int>0%}{{states.sensor.pv_minimum_batterie_prozent.state|int}}% | ||
ist erreicht{%else%}{%endif%} | ||
icon: mdi:battery-30 | ||
icon_color: > | ||
{%if | ||
states.sensor.pv_minimum_batterie_prozent.state|int(0)>states.sensor.battery_level.state|int%}orange{%else%}green{%endif%} | ||
tap_action: | ||
action: more-info | ||
- type: custom:mushroom-template-card | ||
primary: Produktion | ||
secondary: >- | ||
noch {{states.sensor.pv_zeit_zu_ende_produktion.state}} | ||
Stunden | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_zeit_zu_ende_produktion | ||
icon_color: orange | ||
tap_action: | ||
action: more-info | ||
- type: custom:mushroom-template-card | ||
primary: Batterie Abends | ||
secondary: >- | ||
{%if | ||
states.sensor.pv_batterie_ladestand_abends.state|int(0)>95 | ||
and | ||
states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1%}100% | ||
voll {%elif | ||
states.sensor.pv_batterie_ladezeit.state|int<0.1%} nicht | ||
genug solar{%else%}zu | ||
~{{states.sensor.pv_batterie_ladestand_abends.state}} voll | ||
{%endif%} | ||
icon: mdi:battery-charging-100 | ||
icon_color: >- | ||
{%if | ||
states.sensor.pv_batterie_ladestand_abends.state|int(0)>95 | ||
and states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1 | ||
%}green{%elif | ||
states.sensor.pv_batterie_ladezeit.state|int(0)<0.1%}{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
entity: sensor.pv_batterie_ladestand_abends | ||
- type: custom:mushroom-template-card | ||
primary: Restladezeit | ||
secondary: >- | ||
{%if states.sensor.pv_batterie_ladezeit.state|int(0)<0.1 and | ||
states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1%} ist | ||
voll {%elif | ||
states.sensor.pv_batterie_ladezeit.state|int(0)<0.1%}nicht | ||
genug Solar {%else%}noch | ||
{{states.sensor.pv_batterie_ladezeit.state}}Stunden{%endif%} | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_batterie_ladezeit | ||
icon_color: >- | ||
{%if states.sensor.pv_batterie_ladezeit.state|int(0)==0.0 | ||
%}green{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
type: vertical-stack | ||
cards: | ||
- type: custom:mushroom-title-card | ||
title: Analyse | ||
title_tap_action: | ||
action: navigate | ||
navigation_path: /energy | ||
- type: conditional | ||
conditions: | ||
- entity: sensor.total_dc_power | ||
state: '0' | ||
card: | ||
square: false | ||
type: grid | ||
cards: | ||
- type: custom:mushroom-template-card | ||
primary: Batterie Morgens | ||
secondary: >- | ||
{%if states.sensor.pv_batterie_morgensrestladung.state|int<0 | ||
%}unavailable{%elif | ||
states.sensor.pv_batterie_morgensrestladung.state|int>20 %}zu | ||
~{{states.sensor.pv_batterie_morgensrestladung.state}}% voll | ||
{%else%}kleiner 20% !{%endif%} | ||
icon: mdi:battery-charging-100 | ||
icon_color: >- | ||
{%if states.sensor.pv_batterie_morgensrestladung.state|int<0 | ||
%}grey{%elif | ||
states.sensor.pv_batterie_morgensrestladung.state|int>20 | ||
%}green{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
entity: sensor.pv_batterie_morgensrestladung | ||
- type: custom:mushroom-template-card | ||
primary: Produktion | ||
secondary: in {{states.sensor.pv_zeit_zu_start_produktion.state}} Stunden | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_zeit_zu_ende_produktion | ||
icon_color: orange | ||
tap_action: | ||
action: more-info | ||
columns: 2 | ||
- type: conditional | ||
conditions: | ||
- entity: sensor.total_dc_power | ||
state_not: '0' | ||
card: | ||
square: false | ||
type: grid | ||
cards: | ||
- type: custom:mushroom-template-card | ||
primary: Min Batteriestand | ||
secondary: >- | ||
{%if | ||
states.sensor.pv_minimum_batterie_prozent.state>states.sensor.battery_level.state | ||
and (states.sensor.pv_minimum_batterie_prozent.state|int)>0 and | ||
(states.sensor.pv_minimum_batterie_prozent.state|int-states.sensor.battery_level.state|int)>0%}{{states.sensor.pv_minimum_batterie_prozent.state|int-states.sensor.battery_level.state|int}}% | ||
fehlen noch {%elif | ||
states.sensor.pv_minimum_batterie_prozent.state|int>0%}{{states.sensor.pv_minimum_batterie_prozent.state|int}}% | ||
ist erreicht{%else%}{%endif%} | ||
icon: mdi:battery-30 | ||
icon_color: > | ||
{%if | ||
states.sensor.pv_minimum_batterie_prozent.state|int(0)>states.sensor.battery_level.state|int%}orange{%else%}green{%endif%} | ||
tap_action: | ||
action: more-info | ||
- type: custom:mushroom-template-card | ||
primary: Produktion | ||
secondary: noch {{states.sensor.pv_zeit_zu_ende_produktion.state}} Stunden | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_zeit_zu_ende_produktion | ||
icon_color: orange | ||
tap_action: | ||
action: more-info | ||
- type: custom:mushroom-template-card | ||
primary: Batterie Abends | ||
secondary: >- | ||
{%if states.sensor.pv_batterie_ladestand_abends.state|int(0)>95 and | ||
states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1%}100% voll | ||
{%elif states.sensor.pv_batterie_ladezeit.state|int<0.1%} nicht | ||
genug solar{%else%}zu | ||
~{{states.sensor.pv_batterie_ladestand_abends.state}} voll {%endif%} | ||
icon: mdi:battery-charging-100 | ||
icon_color: >- | ||
{%if states.sensor.pv_batterie_ladestand_abends.state|int(0)>95 and | ||
states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1 %}green{%elif | ||
states.sensor.pv_batterie_ladezeit.state|int(0)<0.1%}{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
entity: sensor.pv_batterie_ladestand_abends | ||
- type: custom:mushroom-template-card | ||
primary: Restladezeit | ||
secondary: >- | ||
{%if states.sensor.pv_batterie_ladezeit.state|int(0)<0.1 and | ||
states.sensor.pv_batterie_ladezeit.state|int(0)>-0.1%} ist voll | ||
{%elif states.sensor.pv_batterie_ladezeit.state|int(0)<0.1%}nicht | ||
genug Solar {%else%}noch | ||
{{states.sensor.pv_batterie_ladezeit.state}} Stunden{%endif%} | ||
icon: mdi:camera-timer | ||
entity: sensor.pv_batterie_ladezeit | ||
icon_color: >- | ||
{%if states.sensor.pv_batterie_ladezeit.state|int(0)==0.0 | ||
%}green{%else%}orange{%endif%} | ||
tap_action: | ||
action: more-info | ||
columns: 2 |