! Skript to copy air pressure value into variable for Arbeitszimmer ! Name of System Variable air pressure value var sysVarName_1="Wetter-Luftdruck-Arbeitszimmer"; !Name of Hm module var devName = "Zweiter Arbeitszimmer CO2 AIR:11"; ! 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 system variable and device exist? if (sysExist_1 && devExist) { ! Read state of channel 10 var readValue=devExist.State(); readValue = readValue.ToString(0)#" hPa"; sysExist_1.State(readValue); }