This is exactly what i do with an older iPad. It’s running HASS. The smart switch* is turned off when charge is over 80%, and on when charge drops below 30%. It’s been like this for 4 years. No issues. And I’ve been logging every on/off cycle. Some day I’ll check to see how it’s changed over the years.