Device_tracker on map: change icon based on state

Hi at all.
I 've a map card showing my device tracker (device_tracker.fra)
Into the know_devices section in my configuration.yaml i’ve the following code…

fra:
  name: fra
  mac:
  icon:
  picture: /local/fra.png
  track: true

How could I change my device_tracker.fra icon - into the map - based on state home or not_home??

Thanks a lot.