So the difficulty is that the wide voltage range appears on a single input.
Many AC-DC switching power supplies will work with a DC input since these begin with a rectifier. Here's one that is specified to work over 70-430V DC, it's pretty cheap, and it has 5-8-12-24V versions. Most of the brick style AC-DC supplies are specified to start working at 85VAC, so they will have a minimum DC input of 120V.
Since your solar panels feed batteries, and these should offer DC above 200V, simply power the thing from the DC batteries with one of the 5V supplies listed above. This is the simplest option.
Use a 9-12V PB0-5C AC-DC supply, which starts to run at 70VDC, to charge a small battery 9-12V pack. From that, use a buck to make 5V. This counts on the fact that your solar panels will deliver more than 70V at least once a day to recharge the small battery. It will work even if the main solar battery is offline, which would be useful if the thing's job is to monitor the battery and alert if it fails. It will also work during the night.
- option 3, what you actually asked
The same PB0-5C AC-DC supply in 5V version, to power the device directly. Before it, a boost converter to raise input voltage from 30V to 75V if it is below that. When input voltage is above 75V, the boost converter does nothing, it's just a diode. However the boost MOSFET should withstand the maximum DC voltage plus safety margin. This would have lowest efficiency when lowest input power is available, but it's not too complicated.
High voltage buck 200V to 36V, then a readymade 36V to 5V buck which is easy to find.
The problem with this one is the first buck, which can't be bought off the shelf, so it'll have to be designed. It could be replaced with a linear regulator, which will dissipate a lot, about 6W, at max. input voltage.
Two-way:
- 70-430V to 24V SMPS
- 36V to 5V buck that is powered either from the above 24V SMPS, or from a 75-200V to 36V linear regulator that is only turned on when the output of the SMPS is not available.
If you don't want to design a switching converter, that's the simplest option.
In fact, I just found a few 5V bucks with 72V maximum input voltage, so let's go with that.
When input voltage is above 75V, the "AC-DC" block in the bottom left is active and outputs 24V. This turns on Q1 which turns off M1, and the output buck receives 23.4V input and produces 5V.
When input voltage is too low for the AC-DC brick to work, Q1 turns off, with turns on M1, which limits its source voltage to say 65V to power the buck.