Looking for an alternative for JQ1P-B-24V. You can look at DigiKey part number Z222-ND . The Omron part number is G5Q-1 DC24 located on this link: https://www.digikey.com/en/products/detail/omron-electronics-inc-emc-div/G5Q-1-DC24/355240
Please review the data sheet.