Compare commits

..

31 Commits

Author SHA1 Message Date
5579b49404 Added a new automation Global - New HA Core Version webhook
All checks were successful
Savin's Home Assistant / build (push) Successful in 2m10s
2025-02-11 14:22:09 -05:00
eec6066c7b More changes
All checks were successful
Savin's Home Assistant / build (push) Successful in 2m5s
2025-02-07 17:46:02 -05:00
8c4d2b2130 More changes
All checks were successful
Savin's Home Assistant / build (push) Successful in 2m5s
2025-02-07 17:33:19 -05:00
97e3c80dde More changes
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m15s
2025-02-07 17:26:43 -05:00
fa231bd805 More changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 17:24:23 -05:00
298d509811 More changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 17:22:14 -05:00
c30dd3eace More changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 16:44:14 -05:00
8eea1952a0 More changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 16:40:52 -05:00
80c7673c0b more changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 8s
2025-02-07 16:37:41 -05:00
5c4f63d05a more changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 10s
2025-02-07 16:33:58 -05:00
0b1755b6a0 More changes
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m17s
2025-02-07 16:26:45 -05:00
ec6ca8b9a0 more changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 16:26:15 -05:00
c1b0af5c68 Added a libturbojpeg0
Some checks failed
Savin's Home Assistant / build (push) Failing after 9s
2025-02-07 16:25:08 -05:00
7b47e6f7e3 more changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 27s
2025-02-07 16:24:19 -05:00
3164e2e6c9 more changes
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m17s
2025-02-07 16:20:39 -05:00
c77857c3fa Removed pip search
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m19s
2025-02-07 16:16:26 -05:00
89ccb50117 Added a custom component
Some checks failed
Savin's Home Assistant / build (push) Failing after 14s
2025-02-07 16:15:32 -05:00
72a3f3df57 More changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 4s
2025-02-07 16:12:47 -05:00
27cb5515c4 More fixes
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m19s
2025-02-07 15:22:38 -05:00
106e7ab752 Fixing some dependecies 2025-02-07 15:22:38 -05:00
429cec0c1a Update secrets.sample.yaml
All checks were successful
Savin's Home Assistant / build (push) Successful in 1m13s
2025-02-07 14:58:56 -05:00
6165039cd4 Added missing dependecies 2025-02-07 14:55:57 -05:00
e3710d1c42 Fixed sample secrets.yaml
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m1s
2025-02-07 14:51:23 -05:00
16fd1b3365 Some debuging
Some checks failed
Savin's Home Assistant / build (push) Failing after 37s
2025-02-07 14:39:51 -05:00
b7e50c096a Fixed missing dependencies
Some checks failed
Savin's Home Assistant / build (push) Failing after 12s
2025-02-07 14:38:21 -05:00
1b2a241b4f Some changes
Some checks failed
Savin's Home Assistant / build (push) Failing after 12s
2025-02-07 14:37:23 -05:00
1504c222cc Removed yaml linter
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m5s
2025-02-07 14:35:18 -05:00
3f21a45b55 Testing new steps
Some checks failed
Savin's Home Assistant / build (push) Failing after 43s
2025-02-07 14:32:29 -05:00
5a597b7bb3 Fixed workflow
All checks were successful
Savin's Home Assistant / build (push) Successful in 35s
2025-02-07 14:29:27 -05:00
9f56b9da3b Fixing some errors 2025-02-07 14:27:14 -05:00
2d0a4d1c0c Fixed typo at the folder name 2025-02-07 14:25:29 -05:00
5 changed files with 266 additions and 48 deletions

View File

@ -6,60 +6,69 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Install Custom Components (Hass.IO)
# run: |
# sudo mkdir -p ./custom_components
# pwd
# cd /tmp
# git clone https://github.com/custom-components/sensor.unifigateway.git unifigateway
# sudo cp -r ./unifigateway/custom_components/unifigateway /home/runner/work/home-assistant-conf/home-assistant-conf/custom_components/unifigateway
# git clone https://github.com/rgruebel/ha_zigbee2mqtt_networkmap.git zigbee2mqtt_networkmap
# sudo cp -r ./zigbee2mqtt_networkmap/custom_components/zigbee2mqtt_networkmap /home/runner/work/home-assistant-conf/home-assistant-conf/custom_components/zigbee2mqtt_networkmap
# git clone https://github.com/custom-components/hacs.git hacs_temp
# cd hacs_temp
# git checkout $(git describe --tags --always $(git rev-list --tags --max-count=1000) | grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+$" | head -n 1)
# cd ../
# sudo cp -r hacs_temp/custom_components/hacs hacs
# rm -R hacs_temp
# sudo cp -r ./hacs /home/runner/work/home-assistant-conf/home-assistant-conf/custom_components
- name: Install Custom Components (Hass.IO)
run: |
pwd
ls -la
- 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
# 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 Prettier
run: |
sudo npm install --global prettier
# - 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: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
# - name: Install Prettier
# run: |
# sudo npm install --global prettier
- name: Install Python packages (Lint)
run: |
python -m pip install --upgrade pip
pip install black flake8 pylint yamllint
# - name: Set up Python 3.13
# uses: actions/setup-python@v5
# with:
# python-version: 3.13
- name: YAML Lint
run: |
yamllint ./
# - name: Install Python packages (Lint)
# run: |
# python -m pip install --upgrade pip
# pip install black flake8 pylint yamllint
# - name: Prettier Check Up
# run: |
# prettier --check --no-bracket-spacing '**/*.{yaml,json}'
# - name: YAML Lint
# run: |
# yamllint ./
- name: Install Python packages (Hass.IO)
run: |
pip install yq jq
pip install homeassistant
# # - name: Prettier Check Up
# # run: |
# # prettier --check --no-bracket-spacing '**/*.{yaml,json}'
- 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: 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}}.
- 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}}.

106
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,106 @@
---
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
sudo mkdir -p ./custom_components
pwd
cd /tmp
git clone https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor.git
sudo cp -r ./Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/custom_components/xiaomi_cloud_map_extractor /workspace/alex/hassio-configuration/custom_components/xiaomi_cloud_map_extractor
# 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 echo "deb [signed-by=/etc/apt/trusted.gpg.d/libjpeg-turbo.gpg] https://packagecloud.io/dcommander/libjpeg-turbo/any/ any main" > /etc/apt/sources.list.d/libjpeg-turbo.list
wget -q -O- https://packagecloud.io/dcommander/libjpeg-turbo/gpgkey | gpg --dearmor > /etc/apt/trusted.gpg.d/libjpeg-turbo.gpg
sudo apt-get -qq update
sudo apt-get -y -qq install libjpeg-turbo-official 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 colorlog
pip install homeassistant
echo "Installing crypto, requered by Component: xiaomi_cloud_map_extractor\n"
pip install pycryptodome requests python-miio pybase64 pillow
echo "Installing numpy, requered by Component: mobile_app, stream and camera\n"
pip install numpy
echo "Installing hassil, requered by Component: mobile_app\n"
pip install hassil
echo "Installing mutagen, requered by Component: mobile_app\n"
pip install mutagen
echo "Installing home_assistant_intents, requered by Component: mobile_app\n"
pip install home_assistant_intents
echo "Installing RestrictedPython, requered by Component: python_script\n"
pip install RestrictedPython
echo "Installing twilio, requered by Component: twilio\n"
pip install twilio
echo "Installing python-telegram-bot, requered by Component: telegram_bot\n"
pip install python-telegram-bot
echo "Installing pyeiscp, requered by Component: onkyo\n"
pip install pyeiscp
echo "Installing async_upnp_client, requered by Component: ssdp\n"
pip install async_upnp_client
- 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}}.

View File

@ -0,0 +1,12 @@
---
- id: global_webhook_gitea
alias: '[Global] Webhook Gitea New Version'
initial_state: 'true'
trigger:
- platform: state
entity_id: update.home_assistant_core_update
to: 'on'
action:
- service: notify.telegram_alex
data:
message: "New HA version ({{ state_attr('update.home_assistant_core_update', 'latest_version') }}) has been release"

91
secrets.sample.yaml Normal file
View File

@ -0,0 +1,91 @@
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'

View File