Moving Home Assistant from a virtual machine to dedicated hardware

I have been running home assistant on a generic Linux virtual machine using Oracle’s Virtualbox system for several years. It has worked pretty well for me, but I recently decided to purchase a mini pc and move home assistant to it.

In part what prompted this was finding a low cost mini PC that looked pretty good. $139.00 for an OUVISLITE Ιntel Celeron J4125 (Up to 2.7GHz), with 8GB DDR4 128GB M.2 SSD Mini Computer, 4K HDMI, Triple Display, Dual WiFi, BT4.2, and HTPC. For that price I figured “what the hell, let’s give it a try”.

Continue reading “Moving Home Assistant from a virtual machine to dedicated hardware”

Restoring Home Assistant from Google Drive backup

Normally you restore home assistant to a previous backup using the backups stored locally that are listed under Settings -> System -> Backups. Just click on the backup you want to restore and a window pops up. Simple.

But if you want to restore to a version saved to Google drive you first have to copy the backup file from Google Drive to your local PC and then upload it to Home Assistant. Then the feature to upload a backup file is hidden under the “three dot” menu at the upper right of the backup page.

Open the menu, select “Upload backup”, and find the backup file you copied from Google Drive.

Using Aqara Vibrarion Sensor as Garage Door sensor

I was looking for a tilt sensor to tell me if my garage door was open or closed. The sensor had to work with Home Assistant and the only one I could find that looked simple and cheap was the Aqara Vibration sensor that had a tilt/orientation feature.

Unfortunately the feature was not one of the attributes that Home Assistant showed with the device which sent me down the rabbit hole of googling. Eventually I got it figured out and this article is to share my experiences.

Continue reading “Using Aqara Vibrarion Sensor as Garage Door sensor”

Update: Creating home assistant interface to alexa playlists

I stumbled upon https://github.com/custom-components/alexa_media_player/wiki#what-this-is which gave me the information I needed to directly control my echo device, instead of having one echo command via voice another.

Read my post https://robertjwallace.com/creating-home-assistant-interface-to-alexa-playlists/ for background.

The difference between what I was doing in that post and what I am doing now is in the scripts.yaml file. The code to directly control my echo is:

Continue reading “Update: Creating home assistant interface to alexa playlists”

Controlling a tuya smart plug from the command line

Background

I have a hybrid home automation system that includes some old X10 devices, Philips hue devices, wemo devices, and tp-link devices. Part of the system is some software that emulates a Philips hue bridge (ha-bridge) that lets me control devices by running linux programs and scripts. This lets me use old X10 radio frequency controllers and motion detectors in my home automation. So far this has worked great.

Continue reading “Controlling a tuya smart plug from the command line”

Adding links to web pages in Home Assistant

I have been playing around with Home Assistant for just a little while now, and while I am impressed with what it does, I find the documentation and the examples to be less than helpful. One thing I wanted to do was simply add a “card” of web links to the UI. Since the Home Assistant interface (Lovelace) is web based you would think that this would be easy.

Continue reading “Adding links to web pages in Home Assistant”

Home automation, part 2

This is an update to https://robertjwallace.com/home-automation-smart-home/.

I am finally beginning to move from the X10 system to a more modern system, despite the cost. My existing system is an hybrid of Philips Hue and X10. To integrate the X10 with Alexa I use the X10 CM19 transceiver with the mochad linux driver, and ha-bridge, a Philips Hue emulator. This allowed me to use Alexa to control the X10 system.

Continue reading “Home automation, part 2”

Word games for Scrabble training

I enjoy word games like Scrabble and decided to write a couple of games that I could use both for the pleasure of playing, and also as training aids for playing Scrabble and other word games.

Anagram game

The first I wrote is an anagram finding game, simply called wordgame. It shows seven “tiles” any you try to find all of the anagrams.

Anagram game

Word finder game

The other game I wrote is a “word finder“. It can be played on mobile (phone) or desktop devices.