Hello guys, im working on a project for my house where my stairs are lighted up with ws2812B strips controlled by an Alphapix V4. My goal is to have 2 pir motion sensors HC-SR501 integrated in this project. 1 sensor should be upstairs and the other downstairs. I need your help with a script to disable a gpio and another one to enable it again.

Bottom line heres what i want to do

when motion "A" is triggered it will start a playlist just like this
1- Script to disable motion "B" gpio (pin 11 GPIO 17)
2- Start sequence
(After sequence ends then proceed to step 3)
3- script to enable motion "B" gpio (pin 11 GPIO 17)

when motion "B" is triggered it will start a playlist just like this
1- Script to disable motion "A" gpio (pin 12 GPIO 18)
2- Start sequence
(After sequence ends then proceed to step 3)
3- script to enable motion "A" gpio (pin 12 GPIO 18)

Any help will be appreciated. Thanks!
Modify message