Add Tag entities (#32193)

* Tag entities

* Tiny tweaks

* tag entity

* wording

* Fixes

* Fix

* Update source/_integrations/tag.markdown

* Update source/_integrations/tag.markdown

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
G Johansson 2024-06-03 11:54:29 +02:00 committed by GitHub
parent c633ee08d8
commit d0d222c6cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@ ha_codeowners:
- '@dmulcahey'
ha_domain: tag
ha_quality_scale: internal
ha_platforms:
- event
ha_integration_type: integration
---
@ -39,6 +41,17 @@ Home Assistant has a dedicated panel that allows you to manage your tags. You ca
![Tag user interface in Home Assistant](/images/blog/2020-09-15-home-assistant-tags/tag-ui.gif)
## Entities
Every card automatically creates an `tag` entity. This is useful for automations or for displaying on dashboards to see when the card was last scanned.
State shows the time when the card was last scanned in datetime string format. For example, `2013-09-17T07:32:51.095+00:00`
### Attributes
- **Tag ID**: identification as set during creation of the tag.
- **Last scanned by device ID**: Which device did scan the tag last time, useful in automations for doing different things depending on which device scanned the tag.
## Building an RFID jukebox
One of the most fun applications of tags is to pick music in your living room. To make this super easy, you can use the below automation: