Device_tracker icon template wont show

HI,

Using this template the icon is set:

device_tracker.xboxone_wifi:
  templates:
    theme: >
      if (state === 'home') return 'green'; else return null;
    _stateDisplay: if (state === 'home') return 'Online'; else return 'Offline';
    icon_template: if (state === 'not_home') return 'mdi:wifi-off'; else return 'mdi:xbox'

more-info shows icon-template is working correctly, the icon is not changed though:

02

what am i doing wrong?

in known_devices.yaml, i’ve left the icon: empty, if take that out completely no icon shows at all.

57

Cheers,
Marius