Hi, I have made a RFID reader and is able to send message to the topic “RFID”. For example, once I scan my card, it will send {“name”: “Michael”} to topic “RFID”.
I would like to display the name in hassio by using persistent notification, so I added below lines into automations.yaml, but it does not display the specific name as expect, instead it just exactly displays {{value_json.name}} in message field. Appreciate if anyone can point the right direction, thanks!
- alias: RFID Notification
trigger:
platform: mqtt
topic: RFID
action:
service: persistent_notification.create
data:
notification_id: ‘1’
message: ‘{{value_json.name}}’
title: ‘Hello’