$Sensors = array(
array( 'Temp', 'Livingroom', 'Temp'),
array( 'Humidity', 'Livingroom', 'Hum'),
array( 'Illumination', 'Livingroom', 'Illum'),
array( 'Gas', 'Livingroom', 'Smoke'),
array( 'AirQuality', 'Livingroom', 'AirQu'),
array( 'InPir', 'Livingroom', 'Pir'),
array( 'Door', 'Livingroom', 'Door'),
array( 'Window', 'Livingroom', 'Win'),
array( 'HereSomebody', 'Livingroom', 'Hsb'),
array( 'Socket', 'Livingroom', 'Socket'),
array( 'Climat', 'Livingroom', 'Shutter'),
array( 'Climat', 'Livingroom', 'Hood'),
array( 'Backlight', 'Livingroom', 'Shelf'),
array( 'LightDimmer', 'Livingroom', 'Rgb'),
array( 'Temp', 'Kitchen', 'Temp'),
array( 'Humidity', 'Kitchen', 'Hum'),
array( 'Illumination', 'Kitchen', 'Illum'),
array( 'Gas', 'Kitchen', 'Smoke'),
array( 'Gas', 'Kitchen', 'Gas'),
array( 'AirQuality', 'Kitchen', 'AirQu'),
array( 'Water', 'Kitchen', 'Water'),
array( 'InPir', 'Kitchen', 'Pir'),
array( 'Door', 'Kitchen', 'Door'),
array( 'Window', 'Kitchen', 'Win'),
array( 'HereSomebody', 'Kitchen', 'Hsb'),
array( 'Socket', 'Kitchen', 'Socket'),
array( 'Climat', 'Kitchen', 'Shutter'),
array( 'Climat', 'Kitchen', 'Hood'),
array( 'Backlight', 'Kitchen', 'Wardrobe'),
array( 'Backlight', 'Kitchen', 'Shelf'),
array( 'Temp', 'Bathroom', 'Temp'),
array( 'Humidity', 'Bathroom', 'Hum'),
array( 'Illumination', 'Bathroom', 'Illum'),
array( 'Gas', 'Bathroom', 'Smoke'),
array( 'AirQuality', 'Bathroom', 'AirQu'),
array( 'Water', 'Bathroom', 'Water'),
array( 'InPir', 'Bathroom', 'Pir'),
array( 'Door', 'Bathroom', 'Door'),
array( 'Window', 'Bathroom', 'Win'),
array( 'HereSomebody', 'Bathroom', 'Hsb'),
array( 'Ligth', 'Bathroom', 'Bra'),
array( 'Socket', 'Bathroom', 'Socket'),
array( 'Climat', 'Bathroom', 'Shutter'),
array( 'Climat', 'Bathroom', 'Hood'),
array( 'Temp', 'UnderFloor', 'Temp'),
array( 'Humidity', 'UnderFloor', 'Hum'),
array( 'Gas', 'UnderFloor', 'Smoke'),
array( 'Gas', 'UnderFloor', 'Gas'),
array( 'Water', 'UnderFloor', 'Water'),
array( 'InPir', 'UnderFloor', 'Pir'),
array( 'Door', 'UnderFloor', 'Door'),
array( 'HereSomebody', 'UnderFloor', 'Hsb'),
array( 'Ligth', 'UnderFloor', 'Chandelier'),
array( 'Socket', 'UnderFloor', 'Socket'),
array( 'Ligth', 'UnderFloor', 'DeskLamp'),
array( 'Climat', 'UnderFloor', 'Hood'),
array( 'Backlight', 'UnderFloor', 'Wardrobe'),
array( 'Backlight', 'UnderFloor', 'Shelf'),
array( 'Illumination', 'Hall', 'Illum'),
array( 'Gas', 'Hall', 'Smoke'),
array( 'InPir', 'Hall', 'Pir'),
array( 'Door', 'Hall', 'Door'),
array( 'Backlight', 'Hall', 'Wardrobe'),
array( 'Temp', 'Corridor', 'Temp'),
array( 'Humidity', 'Corridor', 'Hum'),
array( 'Gas', 'Corridor', 'Smoke'),
array( 'AirQuality', 'Corridor', 'AirQu'),
array( 'InPir', 'Corridor', 'Pir'),
array( 'Ligth', 'Corridor', 'Chandelier'),
array( 'Climat', 'Corridor', 'Hood'),
array( 'Temp', 'Cabinet', 'Temp'),
array( 'Humidity', 'Cabinet', 'Hum'),
array( 'Illumination', 'Cabinet', 'Illum'),
array( 'Gas', 'Cabinet', 'Smoke'),
array( 'AirQuality', 'Cabinet', 'AirQu'),
array( 'InPir', 'Cabinet', 'Pir'),
array( 'Door', 'Cabinet', 'Door'),
array( 'Window', 'Cabinet', 'Win'),
array( 'HereSomebody', 'Cabinet', 'Hsb'),
array( 'Ligth', 'Cabinet', 'Chandelier'),
array( 'Ligth', 'Cabinet', 'Bra'),
array( 'Socket', 'Cabinet', 'Socket'),
array( 'Ligth', 'Cabinet', 'DeskLamp'),
array( 'Climat', 'Cabinet', 'Shutter'),
array( 'Climat', 'Cabinet', 'Hood'),
array( 'Backlight', 'Cabinet', 'Wardrobe'),
array( 'Backlight', 'Cabinet', 'Shelf'),
array( 'Temp', 'Bedroom', 'Temp'),
array( 'Humidity', 'Bedroom', 'Hum'),
array( 'Illumination', 'Bedroom', 'Illum'),
array( 'Gas', 'Bedroom', 'Smoke'),
array( 'AirQuality', 'Bedroom', 'AirQu'),
array( 'InPir', 'Bedroom', 'Pir'),
array( 'Door', 'Bedroom', 'Door'),
array( 'Window', 'Bedroom', 'Win'),
array( 'HereSomebody', 'Bedroom', 'Hsb'),
array( 'Ligth', 'Bedroom', 'Chandelier'),
array( 'Ligth', 'Bedroom', 'Bra'),
array( 'Socket', 'Bedroom', 'Socket'),
array( 'Ligth', 'Bedroom', 'DeskLamp'),
array( 'Climat', 'Bedroom', 'Shutter'),
array( 'Climat', 'Bedroom', 'Hood'),
array( 'Backlight', 'Bedroom', 'Wardrobe'),
array( 'Backlight', 'Bedroom', 'Shelf'),
array( 'LightDimmer', 'Bedroom', 'Rgb'),
array( 'Temp', 'Kinderroom', 'Temp'),
array( 'Humidity', 'Kinderroom', 'Hum'),
array( 'Illumination', 'Kinderroom', 'Illum'),
array( 'Gas', 'Kinderroom', 'Smoke'),
array( 'AirQuality', 'Kinderroom', 'AirQu'),
array( 'InPir', 'Kinderroom', 'Pir'),
array( 'Door', 'Kinderroom', 'Door'),
array( 'Window', 'Kinderroom', 'Win'),
array( 'HereSomebody', 'Kinderroom', 'Hsb'),
array( 'Ligth', 'Kinderroom', 'Chandelier'),
array( 'Ligth', 'Kinderroom', 'Bra'),
array( 'Socket', 'Kinderroom', 'Socket'),
array( 'Ligth', 'Kinderroom', 'DeskLamp'),
array( 'Climat', 'Kinderroom', 'Shutter'),
array( 'Climat', 'Kinderroom', 'Hood'),
array( 'Backlight', 'Kinderroom', 'Wardrobe'),
array( 'Backlight', 'Kinderroom', 'Shelf'),
array( 'LightDimmer', 'Kinderroom', 'Rgb'),
array( 'Humidity', 'PentHouse1', 'Hum'),
array( 'Gas', 'PentHouse1', 'Smoke'),
array( 'Ligth', 'PentHouse1', 'Chandelier'),
array( 'Humidity', 'PentHouse2', 'Hum'),
array( 'Gas', 'PentHouse2', 'Smoke'),
array( 'Ligth', 'PentHouse2', 'Chandelier'),
array( 'Temp', 'Balcony', 'Temp'),
array( 'Humidity', 'Balcony', 'Hum'),
array( 'Illumination', 'Balcony', 'Illum'),
array( 'OutPir', 'Balcony', 'Pir'),
array( 'Door', 'Balcony', 'Door'),
array( 'Ligth', 'Balcony', 'Bra'),
array( 'OutPir', 'Terrace', 'Pir'),
array( 'Ligth', 'Terrace', 'Bra'),
array( 'OutPir', 'InFrontOfTheHouse', 'Pir'),
array( 'OutPir', 'EntranceToTheHouse', 'Pir'),
array( 'OutPir', 'InBackOfTheHouse', 'Pir'),
array( 'Gas', 'BoilerHouse', 'Smoke'),
array( 'Gas', 'BoilerHouse', 'Gas'),
array( 'Water', 'BoilerHouse', 'Water'),
array( 'InPir', 'BoilerHouse', 'Pir'),
array( 'Door', 'BoilerHouse', 'Door'),
array( 'Window', 'BoilerHouse', 'Win'),
array( 'HereSomebody', 'BoilerHouse', 'Hsb'),
array( 'Ligth', 'BoilerHouse', 'Chandelier'),
array( 'Socket', 'BoilerHouse', 'Socket'),
array( 'Ligth', 'BoilerHouse', 'DeskLamp'),
array( 'Climat', 'BoilerHouse', 'Hood'),
array( 'Backlight', 'BoilerHouse', 'Wardrobe'),
array( 'Temp', 'BathHouse', 'Temp'),
array( 'Humidity', 'BathHouse', 'Hum'),
array( 'Illumination', 'BathHouse', 'Illum'),
array( 'Gas', 'BathHouse', 'Smoke'),
array( 'Water', 'BathHouse', 'Water'),
array( 'InPir', 'BathHouse', 'Pir'),
array( 'Door', 'BathHouse', 'Door'),
array( 'Window', 'BathHouse', 'Win'),
array( 'HereSomebody', 'BathHouse', 'Hsb'),
array( 'Ligth', 'BathHouse', 'Chandelier'),
array( 'Ligth', 'BathHouse', 'Bra'),
array( 'Climat', 'BathHouse', 'Shutter'),
array( 'Climat', 'BathHouse', 'Hood'),
array( 'Backlight', 'BathHouse', 'Wardrobe'),
array( 'LightDimmer', 'BathHouse', 'Rgb'),
array( 'OutPir', 'Plot', 'Pir'),
array( 'OutPir', 'Gate', 'Pir'),
array( 'Door', 'Gate', 'Door'),
array( 'HereSomebody', 'Gate', 'Hsb'),
array( 'Ligth', 'Gate', 'Projector'),
);
foreach ($Sensors as $Sensor) {
$class = $Sensor[0];
$room = $Sensor[1];
$sens = $Sensor[2];
$objName = $room.$sens;
addClassObject($class, $objName);
sg($objName.".LinkedRoom", $room);
}