I'm working on there exact path since a few months to make this process feel magical to people who can run Home Assistant, but rf capture and replay is too technical. I'm using evilcrow-rf for it and goal is to provide trivial setup flow so that copying rf remotes feels easier than signing up with the company you bought your device from. Hopefully I'll be able to do a show hn in near future.
There's an app called Baby Connect to do same things, but for human babies. Among the ones we tried, we liked it the most. It includes ability to add another person, and then it syncs data with them (the feature i liked most). Perhaps that app might serve a good set of inspirations.
I can also imagine creating PDF report between user-given dates that people might need when visiting vet, or emailing them.
I do it using https://gist.github.com/meowtochondria/8b99b8fbf364eec41ef66... on my Debian based machine running X11. I've bound this script to a key as a global shortcut using OS provided facilities. See the comment on gist if you have a different setup and want to adapt it to your needs.
Algo:
1. Find path to wezterm binary by looking at desktop file
2. Use pgrep to get pid of running binary from previous step.
3. If no window is running, launch desktop file using gio
4. If window is running, bring it to front using wmctrl