Node up/dow weathermap

I’m using wthermap with librenms plus the map I can’t make the device switch from UP to dow when it’s OFF follow my example

the goal is for the icon to change using the images in the database.

//createw fping map

SCALE fpingupdown 0 0.1 0 255 0 down
SCALE fpingupdown 0.1 99.9 255 255 0 recovering
SCALE fpingupdown 99.9 100 255 0 0 up

TEMPLATE-only NODEs:

NODE label-change
LABEL 10.0.2.123
ICON images/Router.png
TARGET fping:10.0.2.123
USESCALE fpingupdown out percent

NODE icon-change
LABEL 10.0.2.123
ICON images/Router_{node:this:inscaletag}.gif
TARGET fping:10.0.2.123
USESCALE fpingupdown out percent

NODE icon-scale
LABEL 10.0.2.123
ICON images/Router.png //grey
TARGET fping:10.0.2.123
USEICONSCALE fpingupdown out percent