Home Assistant Configuration

In the first part I described how I installed Home Assistant on the host Fujitsu S920.
Well, here I will continue  home assistants configuration.

(Started on 12 Dec. 2022)

Set Up Tuya Integration in Home Assistant

Before HA configuration, you should goto the Tuya IoT Platform and create a cloud develop project.
Register and create a Tuya developer account and create an account on the Tuya Cloud.
After creating, go to the Cloud Management page under IoT Platform -> Cloud -> Development  and create a cloud Project.

On the Home Assistant Integrations page in the Setting panel, click the + button in the lower right and search for Tuya and fill all fields.
The ACCESS_ID and ACCESS_KEY are located on Tuya project page under Cloud/Overview

Install Home Assistant mobile apps on Phone

Note: Don’t forget to renew your Tuya developer license here from time to time!

Setup secure remote access to Home Assistant by using DuckDNS, Let’s Encrypt and NGINX

  1. Create an acount on www.duckdns.org and a domain [something.duckdns.org]
  2. Install the DuckDNS add-on from the Home Assistant Add-on Store and complete DuckDNS add-on’s configuration
    Go to Configuration and click the three dots at the top. Choose Edit in YAML.

    - something.duckdns.org
    token: xxx
    aliases: []
    accept_terms: true
    algo: secp384r1
    certfile: fullchain.pem
    keyfile: privkey.pem
    seconds: 300
  3. Set up a port forwarding on my FRITZ!Box
    on Internet in the left menu and select Permit Access from drop-down list and forward the Port xxxx externally to allows access to Hassio
  4. In Home Assistant, install the add-on NGINX Home Assistant SSL proxy

    Click add-on’s Configuration page and enter domain and update the port to e.g. 9123
domain: something.duckdns.org
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: false
active: true
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf
  • Click the folder icon in the top left of the file editor window to open the file browser sidebar.
  • Click the configuration.yaml file (in the /config/ folder) to load it into the main file editor window.

Edit configuration.yaml as follow:

# Load frontend themes from the themes folder
  themes: !include_dir_merge_named themes

  use_x_forwarded_for: true
    - # Add the IP address of the proxy server
    - # Nginx Proxy Manager
  ip_ban_enabled: true
  login_attempts_threshold: 3

    title: ESPHome
    icon: mdi:chip
    url: http://192.168.178.xxx:6052
    require_admin: true


To fix issues with addons using their own web server, create a file called nginx_proxy_default_fix_ingress.conf under /share

location /api {
    proxy_connect_timeout 60;
    proxy_read_timeout 60;
    proxy_send_timeout 60;
    proxy_intercept_errors off;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header Host $host:8126;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_pass http://homeassistant.local.hass.io:8123/api;
  • In case of any changes, we verifying the changes by running a configuration check.
    Navigating to Developer Tools -> YAML and then by clicking on the Check configuration button.
  • Finally and in the end we update home assistant URL  to new external URL (something.duckdns.org) under Settings > System > Network.
    Now I can access the Home Assistent interface internally via http and externally via https. For example https://something.duckdns.org:9123

Installing the Terminal

The next thing that is needed for me is Terminal.
It allows me to log in to Hass.io by using the web terminal.

  • Install the Terminal from Setting/add-on.
  • Start the Terminal add-on
  • Check the logs of the “Terminal” add-on to see if everything went well.

Install ESPHome Dashboard using Docker

sudo docker run -d --name="esphome" --net=host -p 6052:6052 -p 6123:6123 -e TZ=Europe/Berlin -v /usr/share/hassio/homeassistant/esphome:/config esphome/esphome

ESPHome Command Line

apt install python3 python3-pip
python3 --version
Python 3.9.15
pip3 install esphome

esphome logs sonoff.yaml
esphome compile sonoff.yaml
esphome run sonoff.yaml --device COM10

Add ESPHome to the Home Assistant instance via the user interface

Installing HACS community store

It allows to customise the Home Assistant with plugins and themes from community


  1. requered A GitHub account
  2. cd /config & mkdir custom_components & cd custom_components
    Run the HACS download script: (https://hacs.xyz/docs/configuration/basic)

    wget -O - https://raw.githubusercontent.com/hacs/get/main/get | bash -
  3. Go to Home Assistant \Setting \ Devices & Services and click on Integration, search HACS and install and submit HACS
  4.  added this to the configuration.yaml and rebooted.
      themes: !include_dir_merge_named themes

Install Mushroom and Mushroom Theme from the HACS Frontend

To create Custome Card and design

Install Alarmo from the HACS Store

It allows creating an alarm system for Heating Room.

  • Go into HACS, Integrations, and click on Explore & download repositories. Search for Alarmo and click on it. Click on Download
  • After completion, restart Home Assistant.
  • Go to Settings, Devices & Services, and click on Add integration. Search for Alarmo and click on it. click on Finish.




Installation of eWeLink Home Assistant Add-on

Open the HassOS dashboard, switch to the Add-on Store tab.
Click the vertical ellipsis (three vertical dots) in the upper right corner, select Repositories in the pop-up menu, enter the official add-on address of eWeLink: https://github.com/CoolKit-Technologies/ha-addon in the Manage add-on repositories modal box, click ADD. After closing the modal box, you can see the newly added eWeLink add-on on the Add-on Store page.

Click the eWeLink Smart Home card to open the add-on information page, click INSTALL and wait for the installation to complete, click START to enable the “eWeLink Smart Home” add-on.

Create backup by making a backup.  (Setting / System/ Backups)
Examples – Home Assistant (home-assistant.io)

Home Assistant on Futjitsu Futro S920

Measurement of  flow and return temperatures