Skip to content

Latest commit

 

History

History
123 lines (101 loc) · 2.64 KB

custom_card_vncntdev_device_tracer.md

File metadata and controls

123 lines (101 loc) · 2.64 KB
title hide
Device Tracker Custom-card
toc

Custom-card "Device Tracker (Online or Offline ?)"

This card indicated whether a given device is online or offline using the Home Assistant device_tracker or the WoL-integration.

Preview
Turn on you device with WoL:
WoL Preview

Credits

Author: vncnt.dev - 2021 Version: 1.0.0

Changelog

1.1.1 Fix for UI Minimalist v1.0.1.
1.1.0 Support WoL
1.0.0 Initial release

Usage

- 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"

Requirements

Setup the device tracker integration

if you want to use WoL: Setup WoL integration

Variables

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)"

Template code

??? note "Template Code"

```yaml title="vncntdev_card_device_tracer.yaml"
--8<-- "custom_cards/custom_card_vncntdev_device_tracer/vncntdev_card_device_tracer.yaml"
```

Note