You may be able to just short out the fan switch if you cannot leave it permanently on and do the control via the smart switch and automation.
The teardown video (I didn’t watch it, but saw the description on YouBoob) may offer hints as the description says there are five fan windings, which a simple multiway relay board may be able to substitute or bypass. See https://m.youtube.com/watch?v=H_hTMvJWfVY for ideas. Your other option is to get a smart unit that already has HomeAssistant connectivity without going down the reverse engineering/ redesign path.
Is passive cooling, using the principles of hot air rising, leaving the doors open and windows closed for airflow, and a wind driven turbine exhaust fan in the ceiling a cheaper alternative? See ‘whirlybird fan’ as well as ‘coolgardie safe’ in your Google search for how my Aussie mates in the OutBack do it, where a 50°C day may get a rare ‘bit warm mate’ comment at the pub as you down the icy schooners after rounding up the cattle with a quad-bike or helicopter all day.
Some middle eastern monasteries are passively cooled by well designed air flow chimneys. Many videos on offer to give you ideas, some which can be retrofitted to existing buildings.
Solar powered fans where the more sunlight, the faster the fan spins is another option.
Reverse cycle air-conditioning combined with zone valves may end up as being your only choice, depending on humidity levels and your ongoing power supply generation and consumption approaches.
Geothermal heating/cooling, relying on the earth temperature being a constant 18°C or thereabouts a few metres underground may also be an option to consider longer term, particularly if the current bout of warm weather may return again more regularly, the weather cycles being 1 (duh!), 3, 7, 10, 50 100 and millennia in cycles, sometimes coinciding to peak.
What color and material is your roof? Reflective and pale can make a significant difference. Is your roofspace a stagnant hotbed of hot air? Let it out with a well placed vent. Can you shade the building from the midday sun by planting trees and creepers?
Befriend your local carpet cleaner or hire a horizontal turbine fan similar to what is used for wet carpet situations where high airflow is used to dry out large water spills on carpet. Allow for hot air exit however, otherwise you have a self perpetuating cauldron.
I was going to wish you warmest regards, but best wishes may be cooler… 