How do I know if a certain non listed Leviton Switch will work?

Search forums for Leviton Wifi, first hit finds this thread:

Leviton wifi switches & dimmers - #11 by tomw

This is what you need from there: GitHub - tomwpublic/hubitat_myLeviton