sonnen-tools / node-red

Node Red Flows for use with Sonnenbatterie
GNU General Public License v3.0
8 stars 1 forks source link

Persist context between restarts. Was: No discharging after NodeRed Update #13

Closed markusjnagel closed 10 months ago

markusjnagel commented 10 months ago

Discussed in https://github.com/orgs/sonnen-tools/discussions/12

Originally posted by **doncuco** January 10, 2024 There was a NodeRed update yesterday for my home assistant. Or something else is wrong. But right now prices are at 36cent and my battery is keeping its SOC at 34%. Looks like if the Plugin gets restarted it looses the "calculateddischargecosts". Could you have a look at that? Perhaps you could optimize that so that this value gets stored somewhere an can be recovered in this case. Or if the new calculated value for max charging price is below the actual Tibber price, then use that, so hat the battery can go to self-consumption. Right now I set the battery manually to self-consumption mode. But the Flow keeps setting it to manually. Could I manually overwright the Not a Number value of clculateddischargecost? And here comes the next idea. Perhaps you could integrate a button in the dashboard to do this. image
markusjnagel commented 10 months ago

Context should be persisted between restarts. Also, manual reset button is needed.

markusjnagel commented 10 months ago

see https://github.com/sonnen-tools/node-red/blob/main/releasenotes.md and https://github.com/sonnen-tools/node-red/blob/main/docs/setup/nodered/context-persistence.md