}
 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);
     Motion(469, 214, 45, 66);
 }
 if ($STbelknop > $eendag) {
     Timestamp('belknop', -90, 17, 462);
 }
 if ($STpirgarage > $eendag) {
     Timestamp('pirgarage', 0, 256, 300);
 }
 if ($STpirliving > $eendag) {
     Timestamp('pirliving', 0, 230, 300);
 }
 if ($STpirlivingR > $eendag) {
     Timestamp('pirlivingR', 0, 230, 105);
 }
 if ($STpirkeuken > $eendag) {
     Timestamp('pirkeuken', 0, 115, 345);
 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) {
     Timestamp('Deurbel', -90, 25, 734);
 }
 if ($SwitchTimePIR_Garage > $eendag) {
     Timestamp('PIR_Garage', 0, 309, 320);
 }
 if ($SwitchTimePIR_Living > $eendag) {
     Timestamp('PIR_Living', 0, 284, 320);
 }
 if ($SwitchTimePIR_Inkom > $eendag) {
     Timestamp('PIR_Inkom', 0, 45, 560);
 }
 if ($SwitchTimePIR_Hall > $eendag) {
     Timestamp('PIR_Hall', 0, 487, 306);