adonno / tagreader

Simple to build/use NFC tag reader, specially created for Home Assistant
https://adonno.com
GNU General Public License v3.0
1.18k stars 185 forks source link

Mqtt instead of homeassistant API #81

Open malesci opened 3 years ago

malesci commented 3 years ago

Thank you for this project. Is It possibile use mqtt instead of homeassistant API? Can you provide an example in case? Thank you

mpmoeller commented 3 years ago

Hi @malesci, I just started putting the parts together, but looking at the documentation it seems possible, see: https://esphome.io/components/mqtt.html

Still, the ESPHome folks have some points why to prefer the native API, see: https://esphome.io/components/api.html (close to the end)

Good luck, Martin

Noschvie commented 3 years ago

@mpmoeller : martin, did you get MQTT running ? Maybe you can share your config ? Thanks!

mpmoeller commented 3 years ago

@Noschvie - nope. I accidentally destroyed my reader, so I didn't look into that topic for a while.

Noschvie commented 3 years ago

Has anybody a valid MQTT client config to send the scanned value ? Thanks!

adonno commented 3 years ago

wanted to look into it but haven't had time yet will do so as soon as I have some time on my hands

adonno commented 2 years ago

Can you try this one ?

https://github.com/adonno/tagreader/pull/164/files