4 Jan 2021, 17:34

@Termina

on({id: "enigma2.0.enigma2.CHANNEL_SERVICEREFERENCE_NAME", change: "ne"}, function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  if ((obj.state ? obj.state.val : "") == (obj.state ? obj.state.val : "").indexOf('__')) {
    setState("Object ID", ((obj.state ? obj.state.val : "").slice(0, (obj.state ? obj.state.val : "").indexOf('__'))));
  } else {
    setState("Object ID", (obj.state ? obj.state.val : ""));
  }
});

für "Object ID" musst du den zu beschreibenden Datenpunkt angeben.