5 May

Homey: a first impression

Homey Flow EditorTwo weeks ago my Homey finally arrived. It’s still in beta, but that’s fine by me :-).

Currently I have the following devices and services setup:

  • Klik-aan-klik-uit (Kaku) remote (433Mhz)
  • Nest thermostat
  • Philips Hue lighting
  • TV (infrared)
  • PVR (infrared))
  • Receiver (infrared)
  • Kodi (trigger like: ‘on movie start’, ‘on pause’)
  • Fibaro motion sensor (Z-wave)
  • #Slack (for notifications)
  • Buienradar (trigger to inform you when it starts to rain)

Adding new devices is very simple, because Homey will recognize most devices automatically. If an infrared device is not recognized automatically, you can learn Homey each key manually.

Homey devices

Homey already supports a lot of devices and Apps. Apps can be added via the Homey App store. Because Homey is open, it’s also possible to create you own Apps. So the number of Apps can grow fast if a lot people start developing themselves.

Flow Editor

Homey comes with a build in Flow Editor. The Flow Editor makes it possible to create several flows. A flow is constructed by defining the IF (trigger) and a THEN (action). Optional you can use logical expressions to fine tune the IF.

Homey Flow Editor

Below an example of a flow to turn on the TV including the PVR and receiver. The flow is trigger by pressing a button on the Kaku-remote. When the button is pressed the led-ring of the Homey will turn red and an infrared signal is send to the TV, PVR and receiver. At the end Homey will say that the TV is turned on.

Homey turn on TV

Another flow I have running is turning on the lights in the hallway when motion is detected. Another flow is turning of the light when motion is no longer detected. For detecting motion a use the Fibaro motion sensor.

Homey motion sensor

I nice feature is that you can send notifications to your mobile or to #Slack. So even when I’m not home, I still know what is happening at home.

Still in beta

There are still some flaws in the software and Homey is not always triggering the flows when it should, but hey I still love my Homey. The guys at Athom are working really hard on the software and with each update Homey works better. Most of the issues I had where solved by looking for answers on the forum or with a software update.

Only speech recognition is not working as it should, but I hope this will be improved in one of the next updates.

6 Mar

Windows 10 IoT Core – Change basic device configuration

If you have a Windows 10 IoT Core device and want to change some basic settings, follow the instruction below.

First we need to set up a connection with the device

  1. Start Powershell (as administrator)
  2. First start the WinRM service by running: net start WinRM.
    Start WinRM service
  3. Now run the following command: Set-Item WSMan:\localhost\Client\TrustedHosts -Value <machine-name or IP Address>.
    Press ‘Y’ to confirm the change.
  4. Now start a session with the Windows 10 IoT Core device: Enter-PSSession -ComputerName <machine-name or IP Address> -Credential <machine-name or IP Address or localhost>\Administrator. As password use: p@ssw0rd.
Action Command
Change Administrator password

Remark: Once this is done, you’ll need to establish a new PowerShell session using Exit-PSSession and Enter-PSSession with the new credentials.

net user Administrator [new password]
Change device name

Remark: You will need to reboot the device for the change to take effect

setcomputername <new-name>
Reboot device shutdown /r /t 0
6 Mar

Raspberry Pi 2 with 7″ Touchscreen Display running Windows 10 IoT Core

I while ago I bought myself a Raspberry Pi 2 to play around with. I wanted it to run on Windows 10 IoT Core. That worked fine, with a display connected to HDMI. When the official Raspberry Pi 7″ Tochscreen Display came out I wanted to buy one immediately, but I was to late. The first batch was sold out :-). So I waited for the next batch and bought one.

I directly downloaded the latest version of Windows 10 IoT Core (build 10556), but the screen was not working. Using HDMI it was working…Argh. First I thought maybe the display is not properly connected, but when I tried Raspian, it work fine (even with touch).

Raspian on Raspberry Pi 2

I’ve let it rest for a while and today I picked it up again and found a forum post, stating that build 10556, wil not work with a v1.1 of the Rasberry Pi Display, but it will work with the latest preview build 14262. So assuming that I have a v1.1 of the display, I downloaded the preview version and yes, it’s working! Even with touch 🙂

Windows 10 IoT Core on Rasberry Pi 2

Now the development can begin.

Windows 10 IoT Core - Development



1 Jan


HomeyA new year has begun, so it’s time for a new gadget 😉 I just ordered an Homey! I want it to control my lights (Philips Hue), room temperature (Nest) and my home cinema.

What is Homey?
Homey is your personal assistant who will make your home personal again. Whatever you want to do, Homey takes care of the technical parts, so you’re left with the fun. Interact with your home and your devices in the way you interact with anyone else: using natural, spoken commands.

They just started delivering the first batch, so I hope to receive mine this month.

Update (13-01-2016): Looks my Homey will be shipped around 15 February 2016.

12 Dec


7 axesSonarQube is an open platform to manage code quality. As such, it covers the 7 axes of code quality.

For some time a technology that is very popular with Java developers, but Microsoft has been working hard with Sonar Source to support it, starting from the release of Visual Studio 2015 for the .NET platform. The result is a great free Code Analysis tool to clarify Technical Debt, but also to show that it is eliminated.

Below a webinar (Dutch) from Delta-N about SonarQube.

SonarQube Dashboard Example

12 Dec

Apache service not starting on Window 10

Having problems starting the Apache service on Windows 10? Probably port 80 is used by another process.

When you check which process is using port 80 (use Resource Monitor), it probably is the ‘System’ process (PID=4).

Resource Monitor

This means that a process by default installed and started by Windows is using port 80. Big chance that the ‘World Wide Web Publishing Service’ is running. Just stop it and set the Startup Type to ‘Manual’

e World Wide Web Publishing Service

Now try starting the Apache service again. If it is running, the Resource Monitor should now show that the ‘httpd.exe’ process is using port 80.

Resource Monitor

12 Dec

How to disable System service from listening to port 80

When you try to run Apache (or any other web server service), it can happen that Windows is not allowing to start it, because port 80 is already in use. To find out which process is using port 80, you can use the Resource Monitor (just run resmon.exe). Open the ‘Network’ tab and open the ‘Listening Ports’ section.

Resource Monitor

Another way to find out is to use ‘netstat -a -n -o | find “:80”‘.

How to solve the problem

If the process is just a ‘normal’ process, you just need to stop the associated service to free port 80. If it’s the System process (PID=4), that is using port 80, then we need to disable http.sys.

There are two ways to disable it:

  1. Go to device manager, select ‘View -> Show hidden devices’, go to ‘Non-plug and Play Driver -> HTTP’ and double click it to disable.
  2. Launch RegEdit, go to ‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP‘ and change to value of ‘start‘ to 4.
    After this you need to reboot your computer.

The following values are valid for the ‘start’ property:

0 Boot
1 System
2 Automatic
3 Manual
4 Disabled


27 Mar

Robert C. Martin – Clean Architecture and Design

So we’ve heard the message about Clean Code. And we’ve been practicing TDD for some time now. But what about architecture and design? Don’t we have to worry about that? Or is it enough that we keep our functions small, and write lots of tests? In this talk, Uncle Bob talks about the next level up. What is the goal of architecture and design? What makes a design clean? How can we evolve our systems towards clean architectures and designs in an incremental Agile way.

Clean Architecture and Design