Hey everyone, I wanted to share my experience with customizing time displays in OpenHAB. I’ve been working on a countdown timer project and ran into an interesting challenge with formatting the Number:Time item. Initially, I managed to get the time display working, but when I tried integrating it into a HABPanel widget, the format didn’t carry over as expected.
Here’s what I did to resolve it. First, I realized that the widget wasn’t interpreting the time format correctly. I decided to tweak the widget’s styling by adding a bit of custom CSS and using JavaScript to ensure the time displays in HH:mm:SS format. It was a bit of trial and error, but it worked out!
I’d love to hear if anyone else has tips or tricks for formatting time displays or customizing widgets. It’s always great to learn new approaches and maybe even discover some shortcuts I haven’t thought of yet. Happy coding! ![]()