HABpanel template updates not working?

Trying out making my own widgets in habpanel, but I have a few questions. First of all, it seems as if a item value changes, my widget is not updated. My first simple widget is defined as this:


I see in the log that the item state is changed, but the widget is not changed until I reload the page.

I also wonder if it is possible to show different texts instead of ON/OFF in a widget, for instance ONLINE/OFFLINE in my case?

About your first issue, it should update - check the developer console with F12 and follow these instructions here: Should Habpanel refresh? to verify the update event is received.