Comments (18)
Do you have the pv_opt.log from 22:30 when the error occurred?
AppDaemon failed to return recent SOC data which is what caused the error in error.log and I suspect this may have stopped it loading correct tariffs after that.
from pv_opt.
In 3.9.0 I've added a feature to compare the pv_opt tariffs with those from the Octopus Energy automation (so long as you have
octopus_auto
set totrue
). At the moment all it does is flag if they are different and also populate a sensor calledsensor.pvopt_tariff_import_OK
withTrue
or `False'. This should at least help identify when there is a problem and, hopefully, eventually track down the source.Ok, I'll try 3.9.0. Is this correct?
What do you think about the PV forecast & SOC with the charge plan?
Thanks
You should be able to comment it all out as octopus_auto: true
is the default
from pv_opt.
from pv_opt.
Added a check on this in 3.9.4
from pv_opt.
Think I may have finally found the root cause! Please check out 3.9.5
from pv_opt.
from pv_opt.
v3.8.14 downloaded at about 15:30, restarted AP.
![image](https://private-user-images.githubusercontent.com/100320468/307386583-8d972536-5192-42ea-9679-0ebc7c541886.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3Mzg2NTgzLThkOTcyNTM2LTUxOTItNDJlYS05Njc5LTBlYmM3YzU0MTg4Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ODNhNjQxYWVkYWJjODRmMmQxOWI1NTE2NjRmMmNhOTZiMjNiMzk5ZjY2ZWNiZTY0YjM0M2EyNzVmNGU5OTQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JQI9jlruffkR7bBCE7E-zkyeZMrxRhPw-yqJRLApqlE)
Doesn't look like it picked up the OE slots correctly. No errors.
Restarted AD.
![image](https://private-user-images.githubusercontent.com/100320468/307387821-8bc94689-4473-49c4-9e3e-08404f2e9132.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3Mzg3ODIxLThiYzk0Njg5LTQ0NzMtNDljNC05ZTNlLTA4NDA0ZjJlOTEzMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZDY1ODg2OThhYzVlNDY5OGM1ZjNkYTAwZDNjOTU2YTM4OTY1Yzg3ZTEyYzg2ZDk1NzMwNGU5ZGExZjdkMmI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8CzalhZXe4v4XD5zZfzQ8oQy906bA5ZyWGMyjFmP0fM)
Looks ok.
However, (and this isn't specific to this version as I noticed this morning) I don't think the PV forecast has been taken into consideration, 26 kWh tomorrow! :) My projected consumption is lowish.
Also toggled between consumption history and fixed. It changed the charge plan by always resulted with 100% SOC around 6am.
![image](https://private-user-images.githubusercontent.com/100320468/307389641-d6316c01-9ff3-4d11-aa09-79048a791439.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3Mzg5NjQxLWQ2MzE2YzAxLTlmZjMtNGQxMS1hYTA5LTc5MDQ4YTc5MTQzOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMzU1MTZhM2MzY2VmNGQwOWNjNzg1ODU3NDIyMDdhNDdiOWU0MjgxOTgwNzQ0N2JjODBiNmM1N2ZmZTQxNzQ3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.v1ImthEp75ciYBaCdOEuo9feoyb9Jzaj1DExKao266c)
![image](https://private-user-images.githubusercontent.com/100320468/307388214-a8ed15bb-e4e8-4584-a314-7ab01b0c6db3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3Mzg4MjE0LWE4ZWQxNWJiLWU0ZTgtNDU4NC1hMzE0LTdhYjAxYjBjNmRiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MWY1YTNjZTgwODI2NjJjMjhlMTcxN2FkNWI4YjQwMDk5N2VkZjExNmM2NDdjMmVhYTQyMWZjMTdlOTgzYmNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.UvHz052_k7sQl6vaqFDZyd9KNWdHgZ0HEr8u0JeoUUg)
Thanks
from pv_opt.
In 3.9.0 I've added a feature to compare the pv_opt tariffs with those from the Octopus Energy automation (so long as you have octopus_auto
set to true
). At the moment all it does is flag if they are different and also populate a sensor called sensor.pvopt_tariff_import_OK
with True
or `False'. This should at least help identify when there is a problem and, hopefully, eventually track down the source.
from pv_opt.
In 3.9.0 I've added a feature to compare the pv_opt tariffs with those from the Octopus Energy automation (so long as you have
octopus_auto
set totrue
). At the moment all it does is flag if they are different and also populate a sensor calledsensor.pvopt_tariff_import_OK
withTrue
or `False'. This should at least help identify when there is a problem and, hopefully, eventually track down the source.
Ok, I'll try 3.9.0. Is this correct?
What do you think about the PV forecast & SOC with the charge plan?
Thanks
from pv_opt.
What do you think about the PV forecast & SOC with the charge plan?
Thanks
I think that's correct. Mine is similar. There are some marginal benefits from charging at <15p and exporting at 15p. My cost saving for tomorrow is only 20p though. If you increase the two thresholds (per slot and per pass) it will probably reduce the amount of forced charging.
from pv_opt.
You can see it is reading the Solcast OK because the "Initial SOC" curve reaches 100%.
You can also check that it is reading the forecast correctly by switching to the Solcast_p10
forecast in which case it should charge more and not get to such a high SOC:
from pv_opt.
I'd been using the Solcast default (p50?), so have now switched to P10.
![image](https://private-user-images.githubusercontent.com/100320468/307403322-adb6bb50-fd64-4a28-9511-835476f180a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3NDAzMzIyLWFkYjZiYjUwLWZkNjQtNGEyOC05NTExLTgzNTQ3NmYxODBhNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZDkzZDFkMjgzMjE1MWQwYWU1YTEyYTBlNzMxM2YyMDEyZmI4ZjNlNWU0NjQ0NDllZTQ2MTg1ZTBlMDk5ZDAxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.B6TNXSHMaeUcZR7dts1jk-wm_ZzaabvKw1LHXu6gdnM)
Thanks.
from pv_opt.
v3.8.14 downloaded at about 15:30, restarted AP.
Doesn't look like it picked up the OE slots correctly. No errors.
One thing I don't understand in your comparison is that Octopus don't release the next day's tariffs until ~16.00 so when I look at the log file for 15.30 PV_Opt doesn't have them - it is using a guesstimate based on the published wholesale day-ahead prices which is only hourly so it won't be 100% correct. Once the Octopus prices are available (after 16.30) it all looks OK.
from pv_opt.
I'd been using the Solcast default (p50?), so have now switched to P10.
Thanks.
This will be more conservative in that it's likely you will charge your battery more than you needed to but you are very unlikely to charge too little.
from pv_opt.
3.9.1 tidies up a few things related to these marginal charging slots and makes it less likely to charge unnecessarily,
from pv_opt.
3.9.2
I've got some more errors and just checked the charging plan, which doesn't look like its updated or got he OE slots correct.
![image](https://private-user-images.githubusercontent.com/100320468/307610715-5c872e3a-17d1-4f12-906b-0cefbf813065.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjc3NjMsIm5iZiI6MTcxODgyNzQ2MywicGF0aCI6Ii8xMDAzMjA0NjgvMzA3NjEwNzE1LTVjODcyZTNhLTE3ZDEtNGYxMi05MDZiLTBjZWZiZjgxMzA2NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOVQyMDA0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMDVjZjFkMTkzOTc1ZDgwNzczYTA5NjI5ZWY5YjhiNDgwM2EwMGYwZmJhZDdhNjJkM2M4NjFhNTMxMWNjZDFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.I_9RVWo7J9XND5bmoyepzmlJy63aWGK1heAv3e-V0Ic)
Restarting AppD, and the charging plan looks correct now.
Logs:
pv_opt.log
main.log
error.log
1pv_opt.log
Just noticed you have version 3.9.3, I'll update to this. Does this have any changes in this area?
Thanks.
from pv_opt.
v3.9.3
Unexpected error in worker for App pv_opt:
from pv_opt.
Happy to report a lovely stable version for me, zero errors and good time slots! Truly very grateful for you being so responsive and what a brilliant optimiser!
from pv_opt.
Related Issues (20)
- Modify battery capacity in pc_opt.py for users with larger battery capacity than 20kWh HOT 1
- Manual tariff setting HOT 3
- Hold lower than 100% battery charge HOT 6
- Independent minimum SoC level for pv_opt, to prevent Inverter becoming idle HOT 17
- Question about charging optimisation algorithm HOT 8
- PV sun up pre-charging HOT 3
- Optimiser frequency setting not working as expected HOT 2
- No charging schedule set in pv_opt HOT 8
- Static Solcast data HOT 8
- Incorrect release label? HOT 1
- Timezone error stopping pv_opt from starting HOT 7
- Unexpected error running initialize() for pv_opt HOT 3
- Battery doesn't get charged in cheap periods HOT 16
- Consumption Shape HOT 2
- Unexpected error in worker for App pv_opt: + ValueError: cannot convert float NaN to integer HOT 1
- solcast integration gone HOT 5
- Set up help HOT 2
- Multiple Inverters HOT 4
- Unexpected error in worker for App pv_opt:: AttributeError: 'numpy.float64' object has no attribute 'interpolate'
- AppDaemon HASS plugin incompatible with `numpy 2.0.0` HOT 20
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 pv_opt.