-
Notifications
You must be signed in to change notification settings - Fork 8
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
Total fuel burned not updating #45
Comments
Hi, Thank you for the feedback! That's weird, since this sensor is not calculated by EM device. Instead it's platform independent and is calculated by the PyPlumIO and the integration, so if it runs for me, it should run for you. There was no change to this logic since forever... These are steps that can be taken to troubleshoot the issue:
This will help you to pin the issue to specific component. Then we can decide on how to resolve it. |
Good that you mentioned its calculated in the plugin. And now as i hasve reset the HA I see it started to udate again. Problably something was not working between the restarts (it was ~2 weeks). The fuel consumption data that i derived from fuel level variable was updating as normal in between the restarts. I did not monitor fuel-burnt - so i dont know how that behaved. Thank you for the insight anyway. As it works now - case closed :) |
Thanks for heads up! Great thinking with deriving burned fuel from fuel level btw. I was thinking about doing this, but ultimately decided against it, since it would require asking users how many kilos of fuel is 100%. Instead it is calculated by adding |
It is broken again. It seems to be related to random disconnects of the rs485 dongle or reboots of the ecomax920 device itself. I dont know which as I only find out much later that the value has stopped updating. I know that i did power on/off cycle once for the device and now 5 days later i see that the value has been flat for 5 days on graph. I suggest to remove any checks on the logic calculating the value and take derivative in as fuel furn rate is detected. Last winter the deivce worked flawlessly for 5 months without any of such problems and i did numerous power cycles. |
Strange thing is there isn't any checks done by the integration. We simply extend RestoreSensor from HomeAssistant core with one function that adds value and nothing else:
I believe the issue is probably introduced by one of the new HASS releases. There was no changes to fuel logic for well over the year in this integration or PyPlumIO. I'll try to find an issue with edit: One other suspect is actually aggregate filter, that is used to collect data for thirty seconds before passing it to HASS... |
Could you please still provide diagnostics data when the sensor is broken. It will greatly help to eliminate at least some possibilities. Thanks beforehand! |
What kind of diagnostics data ? HASS log or something else ? (I need to catch it when its broken - i dont have it now as I restarted) |
The diagnostics, obtained via HomeAssistant's built-in component. Please follow steps below to obtain it, once sensor is broken. You can attach it via comments to this issue, or email it to me via [email protected]. You can also open file with any text editor to review and remove any information you don't like me to see, although sensitive information like "UID" and device's IP address are already redacted.
Thanks again for you help! |
config_entry-plum_ecomax-6b4fb62816ce81405437142431183f73.json.txt This is the current state. I dont know if it makes sense to upload/send it again when it becomes broken ? |
Thank you! Please do upload it again when it becomes broken. See those values from your diagnostics below. If Total Burned Fuel in HASS breaks and we see {
"fuel_burned": 0.0013145052387522774,
"fuel_consumption": 1.7245032787322998,
} |
Ensure, that connection is properly closed when retrying via async_setup_entry call, otherwise connection task gets cacelled by the HASS with timeout, which in turn breaks some stuff (notably burned fuel counter). Related to: #45
I've probably found a root cause for this issue by accident during power outage... When HomeAssistant (HASS) starts up and loads the integration, it calls This only happens, if HASS fails to connect to the converter during initial integration setup (i. e. after HASS restart), if connection to the converter is lost at any time after the setup is done, the issue doesn't occur. We'll fix it by closing PyPlumIO connection when raising homeassistant.log
|
I see this in log now: 2024-01-17 14:32:41.245 WARNING (MainThread) [pyplumio.devices.ecomax] Skipping outdated fuel consumption data, was 247675 seconds old 15 minute gap in RS485 dongle connection to the Ecomax920 device. The seconds value is big as it happened some days ago already. |
Hi, Thanks for the feedback! I've fixed this issue in 4e03ad2 Basically due to an error, integration creates multiple ecoMAX objects on reconnect, which blocks fuel counter from being updated correctly as all instances try to call same callback at the same time. This fix will be released as part of v0.4.2. edit. If you don't want to wait, you can safely install and use "Main" branch it includes this fix, but requires at least HASS 2024.1.0. |
Hi again, I found another issue with the fuel consumption tracker itself. As I though, I just needed a bit of distraction from this project to find it... Previously when the consumption tracker encountered outdated fuel consumption data, it skipped processing it, which is good, but it also skipped setting a new current timestamp, which means that it has marked any frames received after received the outdated data, as outdated as well. Detailed example of the issue below:current_timestamp = 0, frame_timestamp = 10, difference = 10 -> (processing fuel data, 10 seconds old) This has now been completely fixed in denpamusic/PyPlumIO@79970c3 with modification to the test case, so that it doesn't ever happen again. I'll release v0.4.2 as minor that will incorporate this fix tomorrow, moving custom entities UI feature to v0.5.0. Sorry for all the inconvenience caused, this was embarrassingly hard to track :( |
Is there an existing issue for this?
I'm having the following issue:
Sicen last update the Total fuel runed has stopped changing on ecomax 920 device. I just ofund out that the graph im having on HA is flat. Restarting HS didnt help.
I have following devices connected:
I'm connecting to my devices using:
Ethernet/WiFi to RS-485 converter
I'm seeing following log messages:
No response
My diagnostics data:
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: