Features Wishlist
Plugin API: flow lines with moving dots for tiles (like the built-in energy card)
Hi Max,
I wrote a community plugin, energieflow (https://github.com/jocHAai82/tessera-energieflow), a power flow tile modelled on Home Assistant's power-flow-card-plus: solar, grid, battery, house, plus a wallbox and a heat pump as their own branches, with the dynamic price and the Β§14a module 3 price.
The one thing I can't match is the moving dots. Tessera's own energy card has them (energy_view.cpp, its own timer at 25 fps), but the plugin rules forbid timers and animation in tiles, so my lines can only change colour.
Request: a part in the plugin API that draws the dots for a plugin, so the firmware keeps control of frame rate and cost. For example:
ui::flow_line(parent, points, count, Role / colour) ui::set_flow(line, speed) // 0 = still, sign = direction
The screen would move the dots itself, as it does for the energy card, and could slow or pause them when busy (squeeze), on a hidden page or in standby.
Related, found while building the plugin: a new plugin tile is placed at 1x1 even when its manifest says min 3x3, and edge resizing changes one axis at a time, so it can never reach an allowed size (startTile() / resizeChoices() in editor/tiles.ts). The same thing happened to Power Origin's energy flow tile. I worked around it with min 1x1; starting a plugin tile at its manifest minimum would fix it.
Thanks for Tessera! jocHAai82
Discussion 0
Add a commentStart the conversation
Share an example, ask a question or explain how you would use this.