1
0
Fork 0
ha-config/lovelace/lovelace.lovelace_solar.yaml

567 lines
17 KiB
YAML

config:
views:
- badges: []
cards:
- cards:
- entities:
battery: sensor.inverter_battery_power
battery_charge: sensor.inverter_battery_level
grid: sensor.inverter_grid_power_demand
solar: sensor.inverter_pv_power
kw_decimals: 2
type: custom:power-flow-card
w_decimals: 0
watt_threshold: 900
- link_dashboard: true
type: energy-distribution
- entities:
- entity: sensor.inverter_active_power
name: Active (AC) power
secondary_info: last-updated
type: entities
- entities:
- entity: sensor.inverter_active_power
name: Active power
secondary_info: last-updated
hours_to_show: 6
type: history-graph
type: custom:stack-in-card
- entities:
- label: Today
type: section
- entity: sensor.solcast_forecast_today
name: Total
secondary_info: last-updated
- entity: sensor.solcast_forecast_remaining_today
name: Remaining
secondary_info: last-updated
- entity: sensor.solcast_forecast_this_hour
format: kilo
name: Current hour
secondary_info: last-updated
type: custom:multiple-entity-row
unit: kWh
- entity: sensor.solcast_forecast_next_hour
format: kilo
name: Next hour
secondary_info: last-updated
type: custom:multiple-entity-row
unit: kWh
- label: Tomorrow
type: section
- entity: sensor.solcast_forecast_tomorrow
name: Total
secondary_info: last-updated
- label: Peak hour
type: section
- entities:
- entity: sensor.solcast_peak_time_today
format: time
name: ' '
entity: sensor.solcast_peak_forecast_today
format: kilo
name: Today
type: custom:multiple-entity-row
unit: kWh
- entities:
- entity: sensor.solcast_peak_time_tomorrow
format: time
name: ' '
entity: sensor.solcast_peak_forecast_tomorrow
format: kilo
name: Tomorrow
type: custom:multiple-entity-row
unit: kWh
title: Forecast
type: entities
- cards:
- entities:
- entity: sensor.inverter_battery_level
name: Charge
- entity: sensor.inverter_battery_power
name: Power
type: history-graph
- entities:
- entity: sensor.inverter_battery_power
name: Power
- entity: sensor.inverter_battery_level
name: Level
- entity: sensor.inverter_battery_health
name: Health
- entity: sensor.inverter_battery_charge_today
name: Total daily charge
- entity: sensor.inverter_battery_discharge_today
name: Total daily discharge
type: entities
title: Battery
type: custom:stack-in-card
icon: mdi:solar-power-variant
theme: Backend-selected
title: Solar
- badges:
- entity: sensor.electricity_general_price
- entity: sensor.eagle_200_meter_power_demand
cards:
- link_dashboard: true
type: energy-distribution
- apex_config:
chart:
height: 250
type: area
dataLabels:
enabled: false
fill:
gradient:
inverseColors: false
opacityFrom: 0.45
opacityTo: 0.05
shadeIntensity: 1
stops:
- 20
- 100
- 100
- 100
type: gradient
legend:
show: false
stroke:
curve: smooth
show: true
width: 2
xaxis:
labels:
datetimeFormatter:
day: ddd
month: ddd
type: datetime
graph_span: 35h
header:
colorize_states: true
show: true
show_states: true
title: Amber Price 24hrs
now:
color: red
label: Now
show: true
series:
- color: black
curve: smooth
entity: sensor.electricity_general_price
extend_to: now
name: Price
type: area
yaxis_id: price
- color: lightgrey
data_generator: "return entity.attributes.forecasts.map((entry) => {\n return\
\ [new Date(entry.start_time), entry.per_kwh];\n});\n"
entity: sensor.electricity_general_forecast
name: Predicted Price
show:
in_chart: true
in_header: false
type: area
yaxis_id: price
- color: green
curve: smooth
entity: sensor.electricity_renewables
extend_to: now
name: Renewables in Grid
show:
in_chart: true
in_header: true
type: area
unit: '%'
yaxis_id: renewables_perc
- color: lightgreen
curve: smooth
data_generator: "return entity.attributes.forecasts.map((entry) => {\n return\
\ [new Date(entry.start_time), entry.renewables];\n});\n"
entity: sensor.electricity_general_forecast
name: Renewables in Grid
show:
in_chart: true
in_header: false
type: area
unit: '%'
yaxis_id: renewables_perc
- color: grey
entity: sensor.electricity_general_forecast
name: Predicted Price
show:
in_chart: false
in_header: true
type: area
yaxis_id: price
span:
offset: -24h
start: minute
type: custom:apexcharts-card
yaxis:
- id: price
max: ~1
min: ~-1
- id: renewables_perc
max: ~100
min: ~0
opposite: true
- entities:
- entity: sensor.eagle_200_meter_power_demand
name: Meter Power Demand
secondary_info: last-changed
- entity: sensor.electricity_renewables
secondary_info: last-changed
- entity: binary_sensor.electricity_price_spike
secondary_info: last-changed
- entity: sensor.electricity_general_price
secondary_info: last-changed
- entity: sensor.electricity_general_forecast
type: entities
- cards:
- entity: sensor.eagle_200_meter_power_demand
max: 5
min: 0
name: Current Usage
needle: true
severity:
green: 0
red: 3
yellow: 1.5
type: gauge
- entity: sensor.electricity_general_price
max: 2
min: 0
name: Current Price
needle: true
severity:
green: -1
red: 0.65
yellow: 0.25
type: gauge
unit: $
type: horizontal-stack
- entity: sensor.current_electricity_cost
max: 5
min: 0
name: Current Cost
needle: true
severity:
green: -1000
red: 1.5
yellow: 0.75
type: gauge
- entities:
- entity: sensor.eagle_200_meter_power_demand
- entity: sensor.electricity_general_price
- entity: sensor.current_electricity_cost
- entity: sensor.eagle_200_net_meter_energy_delivered_minus_received
hours_to_show: 24
refresh_interval: 5
type: history-graph
- card:
type: history-graph
filter:
exclude:
- name: /UPS/
- name: /Eagle-200/
- name: /Estimated Power Production/
- state: unavailable
include:
- attributes:
device_class: power
- attributes:
unit_of_measurement: kW
- attributes:
unit_of_measurement: W
- attributes:
unit_of_measurement: A
- attributes:
device_class: current
type: custom:auto-entities
unique: true
- card:
show_header_toggle: false
type: entities
filter:
exclude:
- name: /Restart/
- state: unavailable
include:
- device: /power|plug/
domain: switch
options:
secondary_info: last-changed
show_empty: false
sort:
method: friendly_name
type: custom:auto-entities
unique: true
- type: energy-devices-graph
- type: energy-usage-graph
- card:
hours_to_show: 3
title: Voltage
type: history-graph
filter:
exclude:
- entity_id: /nas_ups/
- entity_id: /battery/
- entity_id: /dht/
- entity_id: /ble_voltage/
include:
- entity_id: /voltage/
type: custom:auto-entities
- entities:
- sensor.co2_intensity
type: history-graph
icon: hass:lightning-bolt
path: power
title: Electricity
- badges: []
cards:
- entities:
- label: Charge schedule 1
type: section
- entity: input_boolean.inverter_charging_schedule_enabled
name: Enable
- conditions:
- entity: input_boolean.inverter_charging_schedule_2_enabled
state: 'on'
row:
name: Active
state: "{{ is_state('input_boolean.inverter_charging_schedule_enabled',\
\ 'on') and\n states('input_number.inverter_charging_schedule_target_soc')\
\ | float(default = 0) > states('sensor.inverter_battery_level') | float(default\
\ = 0) and\n not is_state('input_datetime.inverter_charging_schedule_start',\
\ 'unknown') and\n not is_state('input_datetime.inverter_charging_schedule_end',\
\ 'unknown')\n}}\n"
type: custom:template-entity-row
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_enabled
state: 'on'
row:
entity: input_datetime.inverter_charging_schedule_start
icon: mdi:calendar-start
name: Start charging at
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_enabled
state: 'on'
row:
entity: input_datetime.inverter_charging_schedule_end
icon: mdi:calendar-end
name: Finish charging at
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_enabled
state: 'on'
row:
entity: input_number.inverter_charging_schedule_target_soc
icon: mdi:battery-arrow-up
name: Charge until
type: conditional
- label: Charge schedule 2
type: section
- entity: input_boolean.inverter_charging_schedule_2_enabled
name: Enable
- conditions:
- entity: input_boolean.inverter_charging_schedule_2_enabled
state: 'on'
row:
name: Active
state: "{{ is_state('input_boolean.inverter_charging_schedule_2_enabled',\
\ 'on') and\n states('input_number.inverter_charging_schedule_2_target_soc')\
\ | float(default = 0) > states('sensor.inverter_battery_level') | float(default\
\ = 0) and\n not is_state('input_datetime.inverter_charging_schedule_2_start',\
\ 'unknown') and\n not is_state('input_datetime.inverter_charging_schedule_2_end',\
\ 'unknown')\n}}\n"
type: custom:template-entity-row
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_2_enabled
state: 'on'
row:
entity: input_datetime.inverter_charging_schedule_2_start
icon: mdi:calendar-start
name: Start charging at
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_2_enabled
state: 'on'
row:
entity: input_datetime.inverter_charging_schedule_2_end
icon: mdi:calendar-end
name: Finish charging at
type: conditional
- conditions:
- entity: input_boolean.inverter_charging_schedule_2_enabled
state: 'on'
row:
entity: input_number.inverter_charging_schedule_2_target_soc
icon: mdi:battery-arrow-up
name: Charge until
type: conditional
- label: Misc
type: section
- entity: input_number.inverter_battery_reserve
icon: mdi:battery-lock
name: Reserve battery
secondary_info: last-changed
title: Settings
type: entities
- entities:
- action_name: Set
entity: script.inverter_self_consumption
icon: mdi:recycle-variant
name: Self-consumption
- action_name: Set
entity: script.inverter_force_battery_charge
icon: mdi:import
name: Force charge
- action_name: Set
entity: script.inverter_force_battery_discharge
icon: mdi:export
name: Force discharge
- action_name: Set
entity: script.inverter_force_battery_stop
icon: mdi:stop
name: Stop
title: Battery mode
type: entities
- entities:
- entity: automation.inverter_apply_charging_schedule
icon: mdi:calendar-import
name: Apply charging schedule
secondary_info: last-triggered
toggle: true
type: custom:multiple-entity-row
- entity: automation.inverter_update_battery_reserve
icon: mdi:battery-sync-outline
name: Apply battery reserve
secondary_info: last-triggered
toggle: true
type: custom:multiple-entity-row
- entity: automation.update_pvoutput
icon: mdi:solar-power-variant-outline
name: Send to PVOutput
secondary_info: last-triggered
title: Automations
type: entities
- card:
hours_to_show: 1
type: logbook
filter:
exclude: []
include:
- domain: automation
name: /[Ii]nverter/
- domain: script
name: /[Ii]nverter/
type: custom:auto-entities
icon: mdi:wrench
path: configure
theme: Backend-selected
title: Configure
- badges: []
cards:
- cards:
- entities:
- entity: sensor.inverter_active_power
name: Active (AC) power
secondary_info: last-updated
- entity: sensor.inverter_pv_power
name: PV Power
secondary_info: last-updated
- entity: sensor.inverter_load_power
name: Load power (inverter claimed)
secondary_info: last-updated
- entity: sensor.household_power_demand
name: Actual load
secondary_info: last-updated
- entity: sensor.inverter_battery_power
name: Battery power
secondary_info: last-updated
- entity: sensor.inverter_grid_power_demand
name: Grid demand (inverter)
secondary_info: last-updated
- entity: sensor.eagle_200_meter_power_demand_w
name: Grid demand (meter)
secondary_info: last-updated
type: entities
- entities:
- entity: sensor.inverter_grid_power_demand
name: Grid demand (inverter)
secondary_info: last-updated
- entity: sensor.eagle_200_meter_power_demand_w
name: Grid demand (meter)
secondary_info: last-updated
hours_to_show: 6
type: history-graph
title: Power
type: custom:stack-in-card
- cards:
- entities:
- entity: sensor.inverter_battery_level
name: Charge
- entity: sensor.inverter_battery_power
name: Power
type: history-graph
- entities:
- sensor.inverter_battery_power
- sensor.inverter_battery_level
- sensor.inverter_battery_current
- sensor.inverter_battery_voltage
- sensor.inverter_battery_temperature
- sensor.inverter_battery_health
- sensor.inverter_battery_charge_today
- sensor.inverter_battery_discharge_today
type: entities
title: Battery
type: custom:stack-in-card
- entities:
- entity: sensor.inverter_output_energy_today
name: Output energy (5003)
- entity: sensor.inverter_pv_generation_today
name: PV generation (13002)
- entity: sensor.inverter_battery_charge_today
name: Battery charge (13040)
- entity: sensor.inverter_battery_charge_from_pv_today
name: Battery charge from PV (13012)
- entity: sensor.inverter_battery_discharge_today
name: Battery discharge (13026)
- entity: sensor.inverter_imported_energy_today
name: Imported (13036)
- entity: sensor.inverter_exported_energy_today
name: Exported (13045)
- entity: sensor.inverter_exported_energy_from_pv_today
name: Exported from PV (13005)
- entity: sensor.inverter_direct_energy_consumption_today
name: Direct consumption (13017)
title: Energy
type: entities
- cards:
- entities:
- entity: sensor.inverter_grid_frequency
name: Frequency (5036)
secondary_info: last-updated
- entity: sensor.inverter_phase_a_voltage
name: Voltage (5019)
secondary_info: last-updated
- entity: sensor.inverter_phase_a_current
name: Current (13031)
secondary_info: last-updated
type: entities
- entities:
- entity: sensor.inverter_export_power
name: Export power (Inverter - 13010)
- entity: sensor.eagle_200_meter_power_demand_w
name: Import power (Eagle-200)
type: history-graph
title: Grid
type: custom:stack-in-card
icon: mdi:bug-outline
path: debug
theme: Backend-selected
title: Debug