Commit graph

617 commits

Author SHA1 Message Date
Michael Geers
419074f92a fix: restore batteryDischargeControl 2023-11-22 17:02:21 +01:00
andig
ed9e5f398a
Battery control: add api (#10815)
* Battery control: add api

* wip

* wip

* add battery discharge UI and state

* Publish controllable

* Reset to normal when disabling

* minor

* wip

* wip

* Revert mode on shutdown

* refactored tests, renamed method in site_battery (#10859)

* Fix linter

* only show option if controllable; not supported message instead

---------

Co-authored-by: Michael Geers <michael@geers.tv>
Co-authored-by: Michael Heß <GrimmiMeloni@users.noreply.github.com>
2023-11-22 13:55:11 +01:00
andig
e7e78bea70 Vehicle: remove climterActive on disconnect 2023-11-18 15:53:48 +01:00
andig
b92cbf8969
Victron: add battery control (#10753) 2023-11-16 20:10:57 +01:00
andig
8a4dda650d Revert "wip"
This reverts commit bc8e3a451e.
2023-11-16 15:22:07 +01:00
andig
bc8e3a451e wip 2023-11-15 22:09:19 +01:00
andig
6c0a64e9a3 chore: cleanup logging 2023-11-15 21:32:33 +01:00
andig
354fd0857a chore: replace jinzhu/copier 2023-11-10 17:12:02 +01:00
Andreas Linde
dc650fd4f1
Planner: fix estimator disabled when soc provided by charger (#10698)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
When the vehicles SoC is provided by the charger, the planner currently assumes that the EV is not charged at all. This can be reproduced by setting a target Soc to be identical to the current, and the planner will show a charge time that would be needed to reach the current Soc.

The reason is `s.vehicleSoc` in `estimator.go` not being set as `publichSocAndRange()` exits before setting it.
2023-11-09 18:43:28 +01:00
Michael Heß
5453820eb6
Add battery discharge control logic (#10553) 2023-11-09 12:42:39 +01:00
andig
40a16e1f72
Tariff: ensure rates are sorted by time (#10680) 2023-11-06 21:04:05 +01:00
andig
f90f4ed4c1
Planner: always publish current plan (#10667) 2023-11-05 17:30:36 +01:00
andig
613c9c6e76 chore: add comments 2023-11-05 14:40:10 +01:00
andig
a23a4b493e chore: log target time 2023-11-05 14:34:06 +01:00
andig
383f337d6e chore: fix mock gen 2023-11-01 23:27:39 +01:00
andig
245730abf1 chore: refactor mock apis 2023-11-01 12:23:29 +01:00
andig
c58abe429c Site: log api settings 2023-10-30 11:54:15 +01:00
andig
da68bc03b5
Rename stats to statistics (BC) (#10551) 2023-10-29 12:29:53 +01:00
Michael Heß
c856da153f
Session log: handle unfinished sessions (#10328) 2023-10-26 20:17:21 +02:00
andig
a3a15b818d chore: fix comment 2023-10-23 20:57:36 +02:00
andig
95c39a3a95 chore: simplify 2023-10-23 20:52:41 +02:00
andig
276b29ab6e chore: fix style 2023-10-23 11:19:41 +02:00
andig
fd8fa61b34 Publish thresholds 2023-10-23 09:11:27 +02:00
Michael Geers
58e1238e6e
Replace savings with session based stats (#10341) 2023-10-21 10:58:07 +02:00
jheinitz
d516e84c42
Log minSoc and batteryPrioritySoc (#10282) 2023-10-20 19:14:19 +02:00
andig
b6f1d77ea7
Fix syncing current with charger (#10406) 2023-10-20 14:04:17 +02:00
MarkusGH
8f2548e020
Prevent premature guard elapse in "charger out of sync" situation (#10340) 2023-10-17 12:44:54 +02:00
andig
133afabb95 chore: clarify plan/planner active 2023-10-15 16:13:54 +02:00
andig
a761906ec3 Revert "Session log: close unfinished sessions on startup (#10246)"
This reverts commit e22564dfe2.
2023-10-15 00:25:39 +02:00
andig
7ad03ecc34
Add configurable custom tariff (#10306) 2023-10-14 16:52:17 +02:00
Michael Heß
e22564dfe2
Session log: close unfinished sessions on startup (#10246) 2023-10-14 13:56:07 +02:00
andig
51fa490549
Publish smartCostActive (#10297) 2023-10-13 16:45:50 +02:00
andig
c1acd274d0
Always poll soc for integrated devices (#10284) 2023-10-12 22:43:57 +02:00
andig
7626c45a9b chore: publish battery soc and capacity as float 2023-10-09 22:16:00 +02:00
andig
c369817dbf
Fix reducing to 1p when vehicle doesn't utilize allowed current (foll… (#9581) 2023-10-08 14:42:20 +02:00
andig
cdb2071825 Accept battery meters without soc capability 2023-10-06 18:44:50 +02:00
andig
6b21ac0cd6 Revert "Validate if meter implements api.Battery"
This reverts commit ea90578dfe.
2023-10-06 18:43:36 +02:00
andig
ea90578dfe Validate if meter implements api.Battery 2023-10-06 18:00:38 +02:00
MarkusGH
109033e103
Fix race condition between charger and loadpoint enabled state (#9959) 2023-10-01 17:43:13 +02:00
Michael Heß
5f5af482c4
Elapse PV scale timer immediately if not charging (#10113)
This prevents starting charging on PV only to stop again to switch phases
2023-10-01 13:02:01 +02:00
Michael Geers
749428c990
docs: link to english docs when appropriate (#10053) 2023-09-30 12:54:17 +02:00
andig
e20224c242 chore: improve logging 2023-09-24 12:58:30 +02:00
andig
3b1d615239 Fix a deadlock in acquiring vehicle from coordinator
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2023-09-23 17:21:19 +02:00
VolkerK62
63e73cdb06
fix warning residualpower in combination with battery (#9126)
* fix warning residualpower in combination with battery

da auch bei negativen Werten eine Warnung kommt ist der alleinige Hnweis "is missing" missverständlich

* add link to doku

* type

* set ResidualPower to 100 instead of warning

* wip

* wip

* wip

* 100 if missing, warning if negativ

so viel Aufwand, für einen Parameter ;)

Co-authored-by: StefanSchoof <4662023+StefanSchoof@users.noreply.github.com>

* wip

der Batterie Check war doppelt

* nur erweiterte Warnung

---------

Co-authored-by: StefanSchoof <4662023+StefanSchoof@users.noreply.github.com>
2023-09-18 09:31:39 +02:00
Michael Heß
a2865f7337
Fix loadpoint not setting charging charger to enabled (#9932) 2023-09-17 15:41:30 +02:00
andig
dd668c3007
Dynamically add/remove vehicles (#9903) 2023-09-17 11:37:17 +02:00
MarkusGH
6546af451e
Separate price/co2 calculate for home and loadpoints (#9137) 2023-09-13 09:21:48 +02:00
andig
8351a4471f
Fix target soc reached ignoring charger soc (#9827) 2023-09-10 21:58:24 +02:00
andig
6f7e45db41 chore: additional logging for phase switch 2023-09-09 09:54:50 +02:00
Michael Geers
5cc4c146ee
Restore vehicle onIdentify behavior for targetSoc from yaml (#9685)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
* Fix vehicle onIdentify for targetSoc

* fix onDisconnect behavior if config exists; update tests

* deprecated config-based minsoc; api/ui only setting

* fix tests
2023-09-03 16:29:13 +02:00