title | hide | |
---|---|---|
Device Tracker Custom-card |
|
This card indicated whether a given device is online or offline using the Home Assistant device_tracker or the WoL-integration.
Author: vncnt.dev - 2021 Version: 1.0.0
1.1.1
Fix for UI Minimalist v1.0.1.1.1.0
Support WoL1.0.0
Initial release- type: "custom:button-card"
template: "custom_card_vncntdev_device_tracker"
entity: switch.pc
variables:
custom_card_vncntdev_device_tracker_icon: mdi:desktop-mac
custom_card_vncntdev_device_tracker_name: "PC"
custom_card_vncntdev_device_tracker_status_as_name: true
- type: "custom:button-card"
template: "custom_card_vncntdev_device_tracker"
entity: device_tracker.raspberry4
variables:
custom_card_vncntdev_device_tracker_name: "Raspberry Pi 4"
Setup the device tracker integration
if you want to use WoL: Setup WoL integration
Variable | Example | Required | Explanation |
---|---|---|---|
entity | device_tracker.pc | true | Icon of the Card |
custom_card_vncntdev_device_tracker_name | "PC" | false | Custom name of device default: friendly name of device tracer |
custom_card_vncntdev_device_tracker_status_as_name | true | true | swap label and name? default: false default: "mdi:server" |
custom_card_vncntdev_device_tracker_icon | mdi:desktop-mac | false | Icon of the Card default: "mdi:server" |
custom_card_vncntdev_device_tracker_color_online | "var(--google-green)" | false | Color of icon if device is online default: "var(--google-green)" |
custom_card_vncntdev_device_tracker_color_offline | "var(--google-red)" | false | Color of icon if offline default: "var(--google-red)" |
??? note "Template Code"
```yaml title="vncntdev_card_device_tracer.yaml"
--8<-- "custom_cards/custom_card_vncntdev_device_tracer/vncntdev_card_device_tracer.yaml"
```