I create a combination between a motion sensor and single relay and a staircase to control a lamp. I would like to create a trigger if the motion on then the relay change state (not turn on or off like they are doing).
What do you mean by change state? Isn’t changing state the same thing as turning on or off? Sorry if I’m not understanding what you were trying to say!