This is a little ‘out there’ and may or may not be possible… maybe someone’s done it… but might it be possible to have scenes or functions in HA that can enable or disable Ethernet ports on a managed switch? In my case, I have a Procurve switch that I can of course log in to and enable and disable ports, but it would be nice to be able to enable and disable them with a tap in HA, or maybe even on a schedule. Might this be possible?
If there is no third party integration for your managed switch (use Google to search for “home assistant <your switch make>”) you could use this: