The behaviour you describe on the Xiaomi Intelligent Humidifier 2 (switching off after <30 minutes + flashing orange light) is a fairly typical symptom. The most common causes are these:
1. Tank not correctly positioned
This model has a level sensor/magnetic sensor: if the reservoir is not inserted perfectly, the humidifier will run for a short time and then switch off.
Solution:
Remove the tank
Clean it and reposition it carefully until you feel it 'latch'.
Check that it is firmly seated on the base
2. Water level sensor blocked or dirty
If the sensor fails to detect water, the orange light flashes.
Solution:
Remove water
Clean the tank, float (if present) and sensor compartment
Fill it with clean water (preferably filtered water)
3. Scale or deposit in the ultrasonic module
A dirty ultrasonic disc can cause the device to fail after a few minutes.
Solution:
Empty the humidifier
Clean the metal disc with white vinegar + cotton wool
Rinse well
4. Safety mode / overheating protection
If it detects a lack of water or a problem in the flow, it goes into protection.