You say this like a lot of the stuff you buy from Aussie shelves isn't bought in bulk from the exact same suppliers as Aliexpress. You just need to do the work to find reputable stores. If it's the cheapest price available, and the store has a bunch of random numbers in its name, pawbably give it a miss.
Stuff you buy from physical Aussie store shelves have been validated to meet our standards though. Doesn't stop me from buying plenty of stuff from AliExpress though
Edit: are you fucking serious guys. Look at recall reasons on any given site. See how many of them are for violations that would have been caught if they'd been vetted before hitting the shelves. Talking basic stuff like "choking hazard" or "child accessible coin battery" or in one case i saw "will self ignite"
The store will be liable for any and all damages to life and property which incurs from selling faulty products though.
There's significantly more risk when purchasing directly from a Chinese supplier. It's borderline impossible to hold a foreign company with no actual presence in your country accountable for damages.
I've bought heaps of 240VAC rated items from AliExpress and not had a problem. They're definitely cheaply made for the most part, and I generally give them a once over to identify any glaring issues... but I've got heaps of stuff out there working just fine.
Is it possible you got the wired mains to the low voltage side? I remember a box of LED drivers I bought came with the 240V side using red+black, and the low voltage side using brown+blue that looked awfully similar. Had one go pop before we busted it open and realised the version that came on the unit had the wiring colours the exact opposite. What made life even harder is that the top cover was symmetrical and had been put on back to front.... so 240V was on the "correct" colour side.
Third reply. Ok I can see the L and N and also the + and - symbols on the board. I'm currently having trouble remembering which way around I went. But I did pull the first one apart before connecting the second one. I'm "rather" sure I had it the correct way around.
Hmmmm. Yes quite possible I suppose. I didn't investigate any further. It's a love job and my second visit already. I thought it was going to be a simple swap over, but some of the existing lights were 240 v AC. That's when I told her to order the controllers, and then they came without 240 v plugs. So it was all annoying to be honest. She's going to Bunnings to buy new stuff.
I wonder if we can tell from the photo if it is indeed the wrong way around.
The insulation between the windings was probably non-existent.
Also... uh.. TO-263 packages are surface mount and likely require heat dissipation of some kind. There is a chance that heat sinking isn't required, but it's standard practice to at least ground the tab. (Using the package like that for quick at home projects is fine. Putting it in a production power supply like that is just silly.)
Throw the rest of those powes supplies you have directly in the bin. It's not worth the risk with those shitty transformers and that poor design. It would really suck if a failure mode sent mains voltage through what you are powering. (It needs a full teardown to say for certain though.)