-
Notifications
You must be signed in to change notification settings - Fork 37
Sample sensors for better solar monitoring
William Eccles edited this page Feb 7, 2022
·
1 revision
Sample config which pulls together the solar negatives fix, and a few extra bits that make FoxESS work way better for Home Assistant including real-time & daily solar tracking.
Simply paste the following below your FoxESS configuration within the main Home Assistant config file
# Setup Better Solar Tracking Sensors that resolve negative solar tracking
- platform: integration
source: sensor.foxess_pv1_power
name: pv1_sum
unit_time: h
round: 2
- platform: integration
source: sensor.foxess_pv2_power
name: pv2_sum
unit_time: h
round: 2
# Setup Daily and real-time solar trackers that resolve the negative solar tracking
utility_meter:
daily_pv1_sum:
source: sensor.pv1_sum
cycle: daily
daily_pv2_sum:
source: sensor.pv2_sum
cycle: daily
# Setup Daily and real-time solar trackers that resolve the negative solar tracking
template:
- sensor:
- name: "Solar Power Daily"
unit_of_measurement: "kWh"
state: "{{ states('sensor.daily_pv1_sum') | float + states('sensor.daily_pv2_sum') | float }}"
- name: "Solar Power Now"
unit_of_measurement: "kW"
state: "{{ states('sensor.foxess_pv1_power') | float + states('sensor.foxess_pv2_power') | float }}"