As above, on Alexis ROM S8. Everything works except the Airplane toggle action. Thanks in advance for your help!
Use the macro Shell Script with rooted mode and add these two commands:
settings put global airplane_mode_on 1 am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
Source: this answer from DavisNT on Stack Overflow.