Here you can find the shelly 2.5 topic configuration. topic Responce Topic:shellies/shellyswitch25-40F520175F0B/relay/0/status Script: var data = JSON.parse(payload); return data.ison ? 1 : 0; Topic Write Topic: shellies/shellyswitch25-40F520175F0B/relay/0/command Script: return payload == 0 ? "off" : "on"; Topic Event Topic: shellies/shellyswitch25-40F520175F0B/relay/0 Scritp: return payload == "off" ? 0 : 1;