Skip to main content

Posts

Showing posts with the label How To

How to use the Synology Chat platform with Home Assistant

Get notifications and now images sent to your mobile from Home Assistant so you can keep an eye on your house. If you own a Synology NAS, this is a totally free notification option with no file limits. Awesome! No Android smart watch support for Chat just yet but hopefully that is coming soon. An example script that uses the platform is shown below - service: notify.hass_synochat data: message: "Pool Gate was opened" data: file_url: http://ipaddressofhass:8123/local/images/pool_gate.jpg N.B Ensure you turn off your phones battery optimisation feature for the Synology Chat app otherwise you won't get notifications coming through in near real time. Buy your Synology NAS here . Home Assistant Chat add-on here . Info on the Synology Chat platform is here .

Getting Hass.io to boot from a USB thumb drive without a SD Card (Pi3)

If you want to be able to exclusively use an external USB drive without a Micro SD  Card in a Pi3 for Hass.io , these are the steps you’ll need to make it happen. Installed Raspbian1 Lite (2017-04-10) on a MicroSD card and followed the instructions here3 to enable USB boot mode. Rebooted Pi then shut down a few minutes later. Burned hassio2 Pi3 image to a 16GB USB drive. Booted PC into Gparted1 to re-partition hassio image. Increased /dev/sdb4 from 1GB to around 4GB (must do first otherwise you can’t expand the resin-data partition). Increased /dev/sdb6 from 1GB to pretty much whatever was left. With the modified thumb drive back in my PC, I added the following located in the resin-boot drive and also in the resin-rootA partition inside the resin-boot folder : I changed the “root” option in cmdline.txt to: root=/dev/sda2 and I added the usb boot line below to config.txt , right at the end: program_usb_boot_mode=1 I then put the reworked thumb drive back in my ...

My collection of Hass.io help videos

I made a few videos detailing my experience with Hass.io ; the all-in-one version of Home Assistant that makes it easier to update Home Assistant and install add-ons. Ben from BRUH Automation also added one today (26th July 2017) that goes into great detail and that’s at the bottom too. Enjoy.

Syncing two Sonoff’s for 2-way light switching

For as long as I've been playing with home automation, I've wanted a straight forward low-cost solution for replacing standard light switches. Although I have several Z-wave dimmers and Aeon Labs touch panels, these work out to be $180 NZD each! At least in NZ, the common 2-way and 3-way light circuits have the mains coming in on one switch and the load connected to another. The two switches are connected together as shown below.

How to reboot Kodi using Google Home and ha-bridge

If you have an instance of ha-bridge (highly recommended) running on your network like I do, it enables you to create devices that can be ‘seen’ by Google Home and Alexa for remote control via voice. Recent versions of ha-bridge allow you to create custom commands, one of those being JSON commands so you can set up a device that sends something like the following to your Kodi instance to reboot it.

Running iPerf in Docker on Synology NAS >6.1

I have a DS713+ that supports Docker and needed a way to install an iPerf3 server for WLAN testing. Fortunately, that is pretty easy. Activate SSH on your Synology so you can remote in. Using PuTTY, login as an admin user and type the following: sudo docker pull networkstatic/iperf3 (then type your admin password again)

Building an automated iPerf3 server with Ubuntu on Odroid C1+

The Odroid devices make great iPerf servers for portable use as they can be powered by 5V micro USB and have a Gigabit Ethernet adapter on its own bus so they don’t have the limitations the Raspberry Pi’s do. OK, let’s get started. We are going to assume that you already have Ubuntu 16.04 up and running but if not, you can download official images here http://odroid.com/dokuwiki/doku.php?id=en:c1_release_linux_ubuntu . Extract the downloaded image and burn it to a SD Card using Win32 Disk Imager. I only used a 2GB card and it works fine. First boot might take a minute or two. After it’s booted, scan your network (Fing) to find your device IP. It should show up as a device by JF Light Industries with the MAC vendor as Wibrain.

Running ha-bridge inside LibreELEC on your Pi2/3…yes, really!

This is huge! Thanks to aptalca for creating an arm based Docker container for the Raspberry Pi (and Odroid C2!) that allows ha-bridge to run inside the LibreELEC Docker add-on! First thing you need to do is ensure your Raspberry Pi LibreELEC has a static IP address so you always know how to get to the ha-bridge web interface. Kodi > Programs > LibreELEC configuration > Connections then select your active connection (LAN or Wi-Fi) and use the context menu to select ‘ Edit ’. Scroll to IPV4 and change your IP address settings so they are static by using the Manual settings. Of course, you could always create a DHCP lease in your router if you are savvy with that and that is the better way to go.

How to flash ESPEasy onto the Sonoff Touch for MQTT control

You can completely remove the low voltage board and connect as shown below. GPIO0 needs to be pulled to ground on power up (it can be left grounded during flashing) to enter programming mode. Power the device from your FTDI programmer set to 3.3V . The Sonoff Touch is a nice glass touch panel based on an ESP 8285 with 1MB of integrated flash that can be quite easily flashed with a self compiled version of ESP Easy.  You need to compile yourself as the builds available online are all made for the ESP8266 and will not work with the Sonoff Touch.

How to enable Samba on the HASSBian image

The videos prior to 1st Feb 2017 like Ben's one below all indicate the following instructions for installing Samba but if you use the HASSBian image like I've now done, the path to 'Home Assistant' in the samba.conf file is wrong.   [HOME ASSISTANT] path = /var/opt/homeassistant becomes

Enabling the integrated Mosquitto broker on the HASSbian image

The Home Assistant image HASSbian has the Mosquitto MQTT broker integrated into the image but it is not enabled by default. To get it working and persistent on reboot, perform the following: sudo systemctl enable mosquitto sudo systemctl start mosquitto sudo reboot To test, once your system is back up, type sudo systemctl status mosquitto.service and you should get back the following:

Adding 4 relays to your Home Assistant Pi with Arduino UNO

For those that want 4 relays cheaply using a clone of the Seeed studio V2.0 relay board available on AliExpress here , this is how it's configured in HA. Simply follow the Arduino instructions to load the Firmata firmware on your board then plug the Arduino board into your Raspberry Pi.

Getting HADashboard up and running on Jessie for use with Home Assistant

HADashboard is a very cool dashboard for use with Home Assistant. I’ve tested the installation process on a Raspberry Pi1 version B (yes I know) and although it took nearly a whole day to get working, work it does and by golly, does it look good. More info on GitHub here https://github.com/home-assistant/hadashboard First step is to install docker on your Raspberry Pi if you have never done that before: curl -sSL get.docker.com | sh If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker pi Set Docker to auto-start: sudo systemctl enable docker More info here and credit to Alex Ellis http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/

My Notepad++ tricks when editing YAML files in Home Assistant

To comment out a whole section in one go: Highlight the text you want to comment out and use CTRL + Q. If you do this at the start of a line, it will only comment that line. CTRL + Q is toggle mode (comment on/off). CTRL + K will allow you to add multiple comments one after the other.

Installing ha-bridge on your Raspberry Pi

EDIT: Updated 14th June 2017 to reflect version 4.5.5. Default port is now 80 to keep Google Home happy and service now supports MQTT! Advice on backups also added 7th Feb. Version 4x also supports adding a Home Assistant instance which is great! Want to control your Vera, Harmony hub or Home Assistant entities with your Amazon echo or Google Home? ha-bridge is the best way to achieve that and installation is actually quite easy and takes less than 5 minutes. Here are the steps.

Windows 10 search doesn't show results from Settings or Control Panel

Run Lpksetup /u and uninstall any possible duplicate language you find there, restart Windows and wait a few minutes. Worked for me after scouring the Internet for hours. This also provided some users with relief but did not work for me. %LOCALAPPDATA%\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy\LocalState Right-click the Indexed folder → Properties → Advanced → Check Allow files in this folder to have indexed in addition to file properties . Click Apply and Exit. If it is already checked, uncheck it → apply → recheck it → apply and wait a few minutes for the folder to be reindexed. Reference machine was a Lenovo T400 with a clean install of Windows 10. Source :

How to rename photos using the date and time the photo was taken as the filename

So you have thousands of photos with random file names. What's the best way to sort them? Although it would be nice to have every photo contain the event name and the date is was taken, managing this is a nightmare. Also, to make the photos cross-platform compatible, the photos should ideally be in folders. To have them sort chronologically, the photos name should start with the year it was taken, then the month, day, hour, minute and second. That makes Kodi very happy as having too many photos in one folder will freeze things up. Other programs like iPhoto don't really care about the folder structure and file name anyway as photos can be sorted using the EXIF data embedded in each photo.

How to enable a GPIO IR Receiver on LibreELEC 7.x.x

Getting this to work is actually pretty easy now. Login to your Pi using SSH and perform the following commands in order. mount -o remount,rw /flash nano /flash/config.txt On the last line, paste in the following text device_tree_overlay=lirc-rpi CTRL + X to exit and choose 'Y' save. mount -o remount,ro /flash reboot (Or you could remove the MicroSD card and edit the config.txt in Windows).

Preserving 'Watched State' when re-organising your Kodi Library

I have lots of friends with various Kodi devices (NUC, Pi, Zbox etc.) and most with Synology NAS boxes but unfortunately, many also with media libraries that are a mess. Asked to get a house with three Kodi devices onto one central Synology based database, I wanted a way to export the media library preserving the watched state and another way to organise the media into separate folders.

Dremel 3000 test run after repair (Part 3)