Hello, the DIs are max 24V DC only! Anything else will damage your UniPi. So you would need eg a external relay that will be switched by the 230V and will switch the 12/24V DC which will go to the digital input.