Author image

Sven's development notes

Notes about mobile development, home assistant & other technical topics.

Cover image

Use a speaker with Home Assistant on a RaspberryPi to output audio messages

For a long time I wanted to add audio to my Home Assistant Setup. My first use case is that I want Home Assistant to literally tell me when I should air my room based on the current CO2 value.

Link

Deploy a Gridsome page using Github Actions, rclone and ftp

I use Gridsome, a static site generator, to create this blog. I wanted to automate my deployment process. My goal was that as soon as I push changes to a github repository the site is build and deployed to my webspace.

Link
Cover image

Backup Home Assistant data to a Diskstation using rsync

How to setup rsync on a Synology Diskstation and use it to backup data from Home Assistant to the NAS.

Link
Cover image

Power on and off Diskstation with Home Assistant

I use my Synology Diskstation mainly as a backup device. Therefore it does not need to run all the time. In the past I configured a Power schedule directly within the Diskstation. It would turn on at a certain time and power off every night. Now I wanted a smarter behaviour e.g. I would like to automatically turn on the Diskstation when I come home, so my Smartphone can backup data. Another example would be to power on the diskstation to store a Home Assistant Backup and afterwards power it off again. Also it would be nice if I could turn it off with my good night-Switch next to my bed. I achieved this by controlling the Diskstation via Home Assistant. This article describes the configuration steps, necessary for this.

Link
Cover image

Flutter flavors and ios schemes

In my latest flutter project I needed to create different versions of my app for the different development environments. A development version which uses the development backend, a staging version which uses the staging backend and, you guessed right, a production version which uses the production servers. In Android those versions are called flavors and in iOS this can be done with schemes. But how can this be achieved within flutter? There are a few blog posts online showing how to do it. For android those tutorials worked great but for iOS in everyone of them a litte piece of information was missing and I had to play arround quite some time before I got it right. Therefore follows my step-for-step guide for configuring flavors in flutter for iOS.

Link