Repository navigation
v2.3.9 - Tinted Flow Rails & Idle Rail Toggle
What was wrong
Three separate faults in the static flow rails, stacked on top of each other.
The rails were almost invisible. v1.x drew each rail in its own colour at 15%: cyan for solar to home, purple for solar to EV, green for solar to export, orange for grid to home. v2.0.0 replaced all of them with one shared flow_rails white at 5%, which is about 4% effective opacity on a dark card. Rails are tinted per line again, from the colour of the node each one feeds, with flow_rails kept as a single explicit override. The old baked 0.05 and 0.06 white values are ignored and no longer written by the palette generator, so configs saved by 2.0 to 2.3.8 heal on their own.
Two rails were missing whenever you had an EV or a battery. Rail visibility depends on whether the card can see those devices, and that check ran once during setConfig, before Home Assistant assigns hass. With no entities resolvable at that moment, the EV and battery rails were hidden at birth and never reconsidered, because later updates only refreshed the values. On an EV setup that left three lines instead of five. Visibility now re-evaluates as soon as the device inputs change, so an EV only layout draws the five v1 rails again: solar to home, solar to EV, solar to grid, grid to home, grid to EV.
Two dead rails. rail-solar-tesla and rail-grid-tesla were leftovers from the v1 naming, given the same geometry as the EV rails but never displayed by anything. Removed.
New option
show_idle_rails, default true, which keeps the v1 behaviour of always showing the grooves. Set it to false and a line is only drawn while that connection actually carries power, so the diagram shows just what is flowing right now. It is in the visual editor under Sizing, Speeds & Options, and in YAML:
show_idle_rails: false # only draw a flow line while it carries powerUpgrading
Nothing to change. If you already had a flow_rails colour set on purpose, it still applies to every rail. If you never touched it, you will see the tinted rails again without editing anything.