Thermometer('living_temp', 120, 190);
 Thermometer('badkamer_temp', 403, 440);
 Thermometer('kamer_temp', 530, 440);
 Thermometer('tobi_temp', 433, 90);
 Thermometer('alex_temp', 544, 90);
 Thermometer('zolder_temp', 690, 125);
 Blinds('zoldertrap', 50, 675, 190);
 if ($Sweg == 'On' || $Sslapen == 'On') {
     Secured(52, 88, 250, 196);
     Secured(50, 345, 129, 57);
     Secured(255, 88, 316, 141);
     Secured(114, 345, 129, 134);
 }
 if ($Sweg == 'On') {
     Secured(404, 212, 129, 65);
     Secured(469, 214, 45, 66);
 }
 if ($Spirliving != 'Off' || $Spirliving != 'Off') {
     Motion(52, 88, 250, 196);
 }
 if ($Spirkeuken != 'Off') {
     Motion(114, 345, 129, 134);
 }
 if ($Spirinkom != 'Off') {
     Motion(50, 345, 129, 57);
 }
 if ($Spirgarage != 'Off') {
     Motion(255, 88, 316, 141);
 }
 if ($Spirhall != 'Off') {
     Motion(404, 212, 129, 65);
 Setpoint('Living', 50, 183, 240);
 Setpoint('Badkamer', 50, 533, 620);
 Setpoint('Slaapkamer', 50, 693, 620);
 Setpoint('Slaapkamer_Tobi', 50, 573, 95);
 Setpoint('Slaapkamer_Tobi', 50, 703, 95);
 Radiator('LivingZE', 90, 200, 487);
 Radiator('LivingZZ', -90, 273, 81);
 Radiator('BadkamerZ', 0, 487, 533);
 if ($SwitchThuis == 'Off' || $SwitchSlapen == 'On') {
     Secured(63, 94, 421, 237);
     Secured(63, 527, 218, 68);
     Secured(309, 94, 532, 170);
 }
 if ($SwitchThuis == 'Off') {
     Secured(486, 306, 214, 79);
     Secured(565, 306, 75, 81);
 }
 if ($SwitchPIR_Living != 'Off') {
     Motion(63, 94, 421, 237);
 }
 if ($SwitchPIR_Inkom != 'Off') {
     Motion(63, 527, 218, 68);
 }
 if ($SwitchPIR_Garage != 'Off') {
     Motion(309, 94, 532, 170);
 }
 if ($SwitchPIR_Hall != 'Off') {
     Motion(486, 306, 214, 79);
     Motion(565, 306, 75, 81);
 }
 if ($SwitchTimeDeurbel > $eendag) {