Hello,
support for multiple rdm6300 was recently added and i just tried and it works like a charm.
But now i have the problem all tags have the same device identifier.
Is it possible to get home assistant to identify from which reader the tag was scanned using api?
Or somehow get another id for second reader?
Here is what ha shows:
event_type: tag_scanned
data:
tag_id: "123456789"
device_id: 123456789012345678901234567
origin: LOCAL
time_fired: "2022-11-08T09:19:58.115206+00:00"
context:
id: 123456789012345678901234567
parent_id: null
user_id: null
thanks christian
Hoi, I add a name after the lambda string, font door, back door, or something else. I spit it in a script.
rdm6300:
- id: rdm1
uart_id: uart_1
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return to_string(x)+"front door";'
I created a post to show how I managed to get this to work. I’m replying and linking it here because I found this thread when trying to figure it out.
Hi folks. I’d like to share this in the hope that it helps someone.
I found bits and pieces online in this forum, the ESPHome Discord and even the GitHub PR where multiple device support for RDM6300 devices was added, but no complete examples. Here is mine.
I am still very new to ESPHome, so if you spot anything I can improve, please reply to let me know how. If it helps you, that’s great.
1 x ESP32
2 x RDM6300 RFID readers - one on pin 16, one on pin 17
ESPHome code - the relevant parts:
#…