-
Notifications
You must be signed in to change notification settings - Fork 12
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
Request for testing #34
Comments
Hello there! If I understand it correctly, instead of reading real time energy data from i-de, the sensor is importing past data, right?. I'm interested on it. Just let me know the steps to follow, apart from backing up everything and download Is it possible to have both integrations working at the same time, or I need to disable / delete the Thanks ❤️ |
Hi, Yes, this integration has two main sensors:
It's not possible to run both versions but you shouldn't have any problems switching between them. After backup everything and etc you have to enable the "Historical Consumption" sensor, disabling "Accumulated Consumption" is optional. In the energy config panel now you can use the "Historical Consumption statistics" as an energy source. |
Hey @ldotlopez! I've changed the git branch, restarted the whole Home Assistant, enabled the historical consumption sensor, restarted again, but it does nothing. It's unknown and shows nothing in Energy graphs. Logs don't show anything either. Any clue? How can I debug it to ensure it does the right things? Thx |
Hi @lazynoda Check if sensor is working Go to Settings → Devices and services → Entities Check if it's collecting data Add sensor as energy consumption source (Note the ' statistics' suffix) |
Hi there! Sensor is enabled but not collecting data. History is empty. I can add it to Energy panel, but shows nothing on it. Maybe chatting is faster instead of posting here in the issue? |
Hi @lazynoda
It's a good idea, let me setup something for the entire project. Meanwhile, can you post debug log from hass? |
Hi @ldotlopez The logs are empty. Well not empty, but they show nothing from this integration. I just restarted the HA server, deleted the integration and add it again, just in case, enabling again the sensors. And downloaded the logs. Here they go: Home Assistant logs
Ah, I've also updated HA to 2023.2.2, pulled latest changes (if there were any) but still nothing. Could it be because I have 2 i-DE contracts, and the first one (old home) is not active anymore? You have a Telegram link on my profile if you wanna chat in Spanish 😛 Edit: Ok I saw you did a commit 17h ago, so I pulled and restarted. Now the sensor shows stuff. |
The fact that you can add the sensor to Energy panel and it imports all past days, not just from that moment onwards... Mis dies That's amazing! Is it possible to do it with another sensor? I would like to attach energy price, but it changed at Jan 1st so would be amazing to record both prices (2022 and 2023) |
@ldotlopez any idea why I can't track energy prices using current or static price? Both options are disabled. Could it be because it has past data and no realtime one? |
Currently it's not possible to "start" at any specific point but I'm working on an import feature to import data from a csv file. I didn't try to use historical sensors+price tracking 🤔. I don't think it will work due to the hack-ish nature of these sensors but the UI should show you options However… have you tried to add the PVPC integration? It should appear as "entity with current price" |
Nah I have it already working, but the thing is, the radio buttons are disabled. I can't select them. I can only select "Do not track costs" or "Use an entity tracking the total costs". Like I said, maybe because it has no current value, just historical ones. |
Hey @ldotlopez, anything special you wanna me to test? So far it's working. Every morning I have data from the day before, except for the cost issue mentioned earlier, it's amazing! |
Hi @ldotlopez! I think something has changed with 2023.3.X because I have no data since March 5th. Not sure if related but I saw a DB schema update from 31 to 33. Thanks! And if you've updated main branch, do not forget me in this branch hehe. Or merge it <3 It works on my machine |
Hi @lazynoda Recent changes in DB are fixed in main and latest release (v1.0.4). I need to make some changes in this branch (wip/historical-sensor) before merging it in main. My goal is still to build ha-ideenergy on top of this branch. Sorry about the delay (busy weeks) and so many thanks for your feedback 🥇 |
No rush on it, just to mention in case you forgot me hahaha. I guess when you fix it and I pull the changes, it will automagically fill all the data since March 5th, right? Just to know 😝 Do you plan in the future to merge this branch into main? Maybe more testers would be great, but so far I had no issues. |
Hi @lazynoda and anyone interested I just merged (wip/historical-sensor) into main. You want to continue testing you have to switch to main version in HACS (or whatever you use). Thanks! |
I have v1.0.4 with only the historical sensor enabled and I see data is 1 hour off compared with data collected with Shelly EM.
The latest state, corresponding to 23:00-24:00, is collected as 00:00 (22:00 UTC) |
Hi,
I just uploaded a new branch: wip/historical-sensor
In this branch I splited the current hack for historical sensors to a new repository: https://github.com/ldotlopez/ha-historical-sensor.
But.. why? This new module is reusable for other projects and other household supplies, like water or gas (check HomeAssistant historical sensor README) and, the more important, is capable of generating statistics. (See #25)
In our case this means that we can have float-precision readings (but not in real time) and a more resilent updates. Realtime sensor (Accumulated consumption) can be disabled and relay solely on the Historical sensor (Historical consumption) which is more precise, resilent and doesn't require the "advance user".
I'm asking for some testing. Expect weird and broken stuff and data loss, backup your data.
Thanks.
The text was updated successfully, but these errors were encountered: