+ sensorstd+='</td>';
+ }
+ if (data.sensors.ext_illumination)
+ {
+ sensorstd+='<td style="background-color:white; height:42px; text-align:center; vertical-align:middle; display:table-cell;"><b>Licht</b>';
+ $.each( data.sensors.ext_illumination, function(s, sensorobj) {
+ sensorstd+='<br/>'+sensorobj.location+': '+sensorobj.value;
+ });
+ sensorstd+='</td>';
+ }
+ if (data.sensors.door_locked)
+ {
+ sensorstd+='<td style="background-color:white; height:42px; text-align:center; vertical-align:middle; display:table-cell;"><b>Eingangstür</b>';
+ $.each( data.sensors.door_locked, function(s, sensorobj) {
+ var lockstatus="Auf";
+ if (sensorobj.value) { lockstatus = "Zu"; }
+ sensorstd+='<br/>'+sensorobj.location+': '+lockstatus;
+ });
+ sensorstd+='</td>';
+ }
+ if (data.sensors.ext_door_ajar)
+ {
+ sensorstd+='<td style="background-color:white; height:42px; text-align:center; vertical-align:middle; display:table-cell;"><b>Türkontakt</b>';
+ $.each( data.sensors.ext_door_ajar, function(s, sensorobj) {
+ var lockstatus="Auf";
+ if (sensorobj.value) { lockstatus = "Zu"; }
+ sensorstd+='<br/>'+sensorobj.location+': '+lockstatus;
+ });
+ sensorstd+='</td>';
+ }
+ if (data.sensors.ext_dust)
+ {
+ sensorstd+='<td style="background-color:white; height:42px; text-align:center; vertical-align:middle; display:table-cell;"><b>Staub</b>';
+ $.each( data.sensors.ext_dust, function(s, sensorobj) {
+ sensorstd+='<br/>'+sensorobj.location+': '+sensorobj.value+sensorobj.unit+'</td>';
+ });
+ sensorstd+='</td>';
+
+ }
+ if (sensorstd != "")
+ {
+ sensorshtml='<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>'+sensorstd+'</tr></table>';
+ document.getElementById('sensor_status').innerHTML=sensorshtml;