When controlling lights by motion sensors on HomeKit the problem is that you can't really change the time duration the lights should be on. Here is a simple example how to adjust the time using shortcuts in Apple HomeKit.

All you need to do is change the repeat value to number of seconds you want your lights to be on.

When the kitchen motion sensor STOPS detecting motion:


At the time of writing smart home system Domotron does not support Apple HomeKit integration. I emailed Domotron directly if they plan to integrate this feature, and the answer I received is that they do have it in their roadmap and expected date for it is the year 2021. Well, that is still a lot of time and if you are inpatient like me, you probably want it as soon as possible.

Here I am going to share a small tutorial about how I got Domotron working with Apple Shortcuts.

You might ask why just don’t use their native app…


I spent a day looking for a solution to get Selenium working on Raspberry Pi. Hopefully, this will also work for you and save you hours searching internet.

Selenium requires to have installed a browser that is controlled by a driver. As browser I use Chromium which can be downloaded by this command.

sudo apt-get install chromium-browser

Now that you have Chromium browser installed you need to find which version you are running.

chromium-browser --version

It should return something similar to this.

Chromium 78.0.3904.108 Built on Raspbian, running on Raspbian 10

After you know which Chromium version you have installed…

Patrik Mojzis

Here to share some tips I learned.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store