what is the actual state? Maybe -0? Then I’d just wait some time to get it populated.
You can set a unique_id in your template sensors and integration (riemann sum) sensors to be able to rename it from UI without having to worry about changing entity_id or loosing history data etc.
Even easier, use helpers to define your integration (riemann sum) sensors instead of yaml.
thanks. I’ll put helpers on my learning list
Also you were right that the failure disappeared after a certain time.
The figure for total usage seem to be more or less correct. But the total photovoltaics production is off by about 1kWh. Is this because it is being calculated or is there something wrong?
I would think that when you have three inverter, you would need to add all three inverter sensors to the code. That is only my guess, so please bear with me if that not works.
That’s right, as long as they are not connected in a common SolarNet instance (directly via cable) - then the powerflow endpoint would sum all connected devices.
@NeoGolaz comparing the values of your 2 screenshots doesn’t make sense. One is power, the other daily energy.
The first i will try to fix the informations and than add the other two inverter.
I create the power photovoltaic sensor and see him in the dev tools but in ther dashboard from the energy i only see the fronius.
template:
- sensor:
- name: "Battery Power Charging"
unit_of_measurement: W
device_class: power
state: "{{ max(0, 0 - states('sensor.solarnet_power_battery') | float(default=0)) }}"
- name: "Battery Power Discharging"
unit_of_measurement: W
device_class: power
state: "{{ max(0, states('sensor.solarnet_power_battery') | float(default=0)) }}"
- name: "Power Photovoltaics"
unit_of_measurement: W
device_class: energy
state: "{{ states('sensor.solarnet_power_photovoltaics') | float(default=0) }}"
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'date_time_utc'
- 'date_time_iso'
- 'time_date'
- 'time_utc'
- 'beat'
- platform: integration
source: sensor.battery_power_charging
name: "Total Battery Energy Charged"
method: left
- platform: integration
source: sensor.battery_power_discharging
name: "Total Battery Energy Discharged"
method: left
- platform: integration
source: sensor.power_photovoltaics
name: "Total Photovoltaics Energy"
method: left
Apart form being named “Power…”, it uses a power unit (W) instead of an energy one (Wh) and misses a valid state_class (total_increasing, not sure if total is valid too).
It’s also representing a power value, in contrast to “Total Photovoltaics Energy” which is the according calculated energy value.
Meanwhile Energy is the time integral of Power and measured in Watt-hour or Kilowatt-hour. (Kilowatt-hour - Wikipedia).
I have no idea how are your inverters are wired, are they DC or AC connected, so the best approach is for you, create the Power Photovoltaics for each of your inverters, create the Battery Charge Power and Battery Discharge Power for your inverters which has the battery connected. And then create the integration/integral (Helper!) for all of those Power sensors. Once all the of the integrals are calculated, add the Photovoltaic Energy ones from each inverter to the Energy Dashboard under the Photovoltaic Source part and add the Battery ones under the Battery Section. You should have all set then.
But, by the way, what is the point to have two Symo and one Primo inverter on the same circuit? I would understand if you have all Symo, but I don’t get the point of the Primo, if you don’t mind to answer it.
I don’t know where are you from, but in the middle of the night those entities are not going to show up until there is PV production and battery charging, etc…
We have no idea how you set up your gas meter in the configuration.yaml, but I believe you are in lack of understanding how you should manually configure things in the configuration.yaml, and that causes your issues all over.