Vertaal iSpindel MQTT berichten naar Domoticz apparaten
switch (msg.topic) { case "ispindel/ispindel1/tilt": msg.payload = {"command":"udevice","idx":1035,"nvalue":0,"svalue":msg.payload}; break; case "ispindel/ispindel1/temperature": msg.payload = {"command":"udevice","idx":1030,"nvalue":0,"svalue":msg.payload}; break; case "ispindel/ispindel1/battery": msg.payload = {"command":"udevice","idx":1033,"nvalue":0,"svalue":msg.payload}; break; case "ispindel/ispindel1/gravity": msg.payload = {"command":"udevice","idx":1034,"nvalue":0,"svalue":msg.payload}; break; case "ispindel/ispindel1/RSSI": msg.payload = {"command":"udevice","idx":1037,"nvalue":0,"svalue":msg.payload}; break; } return msg;