Trouble with device_tracker - SOLVED

I’m trying to configure a presence widget using the widget type device_tracker. My location information is coming from the HASS iOS app, which adds the appropriate entry into known_devices.yaml:

brian:
  hide_if_away: false
  name: Brian
  track: true

However, when I configure the widget like so:

brian_presence:
  title: Brian
  widget_type: device_tracker
  device: brian
  icon_on: fa-male
  icon_off: fa-male
  icon_style_active: "color: blue"
  widget_style: "font-size 125%"

I get an error on the dashboard: entity not found: device_tracker.brian

Am I missing something in my configuration here?

I’m running on a Pi 3 using hass.io, and do not have device_tracker defined anywhere in my configuration.yaml, per the iOS instructions for HASS here.

As an update to this:

I’ve also tried adding devices using the Life360 addon documented here, which does use device_tracker in configuration.yaml.

I do have device_tracker.brian showing in developer tools/states, yet still get the same error on the dashboard.

try to create a dashboard with a sensor widget with entity: device_tracker.brian and see if that works.
and please show your entire dashboard so we can figure it out.

I did try a sensor widget with the same name entity, and got the same error. I’ve included my dashboard file, and known_devices below:

The two widgets in question here are brian_presence and brian_sensor. On both of those, I get entity not found: device_tracker.brian

title: Kitchen Panel
widget_dimensions: [151, 140]
widget_size: [1, 1]
widget_margins: [8, 8]
columns: 8
global_parameters:
    use_comma: 0
    precision: 1
    use_hass_icon: 1

layout:
    - spacer, spacer, weather(2x2), brian_presence, brian_home, wendy_home, all_lights
    - lr_corner, loveseat_lamp, brian_sensor, spacer, spacer, front_door_lock
    - brians_corner, wendys_lamp, spacer, switch.porch_lights, spacer, spacer, spacer, garage_door_lock
    - 
    - load_main_panel, clock(2x1)

weather:
    widget_type: weather
    units: "°F"
    widget_style: "font-size: 125%"

brian_presence:
    title: Brian
    widget_type: device_tracker
    device: brian
    icon_on: fa-male
    icon_off: fa-male
    icon_style_active: "color: blue"
    widget_style: "font-size 125%"

brian_home:
    title: Brian
    widget_type: binary_sensor
    entity: binary_sensor.brian_home
    icon_on: fa-male
    icon_off : fa-male
    icon_style_active: "color: blue"
    widget_style: "font-size: 125%"

wendy_home:
    title: Wendy
    widget_type: binary_sensor
    entity: binary_sensor.wendy_home
    icon_on: fa-female
    icon_off: fa-female
    icon_style_active: "color: pink"
    widget_style: "font-size: 125%"

all_lights:
    title: All Lights
    widget_type: label
    title: All Lights
    widget_style: "font-size: 125%"

lr_corner: 
    title: Couch Lamp
    widget_type: light
    entity: light.lr_corner_lamp
    icon_on: mdi-lamp
    icon_off: mdi-lamp
    widget_style: "font-size: 125%"

loveseat_lamp:
    title: Loveseat Lamp
    widget_type: light
    entity: light.loveseat_lamp
    icon_on: mdi-lamp
    icon_off: mdi-lamp
    widget_style: "font-size: 125%"

brian_sensor:
    title: Brian
    widget_type: sensor
    entity: device_tracker.brian

front_door_lock:
    widget_type: lock
    entity: lock.front_door_lock
    title: Front Door
    icon_style_inactive: "color: green"
    widget_style: "font-size: 125%"

brians_corner:
    title: Brian's Lamp
    widget_type: light
    entity: light.corner_lamp
    icon_on: mdi-lamp
    icon_off: mdi-lamp
    widget_style: "font-size: 125%"

wendys_lamp:
    title: Wendy's Lamp
    widget_type: light
    entity: light.wendys_lamp
    icon_on: mdi-lamp
    icon_off: mdi-lamp
    widget_style: "font-size: 125%"

garage_door_lock:
    widget_type: lock
    entity: lock.garage_door_lock
    title: Garage Door
    icon_style_inactive: "color: green"
    widget_style: "font-size: 125%"

load_main_panel:
    widget_type: navigate
    title: Main Panel
    icon_active: fa-home
    icon_inactive: fa-home
    url: /MainPanel
    widget_style: "font-size 125%"

clock:
    widget_type: clock

known_devices.yaml:

brian:
  hide_if_away: false
  icon:
  mac:
  name: Brian
  picture:
  track: true
  vendor:

Screenshot of dashboard:

you do have it in your configuration from HA, but the device_tracker.brian doesnt seem to exist.
in the home assistant frontend you have developertools.
there is a states button there, look if you can find the device there and what its called.
only the entities that are shown in the list “current entities” can be used in the dashboard.

if i am correct then you need a macaddress for each device. so allthough you have that in your known devices, it still doesnt exist in HA.

It does show in there

did you try:

  1. clear the cash from your browser
  2. another browser on another device
  3. delete all files in the directories /conf/compiled/css /conf/compiled/html and /conf/compiled/javascript
  4. restart appdaemon
  5. restart the device that appdaemon is running on

Ok, I found my problem, which came to light after restarting my Pi. Since I installed and began configuring everything, I’ve updated to use SSL. However, I never changed my AppDaemon config to use https instead of http. Updated that, and now it shows everything properly.

Thanks for the help!

I noticed the icons you’re adding are “fd:male” where is that coming from? I thought all we had is “mdi:whatever”

Thank you! Did you have to do something to make these work?

Nope, it is built in to the dashboards. Just choose the icon you want, and prefix the name with “fa-”, just like the mdi icons.