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

748 lines
23 KiB
YAML
Raw Permalink Normal View History

2022-07-19 18:53:10 +10:00
config:
views:
- badges: []
cards:
- cards:
- entities:
battery: sensor.inverter_battery_power
battery_charge: sensor.inverter_battery_level
2022-08-24 13:50:56 +10:00
grid: sensor.inverter_grid_power_demand
2022-07-19 18:53:10 +10:00
solar: sensor.inverter_pv_power
kw_decimals: 2
type: custom:power-flow-card
w_decimals: 0
watt_threshold: 900
2022-08-24 13:50:56 +10:00
- link_dashboard: true
type: energy-distribution
2022-08-26 13:25:05 +10:00
- entities: []
2022-07-19 18:53:10 +10:00
type: entities
type: custom:stack-in-card
- entities:
2022-08-24 13:50:56 +10:00
- label: Today
type: section
2022-08-25 13:25:06 +10:00
- entities:
- entity: sensor.solcast_forecast_remaining_today
name: remaining
entity: sensor.solcast_forecast_today
name: All day
state_header: total
2022-08-24 13:50:56 +10:00
type: custom:multiple-entity-row
2022-08-25 13:25:06 +10:00
- entities:
- entity: sensor.solcast_forecast_this_hour
format: kilo
name: current
type: custom:multiple-entity-row
unit: kWh
entity: sensor.solcast_forecast_next_hour
2022-08-24 13:50:56 +10:00
format: kilo
2022-08-25 13:25:06 +10:00
name: Hourly
state_header: next
2022-08-24 13:50:56 +10:00
type: custom:multiple-entity-row
unit: kWh
- label: Tomorrow
type: section
- entity: sensor.solcast_forecast_tomorrow
name: Total
- label: Peak hour
type: section
2022-07-19 18:53:10 +10:00
- entities:
2022-08-24 13:50:56 +10:00
- 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
2022-07-19 18:53:10 +10:00
- entities:
2022-08-24 13:50:56 +10:00
- 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
2022-08-26 15:25:05 +10:00
- entities:
- entities:
- entity: sensor.daily_energy_export
format: precision1
name: export
- entity: sensor.daily_energy_import_peak
format: precision1
name: peak
entity: sensor.daily_energy_import_offpeak
format: precision1
name: Today
state_header: offpeak
type: custom:multiple-entity-row
- entities:
- entity: sensor.monthly_energy_export
format: precision1
name: export
- entity: sensor.monthly_energy_import_peak
format: precision1
name: peak
entity: sensor.monthly_energy_import_offpeak
format: precision1
2023-04-25 07:36:58 +10:00
name: Month
2022-08-26 15:25:05 +10:00
state_header: offpeak
type: custom:multiple-entity-row
- entities:
- entity: sensor.eagle_200_total_meter_energy_received
format: precision1
name: exported
entity: sensor.eagle_200_total_meter_energy_delivered
format: precision1
name: Eagle-200 (all time)
state_header: imported
type: custom:multiple-entity-row
title: Trading
type: entities
2022-08-24 13:50:56 +10:00
- cards:
- entities:
- entity: sensor.inverter_battery_level
name: Charge
- entity: sensor.inverter_battery_power
name: Power
2022-07-19 18:53:10 +10:00
type: history-graph
2022-08-24 13:50:56 +10:00
- entities:
- entity: sensor.inverter_battery_power
name: Power
- entity: sensor.inverter_battery_level
name: Level
- entity: sensor.inverter_battery_health
name: Health
2022-08-25 13:25:06 +10:00
- label: Energy
type: section
- entities:
- entity: sensor.inverter_battery_charge_today
name: charged
entity: sensor.inverter_battery_discharge_today
name: Today
state_header: disharged
type: custom:multiple-entity-row
- entities:
- entity: sensor.inverter_battery_charge_total
name: charged
entity: sensor.inverter_battery_discharge_total
name: All time
state_header: disharged
type: custom:multiple-entity-row
2022-08-24 13:50:56 +10:00
type: entities
title: Battery
2022-07-19 18:53:10 +10:00
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
2022-08-27 06:25:05 +10:00
- entity_id: /inverter/
- entity_id: /demand/
2022-07-19 18:53:10 +10:00
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/
2022-08-27 06:25:05 +10:00
- entity_id: /mppt/
2022-07-19 18:53:10 +10:00
include:
- entity_id: /voltage/
type: custom:auto-entities
- entities:
- sensor.co2_intensity
type: history-graph
2022-08-27 06:25:05 +10:00
- card:
type: entities
filter:
exclude:
- name: /UPS/
- name: /Eagle-200/
- name: /Estimated Power Production/
- state: unavailable
- entity_id: /inverter/
- entity_id: /demand/
include:
- attributes:
device_class: power
- attributes:
unit_of_measurement: kW
- attributes:
unit_of_measurement: W
sort:
method: state
reverse: true
type: custom:auto-entities
unique: true
2022-07-19 18:53:10 +10:00
icon: hass:lightning-bolt
path: power
title: Electricity
2022-08-24 13:50:56 +10:00
- badges: []
cards:
- entities:
2022-08-24 16:25:05 +10:00
- label: Charge schedule 1
2022-08-24 13:50:56 +10:00
type: section
2022-08-24 16:25:05 +10:00
- entity: input_boolean.inverter_charging_schedule_enabled
name: Enable
2022-08-24 17:25:05 +10:00
- conditions:
2022-08-25 13:25:06 +10:00
- entity: input_boolean.inverter_charging_schedule_enabled
2022-08-24 17:25:05 +10:00
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
2022-08-24 16:25:05 +10:00
- 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
2022-08-24 17:25:05 +10:00
- 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
2022-08-24 16:25:05 +10:00
- 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
2022-08-24 13:50:56 +10:00
- 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:
2023-04-25 07:36:58 +10:00
- entity: sensor.inverter_battery_mode
name: Current
2022-08-24 13:50:56 +10:00
- 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
2022-08-31 13:25:05 +10:00
- entity: input_number.inverter_forced_mode_battery_power
name: Set forced power
- entity: sensor.inverter_battery_forced_charge_discharge_power
name: Current forced power
2022-08-24 13:50:56 +10:00
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
2022-08-26 11:25:07 +10:00
- entity: automation.inverter_maximise_output
icon: mdi:arrow-up-box
name: Maximise output
secondary_info: last-triggered
toggle: true
type: custom:multiple-entity-row
2023-04-25 07:36:58 +10:00
- entity: automation.inverter_maximise_output_new
icon: mdi:arrow-up-bold-box-outline
name: Maximise output (WIP)
secondary_info: last-triggered
2022-08-24 13:50:56 +10:00
- 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:
2022-08-26 12:25:05 +10:00
exclude:
- entity_id: /maximise_output/
2022-08-24 13:50:56 +10:00
include:
- domain: automation
name: /[Ii]nverter/
- domain: script
name: /[Ii]nverter/
type: custom:auto-entities
2023-04-25 07:36:58 +10:00
- card:
type: entities
filter:
include:
- entity_id: input_number.inverter_active_power_buffer
options:
name: Buffer
- attributes:
solar: 'true'
type: custom:auto-entities
2022-08-26 13:25:05 +10:00
- 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
- entities:
2023-04-25 07:36:58 +10:00
- entity: sensor.inverter_active_power
name: Active Power
- entity: sensor.inverter_battery_power
name: Battery Power
2022-08-26 13:25:05 +10:00
type: entities
type: custom:stack-in-card
2023-04-25 07:36:58 +10:00
- entities:
- entity: sensor.inverter_target_battery_level
- entity: sensor.inverter_battery_level
hours_to_show: 6
type: history-graph
2022-08-24 13:50:56 +10:00
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
2022-08-26 13:25:05 +10:00
name: Load power
2022-08-24 13:50:56 +10:00
secondary_info: last-updated
- entity: sensor.inverter_battery_power
name: Battery power
secondary_info: last-updated
2022-08-26 13:25:05 +10:00
- entities:
2023-05-23 13:25:33 +10:00
- entity: sensor.eagle_200_meter_power_demand
format: precision0
2022-08-26 13:25:05 +10:00
name: meter
entity: sensor.inverter_grid_power_demand
name: Grid demand
state_header: inverter
type: custom:multiple-entity-row
2022-08-24 13:50:56 +10:00
type: entities
- entities:
- entity: sensor.inverter_grid_power_demand
name: Grid demand (inverter)
secondary_info: last-updated
2023-05-23 13:25:33 +10:00
- entity: sensor.eagle_200_meter_power_demand
2022-08-24 13:50:56 +10:00
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:
2022-08-26 13:25:05 +10:00
- entities:
- entity: sensor.inverter_battery_current
name: current
- entity: sensor.inverter_battery_voltage
name: voltage
entity: sensor.inverter_battery_power
format: kilo
name: Power
state_header: wattage
type: custom:multiple-entity-row
unit: kW
- entity: sensor.inverter_battery_level
name: Level
- entity: sensor.inverter_battery_temperature
name: Temperature
- entity: sensor.inverter_battery_health
name: Health
- entities:
- entity: sensor.inverter_battery_charge_today
name: charged
entity: sensor.inverter_battery_discharge_today
name: Total today
state_header: discharged
type: custom:multiple-entity-row
2022-08-24 13:50:56 +10:00
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
2022-08-26 13:25:05 +10:00
- cards:
- entities:
- entity: sensor.inverter_pv_power
name: PV Power
- entities:
- entity: sensor.inverter_mppt1_voltage
name: Voltage
entity: sensor.inverter_mppt1_current
name: MPPT1
state_header: Current
type: custom:multiple-entity-row
- entities:
- entity: sensor.inverter_mppt2_voltage
name: Voltage
entity: sensor.inverter_mppt2_current
name: MPPT1
state_header: Current
type: custom:multiple-entity-row
type: entities
2023-04-25 07:36:58 +10:00
- entities:
- entity: sensor.inverter_pv_power
name: PV Power
- entity: sensor.inverter_mppt1_current
name: MPPT1 Current
- entity: sensor.inverter_mppt2_current
name: MPPT2 Current
- entity: sensor.inverter_mppt1_voltage
name: MPPT1 Voltage
- entity: sensor.inverter_mppt2_voltage
name: MPPT2 Voltage
hours_to_show: 2
type: history-graph
2022-08-26 13:25:05 +10:00
title: Panels
type: custom:stack-in-card
- entities:
- entity: sensor.inverter_state
name: State
- entity: binary_sensor.inverter_inverter_load_active
name: Load active
- entity: binary_sensor.inverter_inverter_generating_pv
name: Generating PV
- entity: binary_sensor.inverter_inverter_battery_charging
name: Charging
- entity: binary_sensor.inverter_inverter_battery_discharging
name: Discharging
- entity: binary_sensor.inverter_inverter_charging_from_grid
name: Grid -> battery
- entity: binary_sensor.inverter_inverter_importing_from_grid
name: Importing
- entity: binary_sensor.inverter_inverter_feeding_into_grid
name: Exporting
hours_to_show: 3
type: history-graph
2022-08-24 13:50:56 +10:00
icon: mdi:bug-outline
path: debug
theme: Backend-selected
title: Debug