Repository navigation
[FEATURE] Collapsible "Plan by slot" table in the plan notification #971
vdiele
started this conversation in
Feature Ideas
Replies: 2 comments
|
Thanks for the suggestion! 🙌 Here's how this works:
If your idea is very specific to your setup, it may not make it into the core integration — I'll try to suggest a workaround in that case. Feel free to discuss details or alternatives below. |
0 replies
|
Thanks @vdiele, accepted. The table will be folded by default, as you propose. I'll leave the collapsed/expanded setting out for now; one click opens it. The next beta also makes the table itself shorter, which is the other half of the problem:
With 15-minute prices (Tibber) the table had one row per quarter, so this alone removes most of the rows. A charge and the hold right after it stay as two rows even at the same price. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Area of the proposal
Dashboard or user interface
What problem would this solve?
The 2.0 plan notification ("Predictive charging: price optimisation") contains the full
"Plan by slot" table with one row per slot. On a normal day this easily becomes 20–60
rows. The important part – the energy balance at the top (solar forecast, consumption,
battery, energy left to the grid) – is then followed by a very long table, and the
notification becomes hard to read, especially on a phone.
Proposed solution
Wrap the slot table and its legend in a collapsible section, so it is folded by default
and can be expanded on demand. Home Assistant renders
<details>/<summary>inpersistent notifications.
In
notifications/plan.py(_plan_order_lines, theplan.orders.titleblock) this isonly two changed lines:
Optionally this could be a setting (collapsed / expanded).
Example use case
With dynamic pricing (Tibber) and a battery that cannot cover the whole day, the plan
holds the battery for the dearest hours. The notification then lists every held and
"battery empty" slot until midnight. With the table collapsed, I see the decision, the
energy balance and the saving at a glance and only open the slot list when I want the
details.
Who would benefit from this?
Most Omnibattery users
Alternatives or workarounds
I patched
notifications/plan.pylocally with the change above on two installations(v2.0.0b3). It works as expected in the Home Assistant UI: collapsed, only
"▶ 🗓️ Plan by slot" is shown; expanded, the table and legend appear once.
Collapsed

Expanded

Additional context
No response
Confirmations
All reactions