July 3rd, 2017

Temperature Sensors - Take 2

This post contains a corrected Python script for reading the temperature and relative humidity from a DHT11 sensor and sending them on to a Domoticz server. Bogus values will not be passed on when it is not possible to read the sensor. The second topic of the post is human comfort as it relates to relative humidity and temperature. This is groundwork for controlling an air exchanger and a dehumidifier in the future. [...more]

June 25th, 2017

Temperature Sensors on a Raspberry Pi hosting Domoticz

This post explains how to connect a DHT series temperature and humidity sensor on the Raspberry Pi GPIO and how to monitor its values in Domoticz, a home automation server hosted on the same Raspberry Pi. There are plenty of descriptions on the Web on how to do this. But most assume that the default One-Wire GPIO pin will be used. Unfortunately, I could not use that pin. To increase the post's value-added, I also describe how to monitor the temperature of the Raspberry Pi [...more]

June 22nd, 2017

Two updates

First, the sidebar about the use of an independent power supply for the Sonoff in the post entitled Flashing a Sonoff with a Raspberry Pi was confusing. Hopefully, the new version is an improvement. Thanks to Robin de Kruyf for pointing out that deficiency. Second, I updated my Lua script for handling MQTT messages from Domoticz in the January 30th post NodeMCU, MQTT and Domoticz - part 2. Turns out that the CJSON module has been replaced with the SJSON module.

May 31st, 2017

X10 RF controller with a CM19A Interface in Domoticz

This post shows how to use an X10 PalmPad Remote Control to manually control a lamp connected to a Sonoff WiFi switch from ITEAD. This is a continuation of the previous post about the necessity of providing a way of manually turning on and off lamps connected to Sonoff WiFi switches [...more]

April 26th, 2017

Local Control of Sonoff Switches

Occasionally it is convenient to control devices with a smart phone or tablet,or even a desktop computer. But, very quickly, one tires of having to use such a device to simply light a lamp. I will describe how I added manual switches to control two bedside lamps connected to Sonoffs... [...more]

May 19th, 2017

Over the Air Sonoff Flashing

One of the very useful features of the Sonoff-MQTT-OTA-Arduino firmware for Sonoff switches by Theo Arends is its ability to update itself over the air (OTA). Here is how to use this very usefull capability especially once a switch is being used [...more]

June 3rd, 2017

Workflow when Working with a Headless Raspberry Pi

The missing second post in the new series about home automation with Domoticz on a Raspberry Pi is finally added. I explain how I use FileZilla to more easily modify files on the Raspberry Pi. The instructions on making backups have been moved to this post [...more]

June 1st, 2017

Motion and Dusk Sensor with CM11A in Domoticz

This post explains how I added the X10 ActiveEye Motion Sensor (outdoor model MS16A) to a Domoticz home automation server running on a Raspberry Pi. The latter is linked to the sensor through a CM11A serial computer interface and a RR501 transceiver. It is a reworked version of Adding an ActiveEye Motion Sensor that showed how the same sensor was used with a wireless CM19A computer interface [...more]

May 30th, 2017

MQTT with Domoticz

This post continues the new series about home automation with Domiticz and ESP8266 based hardware showing how I installed an MQTT broker on the Raspberry Pi and how it is used with the home automation software [...more]

May 27th, 2017

X10 Dimmer Switches with a CM11A Interface in Domoticz

This post continues with the building of a home automation system using legacy X10 hardware with Domoticz on a Model B Rev 2 Raspberry Pi. At the end of the post, it will be possible to add fully integrated X10 LM465 Lamp (dimmer) module. Unfortunately, the Lua script may not work with newer (post 2007) lamp modules [...more]

May 23rd, 2017

X10 On/Off Switches with a CM11A Interface in Domoticz

This post continues with the building of a home automation system using legacy X10 hardware with Domoticz on a Model B Rev 2 Raspberry Pi. At the end of the post, it will be possible to add fully integrated X10 on/off modules. [...more]

May 20th, 2017

Domoticz on a Raspberry Pi - "Déjà Vu All Over Again"

This is a detailed description of installing the Raspbian operating system and the Domoticz home automation server on a Model B Rev 2 Raspberry Pi and on a Pi 3 Model B. This is the first in a series of posts about DIY home automation using legacy X10 hardware and using the newer, cheaper, and in my opinion better ESP8266 based hardware [...more]

May 19th, 2017

Flashing a Sonoff with the Arduino IDE (2)

This follows the May 15th post, showing how to flash the Sonofo-MQTT-OTA-Arduino - TASMOTA firmware from Theo Arends on a Sonoff switch Wifi. TASMOTA is complete and makes adding the switch in the home automation program Domoticz very simple. [...more (French)]

May 17th, 2017

Flashing a Sonoff with the Arduino IDE (1)

There is nothing very new here. I show how to upload a sketch in a Sonoff WiFi switch from the Arduino IDE. The steps described are a) Installation of the Arduino IDE in Ubuntu; b) Preparation of IDE; c) Serial port access; D) USB-serial connection with the Sonoff switch and e) Uploading a Blink sketch [...more (French)]

May 15th, 2017

Real Time Clock, DS3231, for Domoticz on the Raspberry Pi

Since the Raspberry Pi does not have a physical clock, schedules events triggered by the time of day will not work properly in Domoticz if access to the Internet is lost during a power failure. The obvious solution is to install a hardware real-time clock (RTC) [...more]

March 14th, 2017

Translating Console Applications in Free Pascal

Lately, I noticed that DefaultTranslator and LCLTranslator cannot be used to select a language in a console applications. They pull in the complete LCL package and the SetDefaultLang wants to translate all of the forms in the project even as there are none. So I decided to rip out the form updating code in LCLTranslator and to save that modified version in a unit called UnitTranslator [...more].

I found this out when looking at the tcalc demonstration program for my simple parser. I have updated that project accordingly [...more]

February 12th, 2017

Adding an ActiveEye Motion Sensor

This will be one of the last posts about X10 hardware I should think. It shows how to add the combined motion and light sensor to Domoticz. [...more]

February 12th, 2017

BlitzWolf SIC1 Wifi Surveillance Camera... Again

This is another short post with additional information about the camera, its software and firmware. [...more]

February 10th, 2017

Conditional timers in Domoticz

The Decemter 17th blog on conditional timers in Domoticz was updated. Phil (user PhillChillBill on the Domoticz forum; sorry, I don't know his last name) has written a Perl script to automate the process by creating the bash script I described before. [...more]

February 9th, 2017

USB-Serial Converter, Counterfeit or Not?

The USB-TTL converter ordered on the 27th of November finally arrived yesterday. Initially, it would not work with esptool.py to flash an ESP8266. Was the converter harbouring a counterfeit chip? In the end, I did find a way to make it work as I wanted [...more]

February 1st, 2017

Sonoff, NodeMCU and Domoticz

An ITEAD Sonoff WiFi switch with NodeMCU firmware is added to the list of devices controlled with the home automation software Domoticz [...more]

January 31st, 2017

Emulating a Sonoff Switch with a Wemos D1 mini

I still have not received the USB-TTL (3.3V) cable to flash and program Sonoff WiFi switches. Using the Rapsberry Pi, as I did to upload files is too cumbersome for software development. Si I decided to emulate a Sonoff WiFi switch with a WeMos D1 mini. [...more]

January 31st, 2017

Flashing a Sonoff Switch with a Raspberry Pi

I decided to rewrite the January 23rd posting and to tranlate it into English. It now shows how to use a Raspberry Pi (instead of USB-TTL cable (3.3V) cable) to flash a Sonoff WiFi Switch from ITEAD with one of three firmware: Sonoff-MQTT-OTA-Arduino (TASMOTA), Sonoff-MQTT-OTA and NodeMCU. Full integration of the switch with Domoticz is achieved with the first one without any programming of any sort [...more]

January 30th, 2017

NodeMCU, MQTT and Domoticz - part 2

This post continues the exploration of NodeMCU, MQTT and Domoticz begun on the 15th and 17th of January. The subject is how to subscribe to MQTT messages in NodeMCU so as to perform a task based on messages published by other devices to the MQTT broker. In particular a virtual switch in the home automation software will set the WeMos D1 Mini LED on or off [...more]

January 23rd, 2017

Flashing a Sonoff Switch with a Raspberry Pi

The USB-TTL cable (3.3V) ordered from China in December is still in transit. My impatience is such that I decided to use a Raspberry Pi to flash a Sonoff switch. I managed to flash two Sonoffs and I can happily report that no Raspberry Pi nor Sonoff was hurt in the process. And the good news is that it takes about ten minutes to program the second: five minutes to solder a connector and five minutes to flash the Theo Arendst firmware: Sonoff-MQTT-OTA. Here are the details [...more (French)]

January 21th, 2017

Wemos D1 mini and NodeMCU - reworked

The January 15th post has been reworked slightly to better explain the work flow when using NodeMCU with command line tools. In particular, setting the baud rate correctly makes for a smoother experience [...more]

January 17th, 2017

NodeMCU, MQTT and Domoticz - part 1

This post continues with the previous one. In it I show how to establish a WiFi connection and how to update a device (a temperature sensor) in the home automation software Domoticz. This is done in two ways: using an MQTT broker and directly using an HTTP request [...more]

January 15th, 2017

Wemos D1 mini and NodeMCU

When I purchased my first ITEAD Sonoff WiFi switches, I also got a Wemos D1 mini board. I thought using a ESP8266 development kit would be a good way to prepare for hacking the switches. In this post, I relate how I learned to program the ESP8266 using a tool chain made up of NodeMCU firmware and Python command line utilies: esptool, nodemcu-uploader and miniterm. [...more]

January 13th, 2017

Using the BlitzWolf SIC1 Camera in Domoticz

Domoticz uses video cameras as if they were photo cameras: one image at a time. Many security video cameras can snap a photograph even as they send out a video stream. Unfortunately, in the case of the Blitzwolf BW-SIC1 camera, this requires use of the ONVIF api which, apparently, Domoticz cannot do. There seems to be no choice but to write a bash script to pull a frame from the camera's video stream [...more (French)]

January 13th, 2017

Using the BlitzWolf SIC1 Camera in Kodi

There is an add-on application for the Kodi multimedia player to see the video feed from the BliztWolf BW-SIC1 camera. It is called IP Cam. It is rather easy to do without it and to use Kodi which can read RTSP streams. [...more (French)]

January 12th, 2017

Setting up the BlitzWolf SIC1 Wifi Surveillance Camera

Setting up the BlitzWolf BW-SIC1 Wifi surveillance camera with the BlitzCam application on a Windows computer [...more]

January 11th, 2017

BlizWolf SIC1 Camera - in the cold

The BlitzWolf BW-SIC1 wireless security camera spends its firt night in the cold and hits the lower limit of its operating temperature. There is also a short low resolution video. [...more (French)]

January 3rd, 2017

First use of the BlizWolf SIC1 security camera

The BlitzWolf BW-SIC1 wireless surveillance camera has interesting features with respect to its relatively low price. Unfortunately, the instructions accompanying this unit are almost incomprehensible. In addition, they contain no information about its use with the Linux operating system. Luckily, it transmits its video streams with the RTSP protocol, so it can be seen and recorded with standard software in Linux. [...more (French)]

December 21st, 2016

Domoticz as a Linux Program

How can Domoticz be made to look like a native Linux application much like can be done in Android. While possible it is much more complicated. [...more]

December 21st, 2016

Domoticz on Android

Here is a little trick to make Domoticz easier to use on Android device. [...more]

December 19th, 2016

Add MQTT to Domoticz

This short page is a draft of a post on how Domoticz interacts with the MQTT broker. No real device is added to my setup, this is merely prepatory work in the vein, "I should write about this to learn about this" [...more]

December 19th, 2016

Add an MQTT Broker to the Raspeberry Pi

MQTT is a communication protocol first proposed in 1999 but now becoming ubiquitous with the so called Internet of Things. In this post, I look at the protocol and add an MQTT Broker to the Raspberry Pi [...more]

December 13th, 2016

X10 with Domoticz on a Raspberry Pi (Domespic)

A description of how I use X10 hardware with the home automation software Domoticz running on a Raspberry Pi. I installed both the Heyu serial bridge and the Mochad TCP bridge to communicate with X10 computer interfaces (CM11A, CM15A and CM19A). After the introduction, the first part describes the hardware and software used. The second part shows how to install and configure Raspbian (Jessie Lite). The third part is about the installation of the gateways. The fourth part covers the installation of Domoticz and the integration of the bridges. Additional topics, including remote access through Tor, are found in the last part. [...more]

December 12th, 2016

Update to Installing eWeLink on an Android Tablet

It is now very easy to install eWeLink on a tablet without a telephone number if it is running a recent version of Android. Just get the latest version from Google's Play Store. If you have an older version of Android it may yet be possible to use eWeLink or another variant of that program [...more]

August 30th, 2016

Conversion of measurement units

Free Pascal's run time library contains Delphi compatible units ConvUtils and StdConvs. Unfortunately, both units contain a few errors. Lately, I have attempted to fix the code and hope to eventually submit these corrections for inclusion in a future version of the compiler [...more]

July 13th, 2016

One Pass Mathematical Parser

While porting code to FreePascal/Lazarus, I have made some changes changes to the mathematical expression parser I initially wrote in Delphi. The one pass parser for Free Pascal is complete, so is the documentation [...more]