-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since SENEC Application v0825,v0826 & v0827 no STATISTIC data is provided [No Data for multiple Sensors] #4
Comments
Oh no .... |
If i got is correctly, these are all "daily usage" statistics data, e.g. how many kWh House consumed today. This should be replaceable by using an Home Assistant Riemann sum integral (https://www.home-assistant.io/integrations/integration/#energy) which simply can summarize House Power (W) to kWh like in the linked example. Since this counts infinitely higher, to get an daily used you can use Utility Meter (https://www.home-assistant.io/integrations/utility_meter/) to get an sensor on the integral which is resetted daily/monthly value. These Utility Meter sensors then could be used in Home Assistents Energy View. We cloud provice YAML examples for this in the readme of this repo. |
After looking at the old data, it seems that the Utility Metern is not needes since the old data also only counts upwards infinitely. So it should be fine only using the Riemann sum integral sensors. I will try this. |
FUNNY - while I am tyring - you already provide the info... the values (that are still available in my environment) are constantly growing - so there is no need to reset them on a monthly/weekly/daily/hourly basis - so looks like using the suggested integration from @neubi4 sounds like a decent replacement... Once the http-v3 build is confirmed as "working" I can spend some time working on example yaml parts that you can copy&paste in your ha configuration.yaml... |
Sounds great, thank you for your support! |
added workaround information in the initial post |
hello marq24, thanks for your hard work. It works very well. |
Hello marq24, just discovered your fork after firmware update, great work!
anyway again great work, thank you! |
1.: yes, using Helpers and the yaml code is the same. 3.: i left the old sensors with their current 2.: This is an interesting one since not many users have multiple systems. Does the slave senec also has an seperate IP and the webinterface? If yes, then i would try to add the slave additionally to the master. |
|
Readded also old sensors, past stats availables again! |
Good job, work also like a charm. |
I wrote a cautioning comment over on the old integration about Riemann sums: mchwalisz#47 (comment) So here just a short summation: Riemann sums will start to differ from what the battery reports with time and a better solution would be to simply get that data from mein-senec.de. mein-senec.de only updates every 5 minutes, but it's only for the totals, so that should be fine. The other values can still be queried from the lala.cgi if possible. |
It also seems like the update reset the settings for our Home V2.1 to poll our three SMA inverters. Solar Power just stays at 0W. Anyone else has this problem? Don't have the installer's password for the senec battery, so I guess I'll have to add the inverters to home assistant directly... Edit: Okay, Solar Power is back. Seems like the battery needed an hour to work properly again. |
Please note, there was a typo in my provided configuration.yaml in the |
my apology.. please ignore it. |
As far as I can tell at my system, the Riemann sum is only correct at my charging value, the discharging value is very deviating to MySenec/official App .... |
Passt über den dicken Daumen - oder? [It just took me a while to realize, that top part (of the image) is from SENEC-App and the lower part is from HA-Energy-Tab (I assume feeded by the 'integration' sensors...) |
Ich schwenke mal auf deutsch um. Die Werte aus dem HA Energy Tab sind die der PowerCalc Berechnung. PowerCalc: 14,53kWh - RMS Trapez: 14,12kWh - RMS Left: 14,19kWh - Senec App: 14,5kWh PowerCalc ist am nächsten dran, warum kann ich aber nicht sagen. Abfrage Intervall vom Speicher sind 2 Sekunden. |
Könntest Du mal bitte die powercalc.yaml für obige Ausgabe mitteilen. |
Hat sich erledigt. Ich hatte mir mit gleichzeitigen Konfigurationsversuchen per GUI und yaml selbst auf dem Fuß gestanden . . . |
hier teilen wäre 'trotzdem' schön ;-) - Gute Morgen btw.. |
updated initial post -> added a solution alternative: mein-senec.de WebPortal Integration Entry |
Ich habe hier einen Haufen von Helpern und darauf aufbauenden Sankey-Diagrammen, die auf den ursprünglichen Entities der v2.1-Integration
basieren und würde nur sehr ungern sämtliche Abhängigkeiten von diesen Entities anfassen und modifizieren. Gibt es nicht eine schlanke Methode, die Ausgangswerte von powercalc in diese Entities umzuleiten? Bisher habe ich powercalc nicht dazu überreden können. Möglicherweise habe ich auch das gesamte Konzept der Entities in Homeassistant nicht hinreichend verstanden . . . |
> To combat that just leave the old entities in the energy dashboard. I have both the old and the new sensors in there and it looks like this on the day of the update. It's yellow instead of orange from there on but that doesn't really bother me. ! exactly! - as documented here - #11 - thanks @bobthebuilder4711 for your help here supporting the integration! Once more I have edited my initial text of this issue in order to also inform you about the Energy Dashboard... |
Hi, sorry for confusing that technical discussion. Bit can someone please tell what I have to do with that beta version and so on ? Sorry bit HA is new for me |
@SteffenS27 - have you read this? #14 |
@marq24 thanks that should be what I need, but I have at the moment another problem, in HACS it is not possible to install or renew a Integration, the circle is just turning, but nothing happens |
@SteffenS27 I hope it's obvious, that I can't provide HA support in general... I would do:
this will disable all custom_components you might have installed - and you can re-enable them one by one to find the one causing the loop... [also checking the ha system logs might be already a way simpler start to find the root of your problem]... IF it's the SENEC.Home integration - double check, if you have specified the correct credentials (WEBAPI) - If your system was http only before (and now https is required) - make sure that you remove the LaLa.cgi based integration - and reinstall it. |
@marq24,Heute hab ich zufällig in einem der Facebook Posts gelesen dass eine neue Firmware ausgerollt wird welche die Probleme mit der aktuellen NPU-Error etc. lösen soll. Dabei gibt es ebenfalls ein Absatz über unser Vars.html Problem, welches aber leider eher weniger zur Freude einlädt. Anbei ein Screenshot der Nachricht aus der ich gerne mal Zitire:
Heißt im Klartext: Weil die Mainboards anscheinend zu wenig RAM haben und vermutlich die Firmware jetzt durch die SSL Implementierung mehr Speicher benötigt haben sie solche wichtigen Informationen wie Gesamtverbrauch etc. einfach wegoptimiert? Das kann doch nicht deren Ernst sein. Evtl. kannst du ja zumindest die Funktionen der WebAPI und des Speicherzugriffs dann zusammenfassen und die WebAPI Daten dann in die fehlenden Speicherentities packen? Gruß, |
Mit einem V4 geht ja sowieso nur noch die Abfrage über mein-senec.de oder die App. Die reine WebAPI hat also auf jeden Fall ihre ganz eigenständige Daseinsberechtigung. Und wenn mal eins der beiden nicht geht, ist auch die Fehlersuche einfacher. |
In der Ankündigung von SENEC steht, das die Vars.html und die display.html abgekündigt wird [was natürlich an sich schon erbährmlich ist - aber so ist es eben - beides sind aber Funktionen, die ich persönlich bislang nicht verwendet habe]... Wie es mit den STATISTICS-Daten aussieht, werden wir dann alle merken, wenn das Update tatsächlich mal ausgerollt worden ist... Und vor allem, was noch alles so zusätzlich mt dem Arsch umgeworfen wurde - bis dahin will ich aber erstmal abwarten... Die WEB-API Felder aber in die Local-lala.cgi Implementierung zu integrieren halte ich im Augenblick aber noch nicht so zielführend - schon allein wegen der unterschiedlichen "polling-intervallen" und der Tatsache, das das eine mit dem anderen nicht wirklich viel gemeinsam haben...
Humor haben'se wenigstens! |
Hab auch gerade die Meldung in der App bekommen. |
Dann hoffen wir mal das beste das die Statistiken in die lala.cgi wieder kommen. Ansonsten hab ich jetzt alles erstmal auf die WebAPI umgestellt in meinen Dasbboads und für die Automatisierungen ob und wieviel Überschuss gerade da ist habe ich ja gott-sei-dank mit Discovergy direkten Zugriff auf die Daten des Stromzählers sodass ich hier sogar genauer und direkter als mit Senec arbeiten kann. |
Dann noch einen Shelly 3EM (oder einen Emporia Vue Gen 2) an das Stromkabel vom Senec Speicher klemmen und Du brauchst die Daten theoretisch gar nicht mehr vom Speicher selber abzurufen. |
Seit ein paar Wochen habe ich einen Tibber Pulse im Keller - und heute habe ich mich mal hingesetzt und damit auseinandergesetzt, wie ich direkt an die Daten komme... |
Also after the update to 0826 - no STATISTIC data in the lala.cgi response... thanks for nothing SENEC!
|
I still don’t think that it will come back at all 😭 |
Till today it did not came to my mind, that the data displayed in the mein-senec.de portal could be inaccurate - but please note, that at least in my setup/environment the |
as little update - even with the rollout of v0827 - no local STATISTIC data... but |
Problem
When your SENEC.Home will be updated to v0825 (also after the update to v0826) the integration is not able to provide data for a couple of sensors..
Affected Sensors (that's all the total sum data displayed in kWh):
The reason behind is, that SENEC has decided to exclude 'STATISTIC' information from the response of the 'lala.cgi'... That's quite sad, since these sensors are mainly used for the Home Assistent Energy View...
Right now there is no quick fix to this situation - but since also data for 'DISPLAY' is missing my guess is, that SENEC is just building so called Banana-Software. Without "DISPLAY" information from the lala.cgi the /Display.html does not work at all - so I have hope, that the empty response parts have slipped through QA/QC
Current Solutions to access your statistics data
Please read the complete post/Issue text - since at the bottom you will find important information for you Energy Dashboard
'mein-senec.de' WebAPI
When you update this Integration (ha-senec-v3) to the latest version you have the option to add an additional integration entry. When you start the process you have to select 'WEB.API: mein-senec.de Portal (usable with all SENEC.Home variants)' from the selection list and then provide your mein-senec.de credentials. This will add 13 additional Sensors to your Home Assistant (currently wallbox data is missing - cause I don't have one (yet)) - when you know the fields in the web-api - just let me know. Thanks to @mstuettgen!
Mapping lala.cgi to web-api Sensor names
Please find below a table comparing the sensor names between the classic integration and the web-api based integration - this comparison assume, that you did not change the names ['senec' & 'senec_wabapi'] since they will be used as prefixes
sensor.senec_house_total_consumption
sensor.senec_wabapi_consumption_total
sensor.senec_solar_total_generated
sensor.senec_wabapi_powergenerated_total
sensor.senec_battery_total_discharged
sensor.senec_wabapi_accuimport_total
sensor.senec_battery_total_charged
sensor.senec_wabapi_accuexport_total
sensor.senec_grid_total_import
sensor.senec_wabapi_gridimport_total
sensor.senec_grid_total_export
sensor.senec_wabapi_gridexport_total
sensor.senec_wallbox_energy
Riemann Sum Integal Platform
AS WORKARROUND you can add the following section to your ha
configuration.yaml
(if you have already a sensor section obviously you just need to add the sensor's itself) - unfortunatly the the integration platform does not allow to provide icon's - so you have to edit them manually later via the GUI (if you need/want them)...Please note, that the
source
sensor names based on the default integration name 'senec' - if you modified the name during the initial setup you need to adjust the source sensors.Handling the change of the EntityIDs in the Energy Dashboard
Since we have the situation, that some SENEC.Home Systems still return STATISIC data (since they are not updated) and that this data might come back with another Update - who knows? - the EntityIDs of the new Sensors (that have been added in both cases (WebAPI or Riemann)) are different by purpose.
When you want to keep your historic data in the Energy Dashboard (and I guess you want) then the current known best way is described here in an additional issue: How to configure Energie Dashboards (after SENEC.Home have been updated to 0825+)
The text was updated successfully, but these errors were encountered: