Skip to content

Commit

Permalink
Merge pull request #1 from denysdovhan/move-to-new-repo
Browse files Browse the repository at this point in the history
Migrate to HA OS
  • Loading branch information
denysdovhan committed Apr 3, 2024
2 parents 781ccf0 + 8f02ddd commit ee8d520
Show file tree
Hide file tree
Showing 64 changed files with 498 additions and 138 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .HA_VERSION
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.12.1
2024.3.3
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig
# https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: denysdovhan
patreon: denysdovhan
custom: [buymeacoffee.com/denysdovhan]
50 changes: 50 additions & 0 deletions .github/workflows/homeassistant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Home Assistant CI

on:
push:
branches:
- main
pull_request:
schedule:
- cron: 0 12 * * *

jobs:
home-assistant:
name: Home Assistant Config
runs-on: ubuntu-latest
strategy:
matrix:
version: ['stable', 'beta', 'dev']
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Prepare Stubs
run: cp -R ./stubs/* .

- name: 📥 Clone custom component - Powercalc
run: |
git clone https://github.com/bramstroker/homeassistant-powercalc.git
mv -v homeassistant-powercalc/custom_components/* custom_components
- name: 📥 Clone custom component - Car Wash
run: |
git clone https://github.com/Limych/ha-car_wash.git
mv -v ha-car_wash/custom_components/* custom_components
- name: 📥 Clone custom component - Snowtire
run: |
git clone https://github.com/Limych/ha-snowtire.git
mv -v ha-snowtire/custom_components/* custom_components
- name: 📥 Clone custom component - xiaomi_cloud_map_extractor
run: |
git clone https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor.git
mv -v Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/custom_components/* custom_components
- name: Home Assistant Check
uses: frenck/action-home-assistant@v1
with:
path: .
secrets: secrets.example.yaml
version: '${{ matrix.version }}'
51 changes: 51 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Generic ignores
*.log*
*.conf
*.db
*.db.corrupt.*
*.db-shm
*.db-wal
*.pyc
._*
__pycache__
.env
*.DS_Store

# Ignore folders
.deleted
.ssh
.storage
.cloud
.google.token
deps
tts
image

# Home Assistant
secrets.yaml
ip_bans.yaml
known_devices.yaml
.homekit.state
.ps4-games*.json
GA_SERVICE_ACCOUNT.json
www/community
/custom_components/**
!/custom_components/README.md
watchman_report.txt
token-*.txt

# Zigbee2MQTT
/zigbee2mqtt/secret.yaml
/zigbee2mqtt/state.json
/zigbee2mqtt/log
/zigbee2mqtt/coordinator_backup.json

# PlayStation to MQTT
/ps5-mqtt/credentials.json

# IDE
.vscode
.Trash*

# Specific keeps
!.gitkeep
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://pre-commit.com/

fail_fast: true
exclude: custom_components
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.3.0'
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v2.3.0'
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
- id: check-symlinks
- id: detect-private-key
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
automations.yaml
scripts.yaml
blueprints
custom_components
www
.cloud
.ssh
.storage
deps

*.db*
*.conf
*.log
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Denys Dovhan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua/)

# Denys Dovhan Smart Home

![Home](https://user-images.githubusercontent.com/3459374/152371766-1d2a1e17-34d3-4fe6-9e6d-aded02f14de1.png)

[![GitHub Workflow Status][github-img]][github-url]
[![Last Commit][last-commit-img]][github-url]
[![Commit Activity][commit-activity-img]][github-url]
[![License][license-img]][license-url]
[![GitHub Stars][stars-img]][github-url]
[![Twitter Followers][twitter-img]][twitter-url]

This is my personal Home Assistant configuration, awakening my home with automations. I hope this will help you inspire on the way to built your own smart home.

[**Read the documentation**](https://denysdovhan.com/smart-home)

I also have a [public Notion board](https://www.notion.so/denysdovhan/f09ea06da5db4cfa84d3ca50417b93b2?v=5fccab53c2fd4ac188ee0b92c2ca1cb9) with ideas and tasks for my smart home. You can follow and comment my plans there.

## License

[MIT][license-url] © [Denys Dovhan][denysdovhan]

<!-- References -->

[github-url]: https://github.com/denysdovhan/smart-home
[github-img]: https://img.shields.io/github/actions/workflow/status/denysdovhan/smart-home/homeassistant.yml?style=flat-square
[last-commit-img]: https://img.shields.io/github/last-commit/denysdovhan/smart-home?style=flat-square
[commit-activity-img]: https://img.shields.io/github/commit-activity/m/denysdovhan/smart-home?style=flat-square
[license-url]: https://github.com/denysdovhan/smart-home/blob/master/LICENSE
[license-img]: https://img.shields.io/github/license/denysdovhan/smart-home?style=flat-square
[twitter-url]: https://twitter.com/denysdovhan
[twitter-img]: https://img.shields.io/twitter/follow/denysdovhan?label=Follow
[stars-img]: https://img.shields.io/github/stars/denysdovhan/smart-home?style=social
[denysdovhan]: https://denysdovhan.com
Loading

0 comments on commit ee8d520

Please sign in to comment.