Skip to content

Commit 204b183

Browse files
antsarballoob
authored andcommitted
Add icon to device_tracker; misc cleanup. (#2709)
- Add `icon` to `device_tracker` config documentation (see home-assistant/core#1237). - Remove gravatar from example because it makes no sense to configure gravatar *and* picture. - Fix default value for `track`.
1 parent be219c8 commit 204b183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_components/device_tracker.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ devicename:
6262
name: Friendly Name
6363
mac: EA:AA:55:E7:C6:94
6464
picture: https://home-assistant.io/images/favicon-192x192.png
65-
gravatar: test@example.com
6665
track: yes
6766
hide_if_away: no
6867
```
@@ -72,7 +71,8 @@ devicename:
7271
| `name` | Host name or "Unnamed Device" | The friendly name of the device |
7372
| `mac` | None | The MAC address of the device. Add this if you are using a network device tracker like Nmap or SNMP |
7473
| `picture` | None | A picture that you can use to easily identify the person or device. You can also save the image file in a folder "www" in the same location (can be obtained from developer tools) where you have your configuration.yaml file and just use `picture: /local/favicon-192x192.png`. |
74+
| `icon` | mdi:account | An icon for this device (use as an alternative to `picture`). |
7575
| `gravatar` | None | An email address for the device's owner. If provided, it will override `picture` |
76-
| `track` | False | If `yes`/`on`/`true` then the device will be tracked. Otherwise its location and state will not update |
76+
| `track` | [uses platform setting] | If `yes`/`on`/`true` then the device will be tracked. Otherwise its location and state will not update |
7777
| `hide_if_away` | False | If `yes`/`on`/`true` then the device will be hidden if it is not at home |
7878
| `consider_home` | [uses platform setting] | Allows you to override the global `consider_home` setting from the platform configuration on a per device level |

0 commit comments

Comments
 (0)