Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/benct/home-assistant-config

🏠 My configuration for home-assistant (https://www.home-assistant.io). 🌟 for updates!
https://github.com/benct/home-assistant-config

cards fibaro google-home hassbian home-assistant home-assistant-config home-automation hue iot lovelace netatmo nexa raspberry-pi roborock smarthome telldus ui-lovelace yr

Last synced: 3 months ago
JSON representation

🏠 My configuration for home-assistant (https://www.home-assistant.io). 🌟 for updates!

Lists

README

        

# Home Assistant Configuration

Configuration for my [home-assistant](https://www.home-assistant.io) setup running on
[Home Assistant OS](https://github.com/home-assistant/operating-system) on a
[Raspberry Pi 3 Model B](https://www.raspberrypi.org/products/raspberry-pi-3-model-b/).

![Static version](https://img.shields.io/badge/version-2022.2.6-blue.svg)
![Maintained](https://img.shields.io/maintenance/yes/2022.svg)
![GitHub last commit](https://img.shields.io/github/last-commit/benct/home-assistant-config.svg)
![GitHub code size](https://img.shields.io/github/languages/code-size/benct/home-assistant-config.svg)
[![GitHub licence](https://img.shields.io/github/license/benct/home-assistant-config.svg)](https://github.com/benct/home-assistant-config/blob/master/LICENCE)

## Hardware

- [Raspberry Pi 3 Model B](https://www.raspberrypi.org/products/raspberry-pi-3-model-b/)
- [Raspberry Pi Camera V2](https://www.home-assistant.io/integrations/rpi_camera/)
- [Samsung SmartThings Hub](https://home-assistant.io/integrations/smartthings/)
- [Samsung Washer/Dryer](https://www.home-assistant.io/integrations/smartthings/)
- [Samsung Smart TV](https://home-assistant.io/integrations/samsungtv/)
- [Phillips Hue Hub](https://www.home-assistant.io/integrations/hue/)
- [Google Nest Mini / Hub / Audio](https://www.home-assistant.io/integrations/google_assistant/)
- [Google Chromecast](https://www.home-assistant.io/integrations/cast/)
- [Netatmo Weather Station](https://home-assistant.io/integrations/netatmo/)
- [Xiaomi Roborock Vacuum](https://www.home-assistant.io/integrations/xiaomi_miio/)
- [Mill Heaters](https://www.home-assistant.io/integrations/mill/)

#### Z-Wave/Zigbee Devices
- [Telldus Wall Plug](https://products.z-wavealliance.org/products/1536)
- [Fibaro Wall Plug](https://products.z-wavealliance.org/products/1653)
- [Fibaro Motion Sensor](https://products.z-wavealliance.org/products/2762)
- [Fibaro Smoke Sensor](https://products.z-wavealliance.org/products/1273)
- [Fibaro Flood Sensor](https://products.z-wavealliance.org/products/2791)
- [Fibaro Door/Window Sensor](https://products.z-wavealliance.org/products/2181)
- [Phillips Hue Bulbs / Strips / Play](https://www.home-assistant.io/integrations/hue/)
- [Phillips Hue Plugs](https://www.home-assistant.io/integrations/hue/)
- [SmartThings Button](https://home-assistant.io/integrations/smartthings/)
- [HeatIt Z-TRM3 Thermostat](https://products.z-wavealliance.org/products/3802)

## Integrations

List of installed integrations via the Home Assistant UI.

#### Hubs/Devices
- [SmartThings](https://home-assistant.io/integrations/smartthings/)
- [Phillips Hue](https://www.home-assistant.io/integrations/hue/)
- [Netatmo](https://home-assistant.io/integrations/netatmo/)
- [Xiaomi Miio](https://www.home-assistant.io/integrations/xiaomi_miio/)
- [Mill](https://www.home-assistant.io/integrations/mill/)
- [Tuya](https://www.home-assistant.io/integrations/tuya)
- [GitHub](https://www.home-assistant.io/integrations/github/)

#### Media
- [Google Cast](https://www.home-assistant.io/integrations/cast/)
- [Spotify](https://www.home-assistant.io/integrations/spotify/)

#### Weather
- [Met.no](https://www.home-assistant.io/integrations/met/)

#### System
- [System Monitor](https://www.home-assistant.io/integrations/systemmonitor/)
- [Certificate Expiry](https://www.home-assistant.io/integrations/cert_expiry/)
- [CPU Speed](https://www.home-assistant.io/integrations/cpuspeed/)
- [DNS IP](https://www.home-assistant.io/integrations/dnsip/)
- [RPi Power](https://www.home-assistant.io/integrations/rpi_power/)
- [Supervisor](https://www.home-assistant.io/integrations/hassio/)
- [Version](https://www.home-assistant.io/integrations/version/)
- [Fast.com](https://www.home-assistant.io/integrations/fastdotcom/)
- [HACS](https://hacs.xyz/)

## Frontend

The frontend is using the new Lovelace UI, with a customized configuration and several custom cards.

[Home Assistant Community Store](https://github.com/hacs) (HACS) is used to install and update most of the custom cards/plugins.

### Theme

[Midnight theme](https://github.com/home-assistant-community-themes/midnight) from the HA Community (by marcelhoffs).

### My Lovelace Cards
I've created and currently maintain a few plugins (cards) for Home Assistant's Lovelace UI:

- [xiaomi-vacuum-card](https://github.com/benct/lovelace-xiaomi-vacuum-card)
- [multiple-entity-row](https://github.com/benct/lovelace-multiple-entity-row)
- [github-entity-row](https://github.com/benct/lovelace-github-entity-row)
- [battery-entity-row](https://github.com/benct/lovelace-battery-entity-row)

[![BMC](https://www.buymeacoffee.com/assets/img/custom_images/white_img.png)](https://www.buymeacoff.ee/benct)

## HassOS Maintenance

```bash
ssh [email protected]
```

### SSH to host

- https://gist.github.com/enegaard/a57af286205914bd912270c89650fb1b
- https://developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host

```bash
ssh root@homeassistant -p 22222
```

## Hassbian Maintenance (deprecated)
```bash
cd /home/homeassistant/.homeassistant/

sudo systemctl start [email protected]
sudo systemctl stop [email protected]
sudo systemctl restart [email protected]
```

### Virtual Environment
```bash
sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
```

### Upgrading
```bash
sudo apt-get update
sudo apt-get upgrade
```

Stop the home-assistant service before running the following:
```bash
sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
```

### Certificate

For initial setup see home-assistants [Let's Encrypt](https://www.home-assistant.io/docs/ecosystem/certificates/lets_encrypt/) guide.

```bash
sudo apt-get install certbot
sudo certbot certonly --standalone --preferred-challenges http-01 --email -d
chmod 755 /etc/letsencrypt/live/your.site/
chmod 755 /etc/letsencrypt/archive/your.site/

sudo certbot renew
```

### Nmap Tracker
```bash
sudo apt-get install net-tools nmap
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/nmap
```

## Screenshots

![Home Tab](https://raw.githubusercontent.com/benct/home-assistant-config/master/screenshots/ha-main.png)

![Livingroom Tab](https://raw.githubusercontent.com/benct/home-assistant-config/master/screenshots/ha-livingroom.png)

![Bedroom Tab](https://raw.githubusercontent.com/benct/home-assistant-config/master/screenshots/ha-bedroom.png)

![System Tab](https://raw.githubusercontent.com/benct/home-assistant-config/master/screenshots/ha-system.png)