Compare commits
1 Commits
429cec0c1a
...
main
Author | SHA1 | Date | |
---|---|---|---|
cf852dc3d9 |
65
.github/workflow/build.yaml
vendored
Normal file
65
.github/workflow/build.yaml
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
---
|
||||
name: "Savin's Home Assistant"
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Custom Components (Hass.IO)
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
|
||||
# git checkout $(git describe --tags --always $(git rev-list --tags --max-count=1000) | grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+$" | head -n 1)
|
||||
|
||||
# - name: Install system libs and dependencies
|
||||
# run: |
|
||||
# sudo apt-get -qq update
|
||||
# sudo apt-get -y -qq install libudev-dev ffmpeg
|
||||
# sudo apt-get -y -qq install libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev
|
||||
# sudo apt-get install nodejs
|
||||
|
||||
# - name: Install Prettier
|
||||
# run: |
|
||||
# sudo npm install --global prettier
|
||||
|
||||
# - name: Set up Python 3.13
|
||||
# uses: actions/setup-python@v5
|
||||
# with:
|
||||
# python-version: 3.13
|
||||
|
||||
# - name: Install Python packages (Lint)
|
||||
# run: |
|
||||
# python -m pip install --upgrade pip
|
||||
# pip install black flake8 pylint yamllint
|
||||
|
||||
# - name: YAML Lint
|
||||
# run: |
|
||||
# yamllint ./
|
||||
|
||||
# # - name: Prettier Check Up
|
||||
# # run: |
|
||||
# # prettier --check --no-bracket-spacing '**/*.{yaml,json}'
|
||||
|
||||
# - name: Install Python packages (Hass.IO)
|
||||
# run: |
|
||||
# pip install yq jq
|
||||
# pip install homeassistant
|
||||
|
||||
# - name: Check HassIO configuration
|
||||
# run: |
|
||||
# sudo mkdir -p /config/snapshots
|
||||
# hass --version
|
||||
# mv secrets.yaml.sample secrets.yaml
|
||||
# hass -c . --script check_config | tee check.output
|
||||
# ! less check.output | grep -q "Failed config"
|
||||
|
||||
# # - name: Send a telegram message with job status
|
||||
# # if: always()
|
||||
# # uses: appleboy/telegram-action@master
|
||||
# # with:
|
||||
# # to: ${{ secrets.TELEGRAM_TO }}
|
||||
# # token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
# # args: The last job from repo ({{repo}}) finished with ${{job.status}}.
|
86
.github/workflows/build.yaml
vendored
86
.github/workflows/build.yaml
vendored
@ -1,86 +0,0 @@
|
||||
---
|
||||
name: Savin's Home Assistant
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop]
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.github/**'
|
||||
pull_request:
|
||||
branches: [develop]
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.github/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Custom Components (Hass.IO)
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
|
||||
# git checkout $(git describe --tags --always $(git rev-list --tags --max-count=1000) | grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+$" | head -n 1)
|
||||
|
||||
# - name: Install system libs and dependencies
|
||||
# run: |
|
||||
# sudo apt-get -qq update
|
||||
# sudo apt-get -y -qq install libudev-dev ffmpeg
|
||||
# sudo apt-get -y -qq install libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev
|
||||
# sudo apt-get install nodejs
|
||||
|
||||
# - name: Install Prettier
|
||||
# run: |
|
||||
# sudo npm install --global prettier
|
||||
|
||||
- name: Set up Python 3.13
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.13
|
||||
|
||||
- name: Install Python packages (Lint)
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install black flake8 pylint yamllint colorlog
|
||||
|
||||
# - name: YAML Lint
|
||||
# run: |
|
||||
# yamllint ./
|
||||
|
||||
# # - name: Prettier Check Up
|
||||
# # run: |
|
||||
# # prettier --check --no-bracket-spacing '**/*.{yaml,json}'
|
||||
|
||||
- name: Install Python packages (Hass.IO)
|
||||
run: |
|
||||
pip install yq jq
|
||||
pip install homeassistant
|
||||
echo "Installing numpy, requered by Component: mobile_app, stream and camera\n"
|
||||
pip install numpy
|
||||
echo "Installing numpy, requered by Component: python_script\n"
|
||||
pip install RestrictedPython
|
||||
echo "Installing numpy, requered by Component: twilio\n"
|
||||
pip install twilio
|
||||
echo "Installing numpy, requered by Component: telegram_bot\n"
|
||||
pip install telegram
|
||||
|
||||
- name: Check HassIO configuration
|
||||
run: |
|
||||
sudo mkdir -p /config/www
|
||||
hass --version
|
||||
mv secrets.sample.yaml secrets.yaml
|
||||
ls -la
|
||||
hass -c . --script check_config | tee check.output
|
||||
! less check.output | grep -q "Failed config"
|
||||
|
||||
# # - name: Send a telegram message with job status
|
||||
# # if: always()
|
||||
# # uses: appleboy/telegram-action@master
|
||||
# # with:
|
||||
# # to: ${{ secrets.TELEGRAM_TO }}
|
||||
# # token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
# # args: The last job from repo ({{repo}}) finished with ${{job.status}}.
|
@ -1,91 +0,0 @@
|
||||
system_name: Savin!Home
|
||||
system_latitude: 12.34567
|
||||
system_longitude: -12.34567
|
||||
system_elevation: 68
|
||||
system_timezone: America/New_York
|
||||
system_http_api: [REDACTED]
|
||||
|
||||
trusted_proxy_01: 10.10.10.10
|
||||
|
||||
trusted_network_01: 10.10.10.0/24
|
||||
trusted_network_02: 10.10.11.0/24
|
||||
trusted_network_03: 10.10.12.0/24
|
||||
trusted_network_04: 10.10.13.0/24
|
||||
trusted_network_05: 10.10.14.0/24
|
||||
|
||||
trusted_user_id_01: e7a4f74b143746e4b08b3fa2406dcd7a
|
||||
trusted_user_id_02: 38dda68f32aa4b58a2c358ac5176a9bd
|
||||
|
||||
database_url: postgresql://homeassistant:homeassistant@10.10.10.1:5432/homeassistant?client_encoding=utf8
|
||||
|
||||
device_roborock_01_host: 10.10.10.1
|
||||
device_roborock_01_token: [REDACTED]
|
||||
device_roborock_01_cloud_username: redacted@gmail.com
|
||||
device_roborock_01_cloud_password: [REDACTED]
|
||||
|
||||
|
||||
services_nest_client_id: [REDACTED]
|
||||
services_nest_client_secret: [REDACTED]
|
||||
services_nest_project_id: [REDACTED]
|
||||
services_nest_subscriber_id: [REDACTED]
|
||||
|
||||
services_remote_harmony_host: 10.10.10.1
|
||||
|
||||
services_light_ikea_hub_host: 10.10.10.1
|
||||
|
||||
services_notification_telegram_api_key: [REDACTED]
|
||||
services_notification_telegram_url: https://localhost
|
||||
services_notification_telegram_chat_id_01: 1234567890
|
||||
services_notification_telegram_chat_id_02: 1234567890
|
||||
services_notification_telegram_chat_id_03: '-1234567890'
|
||||
services_notification_telegram_chat_id_04: '1234567890'
|
||||
services_notification_telegram_white_ip_01: 10.10.10.1
|
||||
services_notification_telegram_trusted_network_01: 10.10.10.1/32
|
||||
|
||||
service_twilio_sid: [REDACTED]
|
||||
service_twilio_auth_token: [REDACTED]
|
||||
|
||||
weather_openweathermap_api_key: [REDACTED]
|
||||
weather_darksky: [REDACTED]
|
||||
|
||||
zone_01_latitude: 12.34567
|
||||
zone_01_longitude: -12.34567
|
||||
|
||||
zone_02_latitude: 12.34567
|
||||
zone_02_longitude: -12.34567
|
||||
|
||||
zone_03_latitude: 12.34567
|
||||
zone_03_longitude: -12.34567
|
||||
|
||||
zone_04_latitude: 12.34567
|
||||
zone_04_longitude: -12.34567
|
||||
|
||||
zone_05_latitude: 12.34567
|
||||
zone_05_longitude: -12.34567
|
||||
|
||||
zone_06_latitude: 12.34567
|
||||
zone_06_longitude: -12.34567
|
||||
|
||||
zone_07_latitude: 12.34567
|
||||
zone_07_longitude: -12.34567
|
||||
|
||||
zone_08_latitude: 12.34567
|
||||
zone_08_longitude: -12.34567
|
||||
|
||||
zone_09_latitude: 12.34567
|
||||
zone_09_longitude: -12.34567
|
||||
|
||||
zone_10_latitude: 12.34567
|
||||
zone_10_longitude: -12.34567
|
||||
|
||||
zone_11_latitude: 12.34567
|
||||
zone_11_longitude: -12.34567
|
||||
|
||||
|
||||
zone_12_latitude: 12.34567
|
||||
zone_12_longitude: -12.34567
|
||||
|
||||
zone_13_latitude: 12.34567
|
||||
zone_13_longitude: -12.34567
|
||||
|
||||
notify_twilio_number_from: '+15551234567'
|
0
sercets.sample.yaml
Normal file
0
sercets.sample.yaml
Normal file
Reference in New Issue
Block a user