#tags-archived
1 messages · Page 3 of 1
you don't have to be good at yaml you can view an automation as yaml using the dots in the top right corner and then show it
Oh, cool! Thank you!
and that's exactly how you can go back to the interface
in yaml we can see the errors better
i didn't know that! Definitely need to put more time into yaml then. I have a basic understanding but i want to get better. I only started even looking at home assistant a week ago, but i've already figured out quite a bit! I'm excited at the possibilities of the platform
Anyone ever had the issue with tags being really unresponsive? I've one setup to disable my alarm and when I scan it when I come home it takes ages to process, most times not even successfully processing
Which OS are you on?
Raspbian but running container
I get a "tag type not supported"
Samsung Galaxy A5 Android 6.01, with latest ha comp
😫
Does anyone have an example automation using a RFID tag?
I'd like to create an automation to notify me when a tag gets added to the Tags list for the first time.
What trigger could I use for this ?
nfc tags are the stickers right ? these can be programmed to connect to wifi network right ?
nfc tag can be programmed by phone right ?
nfc tags can be more than only stickers
they can be programmed by phones usually
and there are software that can write wifi setting to the tags
The NFC tags themselves do not connect to wifi, they can have wifi connection details (SSID & passwordà written into the tag. Allowing a phone to read the connection details and log on to the wifi network.
Can an automation read the Tag Name as entered in the Tags Manager screen ?
Use the tag scanned event. Chekc the example here https://www.home-assistant.io/integrations/tag/
there's no mention of what I was asking about.
trigger:
platform: event
event_type: tag_scanned
condition: # Test that we support this device and tag - "{{ trigger.event.data.tag_id in tags }}" - "{{ trigger.event.data.device_id in media_players }}"
Remove that condition. But use that template to get the tag ID and the device id
So what I am saying is that trigger.event.data.tag_id will give you the tag that was scanned. You can use that in the action. Same for the device_id
I was asking about the Tag Name as entered in the Tags Manager screen , you're offering me the tag id which is the number stored in the chip.
don't see any helper to retrieve the tag_name associated with tag_id. but tag_id stored against the tag_name is unique, you can use that in automation - otherwise whats your use case you are trying to achieve?
I'm trying to see if the id was edited/named in Tag Mgr , which would mean that the tag has been vetted by someone.
As opposed to a tag that was not named, and is then most likely a new, not yet vetted, tag.
I could add the known tags to a variable, and check against that array...but then I'm just creating a 2nd Tag Manager in fact.
well looks like you might just have to do that. The tag id to tagname is indeed stored in the HA storage, just that there is no direct way. There is a feature request raised. follow this thread https://community.home-assistant.io/t/rfid-tag-name-from-id-in-template/332061
okay, thx for your input; I never discovered that thread.
i think you could also write a App daemon script and check for history - not sure if the event of the tag name change is registered. If it is then you could use that a database to compare against any new tag scan
is there a way to lower the volume of @gleaming bay’s tag reader’s buzzer or remove the sound completely?
On scan
But I can appreciate the confirmation of the scan but I intend to scan 175 cards during the weekend and I might go insane 🙂
Wht do you mean?
@novel tendon in HA , go to integrations, then go to , esphome find tagreader
It has a switch for the buzzer
I found it. I thought I had disabled the buzzer but I disabled the entity instead. Now it is silent 🙂
Thanks!
Sorry for the late reply didn‘t get a notification
No worries at all
Morning all, noob question but is there a script or a way to use a usb tag reader with a RPI and work the same as when scanning tags on mobile devices and the standalone esphome card reader. i plan to build some of the esphome readers when my PN532 modules arrive but i have a whole bunch of usb readers and would like to be able to use them.
Is there a way to use the rest API to trigger ?
was wondering , can I disable/enable HA alarm with the help of an NFC tag with 3d printed shell outside of my home ?
using HA app as NFC scanner...
bought myself some nfc stickers, are these things re-writeable ?
possible to write an service call to it , and connect to wifi user/pass bit ?
you probably could but need to be on the network already and connected to HA with the app for it to work
actually want 2 bits on an nfc tag , the wifi credentials so android IOS phones can connect to my guest network, and a unique id for HA to service call enable guest network, if this is possible...?
Is it secure to have a NFC tag place outside the front door, so when my mobile phone is place in front of it opens the front door lock? - if yes, which is the most secure way of integrating it?
you need the home assistant app and a connection with your server to use the nfc tag
it should be save
okay. so for "intruders" trying to gain acces to the tag, the will have to login with my credentials etc, in order to activate the action "stored" on the tag? @ionic hare
okay thanks
have an automation for when scanning a tag it should disarm alarm system , but nothing happens ?
https://pastebin.ubuntu.com/p/M8J35gd3Xv/
prob was conditions 😛
any way to remove tags entirely from my instance? I removed default_config: and tag: but no dice.
Hi, I have a question about rfid scanning. It is possible that each scanner is able to scan card and get different value?
I have Nexus 7 tablet with NFC and I bought new RFID scanner RC522 and connected it through esp8266 with esphome.
Everything works (I see scanned tag events in home assistant) but if I use card on the tabled it will load my custom tag id (which I configured in home assistant via Nexus 7 tablet, for example one of my custom tag id is "music-playlist-car") but if I scan the same card with RC522 I will get scanned tag id "04-77-42-EC-C9-73-1F".
Is this somehow expected behavior and those custom tag ids are somehow mapped only for Nexus 7 because I use it to write it by Nexus 7 tablet?
(The card hasn't been overwritten, I tested it again on Nexus 7 tablet and it loaded the tag id "music-playlist-car")
Does it mean that the companion app on Nexus 7 is translating loaded NFC card to the custom tag id or am I missing something? 🤔
link on esphome https://esphome.io/components/binary_sensor/rc522.html
I used this on tag event action
- homeassistant.tag_scanned: !lambda 'return x;'
have a look at my tag Reader project github.com/adonno/tagreader replace PN532 with RC522 component
Thanks I will check it later today. I guess it could be something with the hass tags which you have in the lambda function
@gleaming bay oh I see pn532 have some section about ndef reading
https://esphome.io/components/binary_sensor/pn532.html#ndef-reading
my rc522 doesn't have this section mention in esphome documentation, so I guess this is the thing I was missing, I will check if it is supported
https://esphome.io/components/binary_sensor/rc522.html
thanks for help 🙂
Can anyone help me?
If i add an nfc tag it never gets saved and it just resets.
Anyone here running nfc tags to control media playback through automations?
Specifically interested in getting Netflix to work 🙂
Hi Everyone, Anyone know how to identify which device a tag was scanned on. For example using multiple tag scanners on different doors to use as security tags?
Don’t think netflix works
What’s the best way to read NFC cards/ tags and respond appropriately in HA. Not using the mobile apps but external cards
What do you mean?
Adonno has card readers for sale. I use one
how do you get HA to read it
It’s connected via wifi so when I can a card, it shows up in my tag section
Currently I use it for music (magic cards) but will repurpose it for my wine cellar somehow
Do you know a way without having to get a wifi card reader? Like using a Pi or something
Buy a cheap module and connect it to an ESP board. https://esphome.io/components/binary_sensor/pn532.html
Awesome thanks
If you watch tag_scanned, in the developer event scanner, you will see that each device for each door reader has data.device_id, which you can use in a condition for trigger.event.data.device_id.
I've got a number of HID Signo and basic RFID readers hooked to esphome devices with some custom lambda code that handles security for all my work doors. I should compile this all and put on the HA community.
Great thanks I will give it a go
I need to sanitize my YAML of any specific information before I post that, but using YAML variables in the automation make this a lot easier.
condition:
- "{{ trigger.event.data.tag_id|length > 6 }}"
- "{{ trigger.event.data.device_id in readers }}"
variables:
readers:
1deadbeef3:
id: 1_north_door
friendly_name: 1 North Door
a10c0ffeee:
id: 1_south_door
friendly_name: 1 South Door
Hello, I've looked for on old messages and I think this has not been asked.
I have some old bank cards laying around and today It came to my mind.
Could they be used with the companion app as a NFC tags? 🤔
I try to scan them even with the HA app open and the phone shoes a message saying there is no app related with that NFC tag. (I use an Android btw)
the problem will be that the home assistant companion app has to write on the tags
if i'm wrong please correct me
I think the old bank cards are write-protected
yes, you can write the id in the tag, although it looks like you can also create a tag in HA and set the id that you want. Setting the Id manually is how I think this could be done
If you're on iOS, the Shortcuts app just reads the ID so that can be used to trigger automations from any NFC card without modifying it
are there technical differences I should be aware of and consider when buying NFC tags? Afaik tags are just tags, right? I should be safe grabbing the super cheep but most sold ones from Aliexpress?
(I think the only real difference would be the physical specs? size, how rugged and waterproof, colors etc?)
I use android, and I have an app call NFC tools, which reads the bank card correctly. Although from all the info in there I don't know which is the correct to put in Home Assistant.
There is a serial number which is an hexadecimal like this XX:XX:XX:XX
Also even if I have the HA app open when I try to read a card the phone shows a message saying that there is no compatible app with this NFC tag
Try asking in #android-archived
@plush rain I had the same question (similar, actually, I wanted to use Disney Infinity Figurines), posted a suggestion a while ago (https://community.home-assistant.io/t/android-app-expand-tag-support/408921) and was turned down :[
I still fail to see the reason, though.
you can use tasker to read the tags and use webhooks
hum. so, basically, chinese whispers. and using an app i wouldn't use otherwise. :[
Hi guys, I'm new here. I had a look on the old messages but I didn't found anything. I know how to add a NFC tag on HA, and how to pair with a light, switch.... but actually I want to open the garage door when somebody (me, my father, etc..) scans it, but with previous authentication of course. Is it possible? thank you all the community
When you pair the new NFC tag, you should be able to select your garage door entity (similar to how you've selected your lights previously)
I'm wondering about using NFCs to toggle a given automation. Like if I have an automation to automatically turn on the bedroom light at 6:00 AM for day shifts, but want to turn that automation off when I'm done my stretch of days, is there a way to use a tag to do that? So far I haven't seen anything obvious, but I'm hoping there's a reasonably simple solution 🙂
Thanks!
Your stretch of days ?
An automation can toggle another automation you can do an automation upon reading your tag that toggles another automation
yeah like if I work 3 twelve-hour day shifts.
Is the automation stored as an entity? I didn't see a way to automate toggling an automation; that's exactly what I'm looking for!
Look for
Call service
Automation.toggle
Thank you!
How can I create a QR Code from a NFC Tag? I cannot find an option in the Android App..
Oh just realized the QR Code is already showed when editing the Tag.. But now I scanned it with my Android Phone and it sends me to the Website instead of the App..
So, what's the correct solution to getting the 'card name' when scanning a tag?
I can't find the documentation on how to use the 'card name' in any meaningful way.
I have a stupid question
Can different scanned cards on the same reader output two (or more) different actions, e.g. play music and turn off all the lights?
Are tags secure? Does it do any authentication?
or can anyone scan it and run stuff?
tags only contain an identifier. the device reading the tag has the credentials and home assistant connection information.
Yes, a tag can be used to trigger an automation in HA and inside that automation you can add as many actions as you'd like.
Thanks!
HI all,
I have multiple tag readers withing the house.
I would want to link a tag reader with the media player. For instance I have a media player in the living room and tag reader in living room. I want, whenever that particular tag reader is used the media to go to the living room.
Each room where there is a media player would have its onw tag reader.
So I need a way to associate tag reader with the media players.
Does anyone knows how to achieve this.
Currently I am using Node-RED for my Jukebox.
Any help would be appreciated.
Thanks in advance
Will you use the same cards? I think you can use several versions of the same automation
I use it mostly that way. I set up the automation in the living room at first, sen copied it and changed to media player for each specific room
Yes I would use the same card. My kid has it's own playlists and then when she is in living room she use the same card as in her own room on different media players
Then just copy the automation and change the respective media player entity
Hmmm, I just don't know how to determine when tag is scanned what device it was scanned
The tag_scanned event has a device_id value. You could use this to determine where to play the media.