Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HassOS Migration #25

Merged
merged 23 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
68fbc04
[hassos migration] update gitignore
zanix Oct 27, 2023
b473e60
[hassos migration] settings, stock blueprints
zanix Oct 27, 2023
f92a264
[hassos migration] move entities
zanix Oct 27, 2023
1858ae5
[hassos migration] move integrations to packages
zanix Oct 27, 2023
ea60c3d
[hassos migration] move customizations to customize
zanix Oct 27, 2023
1e3b002
[hassos migration] clean up www
zanix Oct 27, 2023
fbd85b7
[hassos migration] update and rename scripts
zanix Oct 27, 2023
04b53b6
[hassos migration] update and rename entities
zanix Oct 27, 2023
8d4e81f
[hassos migration] update static dashboards
zanix Oct 27, 2023
d052214
[hassos migration] update jinja templates
zanix Oct 27, 2023
ce2ad08
[hassos migration] secrets, config, readme
zanix Oct 27, 2023
a8402ae
[hassos migration] fix missing entities
zanix Oct 27, 2023
eed2ab3
update build actions, esphome, logger
zanix Oct 27, 2023
d6c6b2e
[hassos migration] more migration cleanup
zanix Oct 29, 2023
824ae69
[hassos migration] update smart display
zanix Oct 29, 2023
bb185dc
[hassos migration] update automations
zanix Oct 29, 2023
6dddabe
[hassos migration] update ui
zanix Oct 29, 2023
b73b661
[hassos migration] update readme
zanix Oct 29, 2023
edcbfd8
[hassos migration] influxdb, recorder
zanix Oct 30, 2023
e977a00
[hassos migration] fix speedtest
zanix Oct 30, 2023
6b67c3e
[hassos migration] fix database file size
zanix Oct 30, 2023
f5acc73
[hassos migration] update ui, readme
zanix Oct 30, 2023
74f29c0
[hassos migration] fix version in readme
zanix Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 0 additions & 26 deletions .github/workflows/build.yaml

This file was deleted.

114 changes: 114 additions & 0 deletions .github/workflows/home-assistant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
# Source: https://github.com/frenck/action-home-assistant
# Examples: https://github.com/frenck/home-assistant-config/blob/master/.github/workflows/home-assistant.yml
# https://github.com/metbril/home-assistant-config/blob/main/.github/workflows/ha-config-check.yml
#
name: Home Assistant CI
# yamllint disable-line rule:truthy
on:
push:
pull_request:
schedule:
- cron: 0 12 * * 4
jobs:
yamllint:
name: 🧹 YAML Lint
runs-on: ubuntu-latest
steps:
- name: 📥 Check out repository
uses: actions/[email protected]
- name: 🚀 Run YAMLlint
uses: frenck/[email protected]

remarklint:
name: 🧹 Remark Lint
runs-on: ubuntu-latest
steps:
- name: 📥 Check out repository
uses: actions/[email protected]
- name: 🚀 Run Remark lint
uses: "docker://pipelinecomponents/remark-lint:latest"
continue-on-error: true
with:
args: "remark --no-stdout --color --frail --use preset-lint-recommended ."

ha_version:
name: "🏠 Get HA Version"
runs-on: ubuntu-latest
outputs:
current_version: ${{ steps.currentver.outputs.current_version }}
steps:
- name: 📥 Check out repository
uses: actions/[email protected]
- name: 🚀 Get Installed Version from .HA_VERSION
id: currentver
run: |
HA_VERSION=$(<.HA_VERSION)
echo $HA_VERSION
echo "current_version=$HA_VERSION" >> $GITHUB_OUTPUT

home-assistant:
name: "🏠 HA Core ${{ matrix.version }} Check"
needs: [yamllint, ha_version]
runs-on: ubuntu-latest
strategy:
matrix:
version: ["${{ needs.ha_version.outputs.current_version }}", "stable", "beta", "dev"]
steps:
- name: 📥 Check out repository
uses: actions/[email protected]

- name: 📄 Create empty files
run: |
touch ./home-assistant_v2.db
touch ./home-assistant.log

- name: 📁 Create custom_components folder
run: |
mkdir -p ./custom_components

# Check out custom components that require YAML configuration.
# yamllint disable rule:line-length

- name: 📥 Clone custom component (Dreamscreen)
run: |
git clone https://github.com/J3n50m4t/Home-Assistant-DreamScreen-Service.git
mv -v Home-Assistant-DreamScreen-Service/custom_components/* ./custom_components

- name: 📥 Clone custom component (UniFi Status)
run: |
git clone https://github.com/zvldz/unifi_status.git
mv -v unifi_status/custom_components/* ./custom_components

# yamllint enable rule:line-length

- name: 🚀 Run Home Assistant Configuration Check
uses: frenck/[email protected]
with:
path: "."
secrets: ./.stubs/secrets.yaml
version: "${{ matrix.version }}"

esphome:
name: "🛠️ ESPHome Check"
runs-on: ubuntu-latest
needs: [yamllint]
steps:
- name: 📥 Check out repository
uses: actions/[email protected]
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install esphome
pip list
esphome version
- name: Copy secrets stub into configuration folder
run: cp ./.stubs/espsecrets.yaml ./esphome/secrets.yaml
- name: 🚀 Run ESPHome on all files
# yamllint disable rule:line-length
run: |
for file in $(find ./esphome -type f -name "*.yaml" -maxdepth 1 -not -name "secrets.yaml"); do esphome config "${file}"; done
25 changes: 0 additions & 25 deletions .github/workflows/linters.yaml

This file was deleted.

28 changes: 10 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
!/.gitignore
!/.travis.yml
!/.stubs/

._*
Expand All @@ -26,28 +25,21 @@
.storage
deps

# hacs folders
custom_components
# themes
www/community/

# folders with sensitive data
/backups
.history
/icloud/*
/image
/tts
zigbee2mqtt
www/calendars
www/photos
www/mail_and_packages

# files with sensitive data
.ps4-games*
/secrets.yaml
google_cloud.json
go2rtc*
/google_cloud.json
govee_learning.yaml
ip_bans.yaml
known_devices*
rtsp2webrtc*
.ps4-games*
custom_components/mail_and_packages/images/**/*.gif
custom_components/mail_and_packages/images/**/*.jpg
custom_components/mail_and_packages/images/**/*.mp4
custom_components/mail_and_packages/images/*mailerProvidedImage*
www/mail_and_packages/*mailerProvidedImage*
www/mail_and_packages/**/*.gif
www/mail_and_packages/**/*.jpg
www/mail_and_packages/**/*.mp4
9 changes: 9 additions & 0 deletions .stubs/espsecrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# Example Secrets
#
wifi_ssid: "wifi_ssid"
wifi_password: "wifi_password"
ota_password: "ota_password"
ap_password: "ap_password"
# Not my real key, nice try!
encryption_key: "QTuVWVmiUMboASbE3m5cpAN2wEKp80WfESFjmsNTlaM="
11 changes: 0 additions & 11 deletions .stubs/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
# Example Secrets
#
http_trusted_proxies:
- 127.0.0.1
- 10.10.10.10
- ::1

dreamscreen_family_room: 10.10.10.10

canon_host: 10.10.10.10
Expand All @@ -16,12 +11,6 @@ influxdb_host: 10.10.10.10
influxdb_token: api_token
influxdb_organization: ord_id

media_dirs_sounds: www/sounds

notify_join_api_key: api_key

recorder_db_url: mysql://username:[email protected]/database

smart_display_api_brightness: http://10.10.10.10:8080/api/brightness
smart_display_api_monitor: http://10.10.10.10:8080/api/monitor

Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"keesschollaart.vscode-home-assistant"
"keesschollaart.vscode-home-assistant",
"esbenp.prettier-vscode"
]
}
105 changes: 92 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,105 @@
{
"files.associations": {
".yamllint": "yaml",
"*.dash": "yaml",
"*.conf": "json",
"**/esphome/*.yaml": "esphome",
"**/esphome/**/*.yaml": "esphome",
"*.jinja": "home-assistant-jinja",
"*.log.*": "log",
"*.yaml": "home-assistant",
"*.yaml.disabled": "home-assistant",
"*.conf": "json",
"core.*": "json",
".yamllint": "yaml",
"*.jinja": "home-assistant-jinja"
"core.*": "json"
},
"files.exclude": {
".Trash-0/**": true,
"**/__pycache__": true,
"**/.cloud": false,
"**/.DS_Store": true,
"**/.git": true,
"**/.HA_VERSION": false,
"**/.storage": false,
"**/*.db-shm": true,
"**/*.db-wal": true,
"**/*.db": true,
"**/deps/**": true,
"**/node_modules": true
},
"files.insertFinalNewline": true,
"files.watcherExclude": {
".nfs**": true,
".Trash-0/**": true,
"**/__pycache__/**": true,
"**/._*": true,
"**/.cloud": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.HA_VERSION": true,
"**/.storage": true,
"**/*.db-shm": true,
"**/*.db-wal": true,
"**/*.db": true,
"**/*.log": true,
"**/deps/**": true,
"**/node_modules": true,
"**/OZW_Log.txt": true,
"**/pyozw.sqlite": true
},
"fontAwesomeAutocomplete.disableTriggerWordAutoClearPatterns": [
"**/*.yaml"
"**/*.yaml"
],
"fontAwesomeAutocomplete.insertionTemplate": {
"**/*.yaml": "{style}:{name}"
"**/*.yaml": "{style}:{name}"
},
"fontAwesomeAutocomplete.version": "5",
"fontAwesomeAutocomplete.triggerWord": "fa",
"fontAwesomeAutocomplete.version": "6",
"search.exclude": {
".Trash-0/**": true,
"**/__pycache__/**": true,
"**/._*": true,
"**/.cloud": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.git": true,
"**/.HA_VERSION": true,
"**/.storage": true,
"**/*.db-shm": true,
"**/*.db-wal": true,
"**/*.db": true,
"**/*.log": true,
"**/deps/**": true,
"**/node_modules": true,
"**/OZW_Log.txt": true,
"**/pyozw.sqlite": true
},
"vscode-yaml-sort.schema": "HOMEASSISTANT_SCHEMA",
"yaml.customTags": [
"!secret",
"!include_dir_list",
"!include_dir_named",
"!include_dir_merge_list",
"!include_dir_merge_named"
"!env_var scalar",
"!lambda scalar",
"!include_dir_list scalar",
"!include_dir_merge_list scalar",
"!include_dir_merge_named scalar",
"!include_dir_named scalar",
"!include scalar",
"!input scalar",
"!secret scalar"
],
"vscode-yaml-sort.schema": "HOMEASSISTANT_SCHEMA"
"[home-assistant]": {
"editor.autoIndent": "advanced",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false,
"editor.formatOnPaste": false
},
"[yaml]": {
"editor.autoIndent": "keep",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
}
}
4 changes: 2 additions & 2 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ ignore: |
.history/
blueprints/
custom_components/
integrations/keymaster/
lovelace/minimalist.yaml
packages/keymaster/
themes/
zigbee2mqtt/
automations.yaml
customize.yaml
govee_learning.yaml
Expand Down
Loading
Loading