Configuring Ping for multiple devices

I have a bunch of devices that I want to monitor using the ping integration (and later connect it to history_stats to get availability figures). Is there a way to automate the process? If I understand correctly, it is no more possible to use configuration.yaml for that, and the only way to do it is through the GUI, which may be very tedious for 50+ devices. I do have a list of device and IP address and I’m looking for a way to convert this list into configuration entries.