There is a possibility that your relay is one of those that activates on a LOW and deactivates on a HIGH?
Also here are some basics that I think are how the eventor choices work…
Using set pin to allows a range of numbers, as in PWM, so 0 is “ON” for your relay, but so is 1… and probably anything up to around 512… at which time there might be enough change to trip the breaker… use 1023 instead and that would set the pin fully HIGH or “OFF” for your relay.
Or just use the easier option and use turn ON pin and turn OFF pin but switch the lojic so that ON for the pin may meen OFF for the relay and vice versa.