Hello community,
I’m a long time reader of these forums, but this is my first post here.
I got Home Assistant Voice PE and I love it!
I would love to add NFC tag scan capability to it, for music playback initiation in Music Assistant.
For this purpose I did buy M5STACK RFID2 that has Grove connector.
I did try to add it using manual from here:
In script I did change sensor name for MFRC522_I2C , unfortunately that didn’t work since there must be some libraries missing to compile it
I would appreciate any help!
Unfortunately I can’t get pass this error when compiling:
Failed config
rc522_i2c: [source /config/esphome/home-assistant-voice-090ee2.yaml:12]
Too many candidates found for 'i2c_id' type 'i2c::I2CBus' Some are 'internal_i2c', 'grove_i2c'.
- address: 0x28
on_tag:
- then:
- homeassistant.tag_scanned:
tag: !lambda |-
return x;
update_interval: 1s
internal_i2c uses different pins (5 and 6), so this is unlikely to work.
Try asking in the esphome section why you’re getting the error Too many candidates found for 'i2c_id' type 'i2c::I2CBus' Some are 'internal_i2c', 'grove_i2c'.
And perhaps someone can suggest how to properly adapt the code from the example.
I think the issue was with the power supply. According to the instructions, you need to connect the package (step 2), which activates the switch, and the bus is already specified. All you have to do is program the sensor using the grove_i2c id.
This should work lot better than the one I built before using guide from Adonno to build tagreader:
It was very unstable for me … it worked some times, some times I needed to restart it to get it working…
Voice PE is very stable and I have not had any stability problems with it, so added NFC functionality should work very stable too