I am trying to switch svg icons depending on the status of the msg properties. I want to make use of UI template, but unsure of how to select the svg icons based on input.
Its mostly for home automation with icons showing door opened or door closed.
SVG door open
any examples to see how to proceed.
also if i need to keep the .svg files on the pi3, where exactly would be the location?