I am working on some custom widgets, implemented on HabPanel via the Template Widget. E.g. I have a “Network monitoring” widget, checking all my network devices like router, nas, etc. with the Network binding (pingdevice). Based on the state of the Item (On/Off) I want to show an custom icon (icon-on.svg / icon-off.svg). Putting the item in the switch widget an adding a custom icon in the custom ion picker works fine for me, but i dont now how to address the custom icon in the template widget.
This is the code using a standard item:
<widget-icon iconset="'smarthome-set'" icon="'power-button'" size="32" state="itemValue('Asus_device')" /></span> </button>
Now I want to replace that using the custom item…
Thx for help