Help wanted with digital 220 VAC switch

Thanks already for the helpful comments. Thanks Paul__B for your strong warning. I guess I’ll have to start again.
More comments are welcome.