You can get the temperature from add-on sensors like this:
Code
function Loop(){
try{
var temp= Shelly.getComponentStatus('Temperature', 101).tC; //Temp ID, mostly 100 to 102
print(temp);
}catch(e){print(e);}
}
Timer.set(2000,true,Loop);
Here are some script examples that use the addon.