Any time I make sensors like this (that just round other sensors), the history graphs for those sensors always have weird spikes/troughs that do not appear in the original sensors.
Annoying but you could use the orig sensor for stats and the new rounding sensor for displayā¦ I hate the duplication of data but you could restrict the exporting of stats (if you do it) using the recorder to only the original sensors.
Iāve only had my system installed for 2 days but I notice the import/export from grid value is almost never 0. Yesterday we exported 1 kWh of the 13 kWh we generated, even though the battery was never full. It was all in trickles throughout the day. Same with import, which was 0.5 kWh during the peak period, even though the battery was never empty either.
Is this normal? I wasnāt expecting āself consumptionā to be 100% but I also didnāt expect it to be as low as 90%.
Guys,
Iāve two issues iād like to solve so iām firing this out here on the off chance someone can help / has already done itā¦
Problem 1:
Displaying Import / Export / Consumption my default āEnergy Dashboardā looks like:
Which annoys me as it shows the battery charging 0100-0800 as separate to import so taking 0100 as the example: Battery charged 3.57kWh and I imported 0.7kWhā¦ Except NO i didnt I imported 4.2kWh and happened to use 3.6 to charge the batteryā¦ This imo should display the pink as a stack graph on top of import (blue), as import was used to charge NOT the sun.
Problem 2:
My solar system install was ~Ā£14K
Iām using the battery to keep me on offpeak prices and exporting etc where i can.
Iād like four things:
- Somewhere to enter my monthly bill
- the ability to work out (Iāve done some of this in my repo)
a) what i would have paid based on my current tariffs,
b) what i did pay
c) what i saved (x saved by battery keeping me offpeak, y saved by solar covering my usage, z how much was saved charging battery from solar) - a counter that takes my Ā£14K starting point and starts subtracting my savings and produces a current balance and how long based on avg to date it will take to āpay offā
solar_battery_from_panels_daily
isnt showing up for me anywhere even though it is declaredā¦ anyone else seeing this? Nothing in logs either.
Edit:
Ok found itā¦ its Solar_Battery_Generated_Dailyā¦ its using the friendly name instead of the name of the sensor as declaredā¦ Stupidā¦
hi all, I have a SE6000H inverter with meter. I configured the SolarEdge Modbus Multi Device custom repository. I currently have no battery. The meter is recognized well but I have no read value. On the inverter, however, I can read all the values. What could have happened?
The default precision setting in HA unfortunately only affects how the HA frontend displays it on cards and stuff, the entity itself doesnāt change precision when used in templates. In templates you have to add
| round(1)
to things if you want 1 decimal place, for example. Change 1
to however many decimals you want.
Thereās no resolution for combo meters unless SolarEdge changes how they register meters in the inverter firmware to export data for both functions over modbus instead of picking only one function to export and ignoring the other.
āThe default precision setting in HA unfortunately only affects how the HA frontend displays it on cards and stuff, the entity itself doesnāt change precision when used in templatesā
Iām not using it in a template though. This is three frontend cards all supposedly displaying the same entity from the integration, only one of which displays it to the level of precision I want ie 1 decimal place.
From the Gauge card:
From the Power Distribution Card
From the Tesla Style Power Card
I wonder if this is a problem with the cards themselves not keeping up with the changes in HA
Maybe Iāll raise an issue with the relevant dev.
Thanks
Complete newbie here - both with coding as HA/any form of automation.
Big thanks for this very elaborate post & dashboard, itās a great way to get started!
I tried to implement this entire post and I did tackle most of the hurdles by following the thread, but one Iām currently facing is:
The problem: card stating āEntity not available: sensor.solar_imported_power_dailyā
The addition of ātariffsā will break the donut āAutarkierateā.
Iāve deleted the tariffs & restarted HA and then it worked.
However, how can I still have the donut working without deleting the tariffs from the energy_utilities.yaml file?
I suppose this one is the forcing me to make a selection: electricity_tariffs_automation.yaml:
Is it possible to make it an optional selector? Or to combine both values in the card and use the sum of both values?
Yes, the custom cards are probably not rounding aware. At least in templates, there is a new flag {{ states('sensor.X', rounded=True) }}
that needs to be used to apply the default precision setting.
āa new flag
{{ states('sensor.X', rounded=True) }}
that needs to be used to apply the default precisionā
Oooh! I hadnāt seen that change. I used a simple {{ states('sensor.X') | round (1) }}
, which worked.
I donāt know anything about frontend dev to suggest a change for those custom cards, but I would suspect they are missing a flag or argument or function that tells them to reference the default precision setting when displaying sensor entities.
You could make template sensors with the rounded flag that the custom cards reference, but then thatās multiple levels of sensors that gets over complicated to manage. Ideally I would think the custom cards just need an update to be aware of the default precision setting as introduced in HA 2023.3.
sensor.solar_imported_power_daily_offpeak
sensor.solar_imported_power_daily_peak
sensor.solar_imported_power_daily_<tarriff>
Create a new sensor that is a template:
sensor.solar_imported_power_daily_offpeak + sensor.solar_imported_power_daily_peak
see:
Big thanks! I added the following and it seems to work!
- added to electricity.yaml
template:
- sensor:
- name: "Solar Imported Power Daily kWh"
unique_id: "solar_imported_power_daily_kWh"
unit_of_measurement: "kWh"
icon: mdi:transmission-tower-export
state: >
{% set imported_power = states('sensor.solar_imported_power_kwh') | float(0) %}
{% if (is_state('sensor.solar_imported_power_kwh', 'unknown')) %}
0
{% else %}
{{imported_power}}
{% endif %}
availability: >
{{ states('sensor.solar_imported_power_kwh') | is_number}}
Iāve never done this so written based on what else was in the file ā any remarks?
Thanks in advance! One step closer to a working dashboard!
Sorry I didnt read your question properlyā¦ Just use:
sensor.solar_imported_power_kwh in Autarkierate
or if you need it to be daily:
template:
- sensor:
- name: "Solar Imported Power Daily Total"
unique_id: "solar_imported_power_daily_total"
unit_of_measurement: "kWh"
icon: mdi:transmission-tower-export
state: >
{{ states('solar_imported_power_daily_offpeak') | float(0) + states('solar_imported_power_daily_peak') | float(0) }}
availability: >
{{ states('sensor.solar_imported_power_kwh') | is_number}}
To my mind itās an oversight when using tariffs we get two sensors but we should get 3 the third being the total and should use the utility name the same way it does when no tariffs are present. I intend to eventually get round to raising a PR about it.
Is there a way to manually change the type of meter detected? From inverter I configured meter 2 while on HA it detects meter 1
No, the inverter decides how the meter data is presented, not HA or the integration.
Hello you all,
I need your help. In January I managed to get a perfect Energy dashboard working using the config without a battery from SgtBatten. Everything worked perfectly.
Today I got a BYD LVS battery installed and I thought I just needed to switch the energy.yaml and everything would work again, but boy was I naive ā¦
There seem to be two versions for a configuration with battery. One in the old thread with an energy.yaml that doesnāt work (anymore?) - at least I donāt see any values in some sensors.
And one that is new that uses several yaml files in the package folder - but that needs a lot of tweaking to actually work.
I have a very regular tariff (0,255ā¬ / kWh) - what do I have to configure?
I read the notes in the github section, but donāt know what to do.
Thank you in advance!
Best regards
Schlichi83
I would start with using my config from here:
Basically, if you take delete your current config and integration and do a resetup using my config, it would be fairly the same as now, but just at the batteryā¦
You can change the tariff in three energy_tariffs.yaml
Butā¦ Make sure you use my fork of the GitHub because that will be very close to your configurationā¦