Comments (6)
Yes, a good idea!
Also because i have the SUN600 and he is also offline at night...
from inverter-connect.
One Problem: What's if the status is lost? e.g.: The computer was rebooted or the services restarts by some other reason.
So you can't just init with "no reset made today" and toggle this boolean flag. Because every restart will reset the daily production, too.
So we have to store the state on disk to avoid this. Maybe just the date of the last reset into e.g.: ~/.config/inverter-connect/lastreset
from inverter-connect.
I implement the idea in #61
We will see tomorrow if it's work ;)
from inverter-connect.
Hm. Doesn't work, today:
But the reset was made, today:
cat ~/.config/inverter-connect/daily_reset_state.txt
2023-05-27
Hm...
from inverter-connect.
The original firmware resets the "daily production" at the first connection with the central server. With this implementation, you lose production between the first sun and the time you connect home. Yesterday, I re-enabled communication with the internet for the inverter, and the inverter resets the day's production immediately after.
What do you think about a similar approach by running "Set-Time" once a day, just after the software was able to connect to the inverter for the first time?
Using the status file to ensure that "Set-Time" is only run once a day, even if the software has been restarted.
The result would be very similar to the original firmware when the inverter is connected to the internet. There will always be a small amount not reported. If the software runs continuously, the amount is very small probably under 5 minutes of harvested energy at the beginning of each day.
from inverter-connect.
What do you think about a similar approach by running "Set-Time" once a day, just after the software was able to connect to the inverter for the first time?
Using the status file to ensure that "Set-Time" is only run once a day, even if the software has been restarted.
This is exactly how it's implemented, now ;) But doesn't work. Don't know why.
from inverter-connect.
Related Issues (20)
- Wrong reads being pushed into MQTT HOT 1
- publish-loop sleep time should be configurable
- pip fails installing dependencies HOT 2
- support for Deye hybrid high voltage inverters
- Multiple inverter in settings HOT 1
- print-values fails if values cannot be retrieved HOT 1
- Mac error HOT 3
- Can't set time HOT 4
- Discovery in current Home Assistant v2023.6.1 fails
- ERROR: Can not execute `setup.py` since setuptools is not available in the build environment. HOT 1
- Automatic installation with Ansible fails HOT 2
- TypeError: get_connected_client() got an unexpected keyword argument 'verbose' HOT 1
- FileNotFoundError for service_template.txt HOT 2
- Feedback to systemd
- Total Production for modules in wrong order
- Skip send values: Radiator Temperature value=61.0 is greater than -9.9 HOT 3
- reboot inverter via cli HOT 2
- Errors after ./cli.py edit-settings
- Python version error on Raspberry Pi HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inverter-connect.