Hi folks, I’m facing with a problem using the device_id
on tag_scanned
event.
The following config is valid and works fine:
- id: tag_scanned_test
alias: Tag scanned test
initial_state: true
mode: single
trigger:
platform: event
event_type: tag_scanned
event_data:
tag_id: da0e4742-ece7-41ff-b7f9-**********
action:
- service: script.turn_on
entity_id: script.cross_platform_notification
data:
variables:
title: "NFC tag scanned"
message: "NFC tag da0e4742-ece7-41ff-b7f9-********** attivato"
tag: nfc_notification_test
... but if use the device_id like the following:
- id: tag_scanned_test
alias: Tag scanned test
initial_state: true
mode: single
trigger:
platform: event
event_type: tag_scanned
event_data:
device_id: ************
tag_id: da0e4742-ece7-41ff-b7f9-**********
action:
- service: script.turn_on
entity_id: script.cross_platform_notification
data:
variables:
title: "NFC tag scanned"
message: "NFC tag da0e4742-ece7-41ff-b7f9-********** attivato"
tag: nfc_notification_test
The automation isn’t executed anymore, it seems that the device_id isn’t valid, but I check twice and also pasted the value generated from the mobile app.
So… what’s the problem?