Here you will find all the information about the configuration of the Event topic and the scritp that will get the motion detection from the shelly device. Topic Event shellies/shellymotion2-8CF681A54082/status Script var data= JSON.parse(payload); return data.motion == false ? "0" : "1";