Compare commits

..

4 Commits

Author SHA1 Message Date
1c7aa7b764
Improved google_home tests
Some checks failed
Build and deploy / Build application (push) Successful in 3m44s
Check / Run checks (push) Successful in 3m25s
Build and deploy / Build container (push) Failing after 30s
Build and deploy / Deploy container (push) Has been skipped
2024-07-08 23:07:45 +02:00
6b2b450092
Cleanup
Some checks failed
Build and deploy / Build application (push) Successful in 4m38s
Check / Run checks (push) Successful in 3m32s
Build and deploy / Build container (push) Failing after 30s
Build and deploy / Deploy container (push) Has been skipped
2024-07-08 22:38:55 +02:00
120c1edea8
Started actually using the google home trait macro
Some checks failed
Build and deploy / Build application (push) Successful in 4m6s
Check / Run checks (push) Successful in 3m39s
Build and deploy / Build container (push) Failing after 37s
Build and deploy / Deploy container (push) Has been skipped
2024-07-06 00:34:15 +02:00
99808ee4b2
Initial google home trait macro 2024-07-04 01:39:50 +02:00
4 changed files with 6 additions and 20 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: automation name: build
path: target/x86_64-unknown-linux-gnu/release/automation path: target/x86_64-unknown-linux-gnu/release/automation
container: container:
@ -41,12 +41,12 @@ jobs:
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: automation name: build
- name: Set permissions - name: Set permissions
run: | run: |
chown 65532:65532 ./automation chown 65532:65532 ./build/*
chmod 0755 ./automation chmod 0755 ./build/*
- name: Docker meta - name: Docker meta
id: meta id: meta

View File

@ -12,20 +12,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
.pre-commit-config.yaml
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d ' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ steps.get-hash.outputs.hash }}
- name: Run pre-commit - name: Run pre-commit
run: SKIP=sqlx-prepare pre-commit run --show-diff-on-failure --color=always --all-files run: SKIP=sqlx-prepare pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash shell: bash

View File

@ -3,6 +3,6 @@ FROM gcr.io/distroless/cc-debian12:nonroot
ENV AUTOMATION_CONFIG=/app/config.lua ENV AUTOMATION_CONFIG=/app/config.lua
COPY ./config.lua /app/config.lua COPY ./config.lua /app/config.lua
COPY ./automation /app/automation COPY ./build/automation /app/automation
CMD ["/app/automation"] CMD ["/app/automation"]

View File

@ -109,7 +109,7 @@ automation.device_manager:add(IkeaOutlet.new({
outlet_type = "Light", outlet_type = "Light",
name = "Light", name = "Light",
room = "Bathroom", room = "Bathroom",
topic = mqtt_z2m("bathroom/light"), topic = mqtt_z2m("batchroom/light"),
client = mqtt_client, client = mqtt_client,
timeout = debug and 60 or 45 * 60, timeout = debug and 60 or 45 * 60,
})) }))