Using Flask to build a new interface

Hi All, has anyone done this? Is it possible? The main UI is OK, but it really lacks a nice look and feel - basic blocky interface etc is great for simplistic stuff but just doesnt cut it compared to Home Assistant.

Has anyone done it?

Thanks

Are you referring to openhab’s UI to manage OH, or the the UI for pages for the end user controls?

Got any examples to explain what you mean further?

I mean the UI to display data from your system, lights, controls etc… Main UI is clunky and not overly asthetically pleasing. Flask can make some really nice looking uis, dynamic images etc

i vibe coded this in 1hr for my battery/solar system

This is the first time I’ve heard of Flask, so my knowledge is nonexistent.

Correct me if I’m wrong: From a very brief googling and reading, it’s a python framework that uses Jinja as its rendering/templating engine. My question is, to create nice looking UI, you’d still need to build nice html / css design. Is this also part of Flask, or how does Flask make it easy?

Can you show me how to build that UI you pasted above (just the code is fine).

Of course it’s possible, anything capable of serving web content could be used to build a UI for OH (flask, ruby on rails, PHP or just static HTML with javascript served via nginx or apache). But Flask is mainly for creating the backend logic (and serving templates) which would not be needed. As @jimtng points out, the real work lies in creating the HTML/CSS/JS to make the UI look and work like you want, regardless of which templating engine etc. is used.