Dynamic background color in Habpanel?

Yes, this is the exact scenario I was working on. I created 2 custom widgets, 1 for single doors/windows, and 1 for groups of items. If door/window in the group is open, the color changes to red.

Attached are the widgets. Within the widget settings you can pick the open and closed colors, and icon. It assumes the standard icons, so if you type “window” for the icon setting, it will use the icons window-open and window-closed depending on the state. I also have an icon size setting as I use the same widgets on a table and a phone, and for the phone I needed smaller image sizes.

door-window.widget.json (1.4 KB)
door-window-group.widget.json (1.4 KB)

Here are some screen shots. The first screen are the group

4 Likes