I just posted this in another thread. While it’s aimed at zigbee, I’m sure you’ll be able to use it for any device