Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- views:
- - title: Energy
- path: energy
- icon: mdi:lightning-bolt
- subview: false
- cards:
- - square: false
- type: grid
- cards:
- - type: custom:mushroom-template-card
- primary: '{{ states(entity) }} W'
- secondary: Power
- icon: mdi:lightning-bolt
- layout: vertical
- entity: sensor.energy_meter_power_1
- icon_color: 255, 87, 34
- double_tap_action:
- action: none
- hold_action:
- action: none
- tap_action:
- action: none
- - type: custom:mushroom-template-card
- primary: '{{ states(entity) }} A'
- secondary: Current
- icon: mdi:current-ac
- layout: vertical
- entity: sensor.energy_meter_current_1
- icon_color: 255, 87, 34
- double_tap_action:
- action: none
- hold_action:
- action: none
- tap_action:
- action: none
- - type: custom:mushroom-template-card
- primary: '{{ states(entity) }} V'
- secondary: Voltage
- icon: mdi:alpha-v-box-outline
- layout: vertical
- entity: sensor.energy_meter_voltage
- icon_color: 255, 87, 34
- double_tap_action:
- action: none
- hold_action:
- action: none
- tap_action:
- action: none
- columns: 3
- - square: false
- type: grid
- cards:
- - type: custom:mushroom-template-card
- primary: '{{ states(entity) }} Hz'
- secondary: Frequency
- icon: mdi:sine-wave
- layout: horizontal
- entity: sensor.energy_meter_frequency
- icon_color: 255, 87, 34
- double_tap_action:
- action: none
- hold_action:
- action: none
- tap_action:
- action: none
- - type: custom:mushroom-template-card
- primary: '{{ states(entity) }}'
- secondary: Power factor
- icon: mdi:alpha-p-box-outline
- layout: horizontal
- entity: sensor.energy_meter_power_factor_1
- icon_color: 255, 87, 34
- double_tap_action:
- action: none
- hold_action:
- action: none
- tap_action:
- action: none
- columns: 2
- - type: custom:vertical-stack-in-card
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_week
- primary: Week
- secondary: '{{ states(entity) }} kWh'
- icon: mdi:lightning-bolt
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_24h
- primary: Today
- secondary: '{{ states(entity) }} kWh'
- icon: mdi:lightning-bolt
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:apexcharts-card
- apex_config:
- chart:
- height: 250px
- graph_span: 7d
- yaxis:
- - id: first
- decimals: 1
- min: 0
- apex_config:
- tickAmount: 4
- series:
- - entity: sensor.energy_consumption_24h
- fill_raw: last
- group_by:
- func: diff
- duration: 1d
- show:
- datalabels: false
- statistics:
- period: hour
- type: sum
- align: start
- type: column
- span:
- start: day
- offset: '-6d'
- card_mod:
- style: |
- ha-card {
- border-radius: 12px;
- box-shadow: none;
- - type: custom:vertical-stack-in-card
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_max_24h
- primary: Peak 24H
- secondary: '{{ states(entity) }} W'
- icon: mdi:trending-up
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_min_24h
- primary: Min 24H
- secondary: '{{ states(entity) }} W'
- icon: mdi:trending-down
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:apexcharts-card
- apex_config:
- chart:
- height: 250px
- graph_span: 1d
- yaxis:
- - id: first
- decimals: 2
- min: 0
- apex_config:
- tickAmount: 4
- series:
- - entity: sensor.energy_meter_energy_1
- fill_raw: last
- statistics:
- period: hour
- type: change
- align: start
- type: column
- span:
- offset: '-1h'
- card_mod:
- style: |
- ha-card {
- border-radius: 12px;
- box-shadow: none;
- - type: custom:vertical-stack-in-card
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_month
- primary: Month
- secondary: '{{ states(entity) }} kWh'
- icon: mdi:lightning-bolt
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:mushroom-template-card
- entity: sensor.energy_consumption_year
- primary: Year
- secondary: '{{ states(entity) }} kWh'
- icon: mdi:lightning-bolt
- icon_color: 255, 141, 38
- tap_action:
- action: none
- hold_action:
- action: none
- double_tap_action:
- action: none
- card_mod:
- style: |
- ha-card {
- margin-bottom: -10px;
- }
- - type: custom:apexcharts-card
- apex_config:
- chart:
- height: 250px
- graph_span: 365d
- yaxis:
- - id: first
- decimals: 1
- min: 0
- apex_config:
- tickAmount: 4
- series:
- - entity: sensor.energy_consumption_24h
- fill_raw: last
- group_by:
- func: diff
- duration: 1d
- show:
- datalabels: false
- statistics:
- period: hour
- type: sum
- align: start
- type: line
- span:
- start: day
- offset: '-364d'
- card_mod:
- style: |
- ha-card {
- border-radius: 12px;
- box-shadow: none;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement