! Skript to copy CO2 value into variable for Arbeitszimmer ! Name of System Variable CO2 value var sysVarName_1="Wetter-CO2-Arbeitszimmer"; !Name of Hm module var devName = "Zweiter Arbeitszimmer CO2 CO2:10"; ! If exist Systemvariable 1 then sysExist_1 contains the name of the variable else it is NULL var sysExist_1=dom.GetObject(ID_SYSTEM_VARIABLES).Get(sysVarName_1); ! If exist Devicename then devExist contains the name of the device else it is NULL var devExist=dom.GetObject(devName); ! Check is all three system variables and device exist? if (sysExist_1 && devExist) { ! Read state of channel 10 var readValue=devExist.State(); sysExist_1.State(readValue); }