{"id":7149,"date":"2024-04-24T15:22:57","date_gmt":"2024-04-24T15:22:57","guid":{"rendered":"https:\/\/csiag.eu\/?p=7149"},"modified":"2024-05-01T18:50:40","modified_gmt":"2024-05-01T18:50:40","slug":"theft-protection-with-smarthome","status":"publish","type":"post","link":"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/","title":{"rendered":"Theft protection with SmartHome"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Wie_funktioniert_das\" >How does it work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Was_wird_benotigt\" >What is needed?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Programmierung_HomeMatic_RaspberryMatic\" >Programming HomeMatic \/ RaspberryMatic<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Programmierung_AIO_Creator\" >Programming AIO Creator<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Code-Schloss\" >Code lock<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Code_%E2%80%93_Programm\" >Code - Program<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Skript_1\" >Script 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Skript_2\" >Script 2<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/#Code-Auswertung_%E2%80%93_Programm\" >Code evaluation - Program<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<p>The question often arises as to which anti-theft protection is suitable for protecting my motorhome against theft.<\/p>\n\n\n\n<p>SmartHome proves to be a useful helper in two ways: on the one hand, it encourages you to work through a checklist before starting to ensure that you take all eventualities into account before setting off and can start safely, and on the other hand, it blocks the ignition until all points have been confirmed.<\/p>\n\n\n\n<p>And if the thief has no knowledge of this procedure or the location of the relay that interrupts the ignition, he will find it difficult to steal the good piece.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Wie_funktioniert_das\"><\/span>How does it work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here is an example checklist that explains the function.<\/p>\n\n\n\n<p>On the left-hand side of the template designed for a tablet with the AIO Creator, nine buttons are listed.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first is set automatically based on the status of the Homematic power meter. If 230 V shore power is present, the button is colored red; if none is present because the power cable has been disconnected, it changes to green.<\/li>\n\n\n\n<li>The second changes to green when it is confirmed manually after checking whether the waste water tank stopcock has been closed and, if necessary, a waste water hose has been stowed away.<\/li>\n\n\n\n<li>The third one takes a look at the pressure gauges of an installed auxiliary air suspension to make sure that the pressure corresponds to the recommended pressure and is the same on both sides or may need to be corrected.<\/li>\n\n\n\n<li>The fourth, if you have tire pressure sensors, for example, confirms that the tire pressure has been checked for the correct value, usually using an app.<\/li>\n\n\n\n<li>The fifth appeals to check whether all external flaps and windows, such as roof hatches, are closed.<\/li>\n\n\n\n<li>The sixth prompts you to check whether any louvre cabinet locks are closed (these often conceal a TV, but sometimes also a hot air\/microwave combination, for example)<\/li>\n\n\n\n<li>The seventh reminder is to check that all cupboards are locked, in particular that combination locks for kitchen cupboards prevent unintentional opening during cornering.<\/li>\n\n\n\n<li>The eighth is to ensure that the front passenger seat is securely locked for the journey.<\/li>\n\n\n\n<li>The ninth protects you from unintentional defrosting by prompting you to take a look at the refrigerator setting to see whether it is set to GAS or automatic mode.<\/li>\n\n\n\n<li>The step, if it is not automatically retracted when the ignition is switched ON, is located in the middle on the right-hand side. It can be retracted or extended manually or automatically by program. When retracted, the red bar changes to green.<\/li>\n<\/ul>\n\n\n\n<p>Only when ALL red indicators, including those on the right-hand side, show green AND all buttons have been confirmed do they also change to green. Only then is the relay that interrupts the ignition activated to enable the ignition and allow the engine to start.<br>Depending on the further programming, any pressure water pump installed is also switched off to avoid the risk of it diligently emptying the entire water tank into the motorhome in the event of an accident.<\/p>\n\n\n\n<p>With the vertically arranged button <em>Reset<\/em> the buttons change to yellow, the pressure pump is reactivated and the relay interrupting the ignition is deactivated.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"730\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-1024x730.png\" alt=\"\" class=\"wp-image-7150\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-1024x730.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-1536x1094.png 1536w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-2048x1459.png 2048w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-18x12.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-300x214.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-1-768x547.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Was_wird_benotigt\"><\/span>What is needed?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In addition to a HomeMatic central control unit or a <a href=\"https:\/\/csiag.eu\/en\/smart-home-raspberry-pi\/\" data-type=\"post\" data-id=\"36\">Raspberry Pi<\/a> with an installed RaspberryMatic system, a 4-way switching actuator (<a href=\"https:\/\/csiag.eu\/en\/smarthome-in-a-mobile-home\/\" data-type=\"post\" data-id=\"2425\">HM-LC-Sw4-WM<\/a>) is required to switch the pressurized water pump and the ignition relay.<\/p>\n\n\n\n<p>For visualization, the <a href=\"https:\/\/csiag.eu\/en\/smarthome-aio-creator-neo\/\" data-type=\"post\" data-id=\"2701\">Mediola AIO Creator<\/a> which can be used to visualize, change and check all data, even video streams can be integrated, e.g. a reversing camera.<\/p>\n\n\n\n<p>The programming of the checklist is explained below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Programmierung_HomeMatic_RaspberryMatic\"><\/span>Programming HomeMatic \/ RaspberryMatic<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The following variables must be created for programming:<\/p>\n\n\n\n<p>... of the type <em>Logic value<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_ restore<\/kbd><\/li>\n<\/ul>\n\n\n\n<p>... of the type <em>String<\/em> (Values: <em>off, on, reset<\/em>)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_passenger_seat_locked<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_Entwaesserung_OFF<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium);padding-right:0;padding-left:0\"><kbd>Check_Blinds_Microwave<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_Kuehlschrank_AUTO<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_air_suspension_ok<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_tire_pressure_ok<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_cupboards_drawers<\/kbd><\/li>\n\n\n\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>Check_flaps_closed<\/kbd><\/li>\n<\/ul>\n\n\n\n<p>A program for resetting by clicking on the vertically positioned reset button is created:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-1024x517.png\" alt=\"\" class=\"wp-image-7227\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-1024x517.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-1536x775.png 1536w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-18x9.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-300x151.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9-768x388.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-9.png 1668w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Programmierung_AIO_Creator\"><\/span>Programming AIO Creator<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The buttons are created in the AIO Creator and assigned the corresponding button graphics. The variables and any devices, as well as the graphics required for the different colored buttons, are also imported.<\/p>\n\n\n\n<p>An action is assigned to each button after selection:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3-1024x611.png\" alt=\"\" class=\"wp-image-7155\" style=\"width:528px;height:auto\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3-1024x611.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3-18x12.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3-300x179.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3-768x459.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-3.png 1102w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>This is followed by the assignment of the status of the <kbd>Variables<\/kbd>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"612\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4-1024x612.png\" alt=\"\" class=\"wp-image-7156\" style=\"width:525px;height:auto\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4-1024x612.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4-18x12.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4-300x179.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4-768x459.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-4.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Finally, a rule is created that defines the corresponding color of the button when the status changes:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"812\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5-1024x812.png\" alt=\"\" class=\"wp-image-7157\" style=\"width:659px;height:auto\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5-1024x812.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5-15x12.png 15w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5-300x238.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5-768x609.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-5.png 1258w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Code-Schloss\"><\/span>Code lock<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you want to add another hurdle to this, you can use a code lock pop-up and make the release dependent on the correct entry of any code and any number of digits.<\/p>\n\n\n\n<p>Either the relay mentioned above only switches after the correct code has been entered, or you can make the confusion a little more colorful by activating a second relay connected in series, which has been installed at a different location and, for example, disconnects or restores the power supply to the diesel pump.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"724\" height=\"862\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-12.png\" alt=\"\" class=\"wp-image-7233\" style=\"width:326px;height:auto\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-12.png 724w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-12-10x12.png 10w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-12-252x300.png 252w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/figure>\n<\/div>\n\n\n<p>The code entry starts with the # button (the lettering \"locked\" is deleted. The code follows. If the code is entered correctly, the display switches and the corresponding actions (activate relay) are performed immediately.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"724\" height=\"862\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-13.png\" alt=\"\" class=\"wp-image-7235\" style=\"width:326px\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-13.png 724w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-13-10x12.png 10w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-13-252x300.png 252w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Code_%E2%80%93_Programm\"><\/span>Code - Program<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Variables to be created:<\/p>\n\n\n\n<p>... of the type <em>Logic value<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>code_ok<\/kbd><\/li>\n<\/ul>\n\n\n\n<p>... of the type <em>Number<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>code<\/kbd><\/li>\n<\/ul>\n\n\n\n<p>... of the type <em>String<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"margin-right:var(--wp--preset--spacing--superbspacing-medium);margin-left:var(--wp--preset--spacing--superbspacing-medium)\"><kbd>code_evaluation<\/kbd><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"437\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-1024x437.png\" alt=\"\" class=\"wp-image-7228\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-1024x437.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-1536x656.png 1536w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-18x8.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-300x128.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10-768x328.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-10.png 1696w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:34px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Skript_1\"><\/span>Script 1<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Zall <strong><em>7<\/em><\/strong> stands for the number of digits to be entered minus one, i.e. here 7 + 1 = 8 digits. If you only want to enter four digits, for example, this must be 4 - 1 = 3 and changed accordingly.<\/li>\n\n\n\n<li>The character string \"<strong><em>xyz<\/em><\/strong>\" represents the individual numerical code and must be replaced accordingly.<\/li>\n<\/ul>\n\n\n\n<p><kbd>var x = dom.GetObject('code').State();<br>var input = x.ToString(0);<br>if (x &gt; 9)<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_auswertung').State(\"\");<br>&nbsp;&nbsp;&nbsp;}<br>else<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y = dom.GetObject('code_auswertung').State();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var codelaenge = y.Length();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var input = y + input;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_evaluation').State(input);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (codelaenge == <strong><em>7<\/em><\/strong>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (input == \"<strong><em>xyz<\/em><\/strong>\")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_evaluation').State(\"correct\");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_auswertung').State(\"false\");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;}<\/kbd><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Skript_2\"><\/span>Script 2<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>This script compares the numbers entered and displays the word \"free\" if they match the specified code or \"blocked\" if they are entered incorrectly.<\/p>\n\n\n\n<p><kbd>var z = dom.GetObject('code_auswertung').State();<br>if<br>&nbsp;&nbsp;&nbsp;(z == \"correct\")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_auswertung').State(\"free\");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_ok').State(true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>if<br>&nbsp;&nbsp;&nbsp;(z == \"false\")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_auswertung').State(\"gesperrt\");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dom.GetObject('code_ok').State(false);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/kbd><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Code-Auswertung_%E2%80%93_Programm\"><\/span>Code evaluation - Program<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If the code has been entered correctly, the resulting <em>true<\/em> set variable is reset after two seconds <em>incorrect<\/em> to ensure that all relevant queries have not already been processed as completed in the next query run and therefore <em>true<\/em> consider.<\/p>\n\n\n\n<p>At the same time, the relay - possibly also the second relay - is activated to switch on the ignition so that it can start.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-1024x423.png\" alt=\"\" class=\"wp-image-7229\" srcset=\"https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-1024x423.png 1024w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-1536x634.png 1536w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-18x7.png 18w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-300x124.png 300w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11-768x317.png 768w, https:\/\/csiag.eu\/wp-content\/uploads\/2024\/04\/image-11.png 1740w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>ps If you need personal support in the implementation for a fee, you are welcome to <a href=\"https:\/\/csiag.eu\/en\/consulting-service\/\" data-type=\"page\" data-id=\"4174\">Ticketing<\/a> make!<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>The question often arises as to which anti-theft device is suitable for protecting my motorhome against theft. SmartHome is a useful helper here in two ways: on the one hand, it encourages you to work through a checklist before setting off to ensure that you take all eventualities into account before departure and can start safely, and on the other hand, it blocks...&nbsp;<a href=\"https:\/\/csiag.eu\/en\/blog\/2024\/04\/24\/diebstahlschutz-mit-smarthome\/\" rel=\"bookmark\">Read More \"<span class=\"screen-reader-text\">Theft protection with SmartHome<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[901,3296,346,347,353,348,352,2274,304],"tags":[793,3308,3300,3312,3311,3299,618,3309,3307,3304,3305,3303,372,462,471,3301,1280,384,371,370,3306,895,3310,541,3302],"class_list":["post-7149","post","type-post","status-publish","format-standard","hentry","category-alarmanlage","category-diebstahlschutz","category-smarthome","category-smarthome-im-wohnmobil","category-smarthome-programme-erstellen","category-smarthome-raspberry-pi","category-smarthome-systemvariablen","category-ueberwachung","category-wohnmobil","tag-aio-creator","tag-automatikbetrieb","tag-checkliste","tag-code-auswertung","tag-code-schloss","tag-diebstahlschutz","tag-druckpumpe","tag-hm-lc-sw4-wm","tag-kuehlschrank","tag-landstrom","tag-leistungsmessgeraet","tag-manometer","tag-programm","tag-programmierung","tag-raspberry-pi","tag-reifendrucksensor","tag-relais","tag-schaltaktor","tag-skript","tag-smarthome","tag-trittstufe","tag-variable","tag-video-stream","tag-visualisierung","tag-zusatzluftfederung"],"modified_by":"Achim Goerner","_links":{"self":[{"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/posts\/7149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/comments?post=7149"}],"version-history":[{"count":0,"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/posts\/7149\/revisions"}],"wp:attachment":[{"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/media?parent=7149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/categories?post=7149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csiag.eu\/en\/wp-json\/wp\/v2\/tags?post=7149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}