This did the trick, many many thanks Alex!!!
I was pretty sure about the recorder, since I read “No statistics available” in the energy integration.
Sure, and you used it, excluding sensors.
Study this: Recorder - Home Assistant
This is how I use it: added only an exclude section, and you can use wildcards for names, or exclude domains.
exclude:
domains:
- device_tracker
- media_player
- uptime
- time_date
- worldclock
entity_globs:
# - sensor.snmp_stats_*
entities:
- sensor.tempest_direzione_del_vento_rt
- sensor.tempest_velocita_del_vento_rt
# - sensor.consumi_condizionatore_power
# - sensor.consumi_prese_casa_power
# - sensor.consumi_condizionatore_voltage
# - sensor.consumi_prese_casa_voltage
Just wait for the next cycle…tomorrow, and check. I can’t tell you what’s going on there, and if the values are correct or not.
Like I told you: check EACH sensor, one at a time, if it’s working ok. If the battery sensor says 15,85kwh check if it’s true. If the solar energy sensor says 9.49kwh, check on the inverter if that’s true. etc.
I can’t tell you if the values are not ok…
No problem. I was confident that was the issue.
One advice: if you want to use HA seriously, don’t use RPi with an SD card. Get another device or use the RPi with an SSD. SD cards are not designed for this use case, you will only have issues and limitations if you use them like this.
Will do! Thank you very much.
Let me know how it goes…
Thanks also for this advice, I’ve already take into account to traslate HA config on SSD, expecially now that all my domotics are on the hub.
With time, the more you will depend on those, more things you will install, more you will understand that RPi is not the best platform for this.
Alessandro,
i have to go over the sensor calculations again. I guess there is the issue with these peak.
Do you have me any tip how i can deal with negative values?
My Battery and my Grid Power sensor does show -/+ values. But for calculation i have to sort this out as i need only positive numbers. I used a idea from another topic but i think this does not work as i assume it should.
thanks
armin
What kind of device is better in your opinion?
Personally, I recycled an old Intel NUC, but there are a lot of devices that could work: generally, I recomment small miniPCs with a decent CPU. Intel NUC, HP Elte desktops, Dells, etc. You can also find them on ebay used at a decent price. Get a i5 intel at least, some RAM and then you install an SSD, you’re done.
I gave you a link to a post of a guy which has the same kind of +/- sensor, did you check it? It seems to work well for him. Read that and eventually you can contact him if you have doubts, but it looked good.
I don’t know what you did for +/- right now so can’t really know what’s wrong, but: did you double check the values of the sensor with the real device to know if it’s working or not?
Hi Alessandro,
i think i did it more complicated as it needed to be. The E3DC shows -/+ values for Grid and Battery.
Grid + = Import while Grid - = Export
Battery + = Charge while Battery - = discharge
Solar is complete Panel Production only. Grid Export is the Solar Energy which is not used by House or Battery.
To split the -/+ values i used ABS and a comparison. If Value is bigger or equal that + if smaller or equal 0 than minus but reversed it with ABS.
# Postive Value above or equal Zero
e3dc_grid_positive_power:
unique_id: e3dc_grid_positive_power
friendly_name: E3DC Grid Positive (Import) Power
unit_of_measurement: W
value_template: >
{% if states('sensor.e3dc_grid_power') | int >= 0 %}
{{ states('sensor.e3dc_grid_power') }}
{% endif %}
# Negative Value below or equal Zero
e3dc_grid_negative_power:
unique_id: e3dc_grid_negative_power
friendly_name: E3DC Grid Negative (Export) Power
unit_of_measurement: W
value_template: >
{% if states('sensor.e3dc_grid_power') | int <= 0 %}
{{ (states('sensor.e3dc_grid_power') | int) | abs }}
{% endif %}
Hope this makes more sense. And saved me calculation stuff which seemed anyway wrong.
So keep fingers crossed.
Cheers A
This looks good, because the problem is simple, and remember that with this stuff, you always need to keep it simple. If the solution is complex, it means you didn’t do enough analysis. Keep it simple, always.
And remember to double-check the values of these calculated sensors with the real devices.
Good job.
looks much better this time. battery charges and discharges. Solar looks fine. And Grid import/export as well.
You see? Now that you know the “theory”, and you applied what you understood to the sensors code, making it simpler, magically numbers start to make sense…that’s how it works…apply that method for everything.
Unfortunately many people copy things from the forum and think it will work for their use case. The problem with that is that use cases are often not the same, and also the fact that if you copy things, without understanding the problem, in case of issues you won’t be able to troubleshoot properly and fix things.
You have to master what you implement if your house depends on automations, you can’t afford to simply copy&paste things.
Glad you solved it…salutami tua moglie e quel bimbo splendido che vedo in foto.
Gracie mile Alessandro. The little one is 9 and nearly as big as i am time goes by…
And yes i do agree. Things you understand you can handle much better. … the pain follows now. I have to document it. And take care of good backups.
Stay well and healthy Alessandro. And thank you so much for guiding me out of the dark!!
My pleasure, if you need help feel free to contact me. Stay safe.
Many thanks again Alessandro. I’ve a further question for you, as I can see you’re very skilled about new energy panel: I’ve seen many pictures shown user’s energy distribution section all of them with gauges, I don’t have these gauges on my energy panel and don’t seen any way to add… Also for the energy usage my panel only show grid below and solar prodction above, but I’ve seen many pictures show the data togheter in the energy usage:
Mine:
others:
Gauges on user’s panel:
Any hints?
Massimo
Because you probably are not in the default energy panel section, did you use lovelace and brought in the various elements of the energy panel? You can do that too, but you’re responsible to put in all the sections of the panel.
The default energy panel is on the vertical section bar, with the thunderbolt icon, see here: