How to obtain the type of the connected device?

  1. It doesn't ship with Openwrt, I wrote that
  2. Your device isn't running Openwrt, I wrote that too

To sum it up; I have no idea.

But since your doing a DIY router, you can probably figure it out.
The file pihole uses is called macvendor.db, on OS level.