I created a shortcut on IOS for NFC Tag to fire event (home assistant) with data
{}
however every time I’m trying to scan the tag I have
Automation failed
“When “nfc_tag_1 is detected” encountered an error:
Could Not Run Fire Event
An unknown error occurred.
my automation in home assistant
alias: New Automation
description: ‘’
trigger:
- event_data: {}
event_type: nfc_tag_1
platform: event
condition: []
action:
- service: light.turn_on
data:
entity_id: light.our_room
mode: single
VPC
April 30, 2021, 5:56pm
2
I did mine in the automation ui. When I view it in yaml mode it looks like it uses platform: tag
In the ui editor you get to pick the friendly name of the tag. In the yaml though it looks like it needs the guid / longer id
Here is mine
alias: Tag tag_001 Scanned
description: ''
trigger:
- platform: tag
tag_id: 8a9fe085-cb02-4f50-a1b1-945a837d49f6
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.alarmo
state: disarmed
action:
1 Like
I initially tried something like this, just tried again but nothing seems to happen
alias: Tag tag_001 Scanned
description: ‘’
trigger:
platform: tag
tag_id: acea25f0-9126-4801-bcd7-8ad047b6f22c
action:
service: light.turn_off
target:
device_id: 75df40ce0b4c57844dffe2a2ac55e
mode: single
(if run the action, the action is running but nothing happen with the trigger)
EDIT : I wonder if this have to do with CloudFlare access blocking access to HA