Onkyo Virtual Device shows up as Device Type Switch in Google Home

I would be surprised if you could get the source code, but someone has implemented another Google Home app to deal with this type of issue. You should be able to find a link in the community...