add control of relay at /state/change