Skip to content

Commit

Permalink
Update 2021.4.3
Browse files Browse the repository at this point in the history
- Add hacs.json (#7)
- update README
- move bash scripts to separate folder
  • Loading branch information
agneevX committed Apr 14, 2021
1 parent b0ec415 commit ab45835
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
42 changes: 34 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This layout was designed mobile-first.

- [Home Assistant setup](#home-assistant-setup)
- [Background](#background)
- [Themes](#themes)
- [Add to HACS](#add-to-hacs)
- [Custom implementations](#custom-implementations)
- [Alexa devices control](#alexa-devices-control)
- [Internet health](#internet-health)
Expand Down Expand Up @@ -54,6 +56,18 @@ Home Assistant Core installation on Raspberry Pi 4, with MySQL.

More details [here](https://github.com/agneevX/server-setup).

## Themes

| **Milky White** | **Kinda Dark** | **Pure Black** |
| ----------- | ---------- | --------- |
| ![Milky White](https://user-images.githubusercontent.com/19761269/114695988-cf353700-9d39-11eb-92d9-9a4a5c181f32.PNG) | ![Kinda Dark](https://user-images.githubusercontent.com/19761269/114695994-d0666400-9d39-11eb-9f05-a03f7793c7f9.PNG) | ![Pure Black](https://user-images.githubusercontent.com/19761269/114695952-c9d7ec80-9d39-11eb-9632-628cb446678e.PNG) |

## Add to HACS

[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)

This repository can be added to HACS as a custom repository. A guide can be found [here](https://hacs.xyz/docs/faq/custom_repositories/).

---

[<i>Skip to lovelace layout</i>](#dashboard)
Expand All @@ -68,6 +82,8 @@ With custom component `Alexa Media Player`, Home Assistant is able to control an

This requires the use of `input_boolean` helpers to control the state of the entity.

<details><summary>Expand</summary>

E.g. to control a plug...

```yaml
Expand Down Expand Up @@ -96,10 +112,14 @@ switch:
media_content_type: custom
```
</details>
### Internet health
Shows internet packet loss in `%`, if any. Useful for real-time applications like gaming or VoIP calls.

<details><summary>Expand</summary>

```yaml
# configuration.yaml
binary_sensor:
Expand All @@ -112,7 +132,7 @@ sensor:
- platform: history_stats
name: int_internet_health
entity_id: binary_sensor.cloudflare_dns_ping
state: "on"
state: 'on'
type: ratio
end: "{{ now() }}"
duration: 00:05:00
Expand All @@ -125,12 +145,16 @@ sensor:
unit_of_measurement: '%'
```

</details>

### Lo-fi beats

Plays Lo-fi beats live stream from YouTube.

This requires `screen`, `mpv` and `youtube-dl`/`youtube-dlc` to be installed.

<details><summary>Expand</summary>

```yaml
# configuration.yaml
switch:
Expand All @@ -157,12 +181,16 @@ if [[ $MESSAGE == 'lofi_off' ]]; then screen -S lofi -X quit; fi
# Truncated. Full in ./hass_socket_script.sh
```

</details>

### Soundbar control

Controls the volume of ALSA - 3.5mm port on the Raspberry Pi. Requires `alsamixer` to be installed.

This involves a `input_number` helper, an automation and a series of shell commands.

<details><summary>Expand</summary>

```yaml
# configuration.yaml
input_number:
Expand Down Expand Up @@ -195,6 +223,8 @@ if [[ $MESSAGE == 'amixer_5' ]]; then amixer -q cset numid=1 -- -7399; fi
# Truncated. Full in ./hass_socket_script.sh
```

</details>

---

## Lovelace layout
Expand All @@ -208,8 +238,7 @@ if [[ $MESSAGE == 'amixer_5' ]]; then amixer -q cset numid=1 -- -7399; fi
### Badges

- *People presence*
- Network in
- Network out
- Network in/out
- HACS updates

_This is the only view that contain badges._
Expand Down Expand Up @@ -382,7 +411,7 @@ Graphs pings to local ISP node and Cloudflare DNS. This card is very helpful in

- Network devices list

Using the Netgear integration, this card shows all network-connected devices. Dynamically sorted such that the last updated device is always on top.
Using the Netgear integration, this card shows all network-connected devices. Dynamically sorted such that the last-updated device is always on top.

---

Expand Down Expand Up @@ -427,8 +456,7 @@ Using the Netgear integration, this card shows all network-connected devices. Dy

### Graph row II

- Network in
- Network out
- Network in/out

The four graph cards provide an overview of Plex/network activity in one place and indicates potential network issues.

Expand Down Expand Up @@ -474,8 +502,6 @@ The four graph cards provide an overview of Plex/network activity in one place a
## Notes

- `int` are "internal" entities that are used inside templates.
- Shutting down/Rebooting X200M involves a program named `Assistant Computer Control` that runs on the laptop.
- A cURL request calls a IFTTT webhook which writes a specific phrase in a file inside OneDrive that the software is able to recognize and perform actions accordingly.
- The header that is used for separating cards is from [soft-ui](https://github.com/N-l1/lovelace-soft-ui).

---
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "agneevX's HA setup",
"render_readme": true
}

0 comments on commit ab45835

Please sign in to comment.