Skip to content

Theft protection with SmartHome

Table of contents

Reading time 5 minutes

Aktualisiert – Mai 1, 2024

The question often arises as to which anti-theft protection is suitable for protecting my motorhome against theft.

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.

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.

How does it work?

Here is an example checklist that explains the function.

On the left-hand side of the template designed for a tablet with the AIO Creator, nine buttons are listed.

  • 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.
  • 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.
  • 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.
  • 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.
  • The fifth appeals to check whether all external flaps and windows, such as roof hatches, are closed.
  • 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)
  • The seventh reminder is to check that all cupboards are locked, in particular that combination locks for kitchen cupboards prevent unintentional opening during cornering.
  • The eighth is to ensure that the front passenger seat is securely locked for the journey.
  • 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.
  • 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.

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.
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.

With the vertically arranged button Reset the buttons change to yellow, the pressure pump is reactivated and the relay interrupting the ignition is deactivated.

What is needed?

In addition to a HomeMatic central control unit or a Raspberry Pi with an installed RaspberryMatic system, a 4-way switching actuator (HM-LC-Sw4-WM) is required to switch the pressurized water pump and the ignition relay.

For visualization, the Mediola AIO Creator which can be used to visualize, change and check all data, even video streams can be integrated, e.g. a reversing camera.

The programming of the checklist is explained below.

Programming HomeMatic / RaspberryMatic

The following variables must be created for programming:

... of the type Logic value

  • Check_ restore

... of the type String (Values: off, on, reset)

  • Check_passenger_seat_locked
  • Check_Entwaesserung_OFF
  • Check_Blinds_Microwave
  • Check_Kuehlschrank_AUTO
  • Check_air_suspension_ok
  • Check_tire_pressure_ok
  • Check_cupboards_drawers
  • Check_flaps_closed

A program for resetting by clicking on the vertically positioned reset button is created:

Programming AIO Creator

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.

An action is assigned to each button after selection:

This is followed by the assignment of the status of the Variables:

Finally, a rule is created that defines the corresponding color of the button when the status changes:

Code lock

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.

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.

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.

Code - Program

Variables to be created:

... of the type Logic value

  • code_ok

... of the type Number

  • code

... of the type String

  • code_evaluation

Script 1

  • The Zall 7 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.
  • The character string "xyz" represents the individual numerical code and must be replaced accordingly.

var x = dom.GetObject('code').State();
var input = x.ToString(0);
if (x > 9)
   {
     dom.GetObject('code_auswertung').State("");
   }
else
   {
     y = dom.GetObject('code_auswertung').State();
     var codelaenge = y.Length();
     var input = y + input;
     dom.GetObject('code_evaluation').State(input);
     if (codelaenge == 7)
        {
          if (input == "xyz")
             {
               dom.GetObject('code_evaluation').State("correct");
             }
      else
             {
               dom.GetObject('code_auswertung').State("false");
             }
        }
   }

Script 2

This script compares the numbers entered and displays the word "free" if they match the specified code or "blocked" if they are entered incorrectly.

var z = dom.GetObject('code_auswertung').State();
if
   (z == "correct")
       {
         dom.GetObject('code_auswertung').State("free");
         dom.GetObject('code_ok').State(true);
       }
if
   (z == "false")
       {
         dom.GetObject('code_auswertung').State("gesperrt");
         dom.GetObject('code_ok').State(false);
       }

Code evaluation - Program

If the code has been entered correctly, the resulting true set variable is reset after two seconds incorrect to ensure that all relevant queries have not already been processed as completed in the next query run and therefore true consider.

At the same time, the relay - possibly also the second relay - is activated to switch on the ignition so that it can start.

ps If you need personal support in the implementation for a fee, you are welcome to Ticketing make!

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish