Ceiling fan with RF433

Maybe with a Broadlink RM4 it’s possible.
Or if you can write an app for it yourself: