Skip to content

Commit

Permalink
Update Files
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Mar 26, 2024
1 parent 37b736c commit f10c2d4
Show file tree
Hide file tree
Showing 51 changed files with 9,684 additions and 29,818 deletions.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Bug Report
description: File a bug report or get help with an issue.
labels: ["bug"]
assignees:
- AzonInc
body:
- type: textarea
id: description
attributes:
label: Description
description: Please describe the bug you encountered, and what you expected to happen instead.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: Please copy and paste any relevant log output.
render: plain text
- type: input
id: config-version
attributes:
label: Which version of the ESPHome Doorman firmware config are you running?
placeholder: "1.0.0"
- type: dropdown
id: update-management
attributes:
label: How do you manage your Doorman's updates?
options:
- OTA Updates
- ESPHome YAML Config
- type: input
id: esphome-version
attributes:
label: If you're using an ESPHome YAML config, which version of ESPHome are you running?
placeholder: "2024.3.0"
- type: textarea
id: esphome-config
attributes:
label: ESPHome Config
description: If you have your own ESPHome YAML configuration, please paste it here. Remember to redact any sensitive information like encryption keys or passwords.
render: YAML
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Stock Firmware
on:
release:
types: [created]

jobs:
build:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install ESPHome
run: pip install --user esphome

- name: Compile Release Firmware
working-directory: firmware
run: |
esphome compile doorman-stock.yaml
mkdir -p bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware-factory.bin bin/firmware-factory.bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.bin bin/firmware.bin
- name: Compile Nuki Bridge Firmware
working-directory: firmware
run: |
rm -rf .esphome/build/doorman-s3
esphome compile doorman-nuki-bridge.yaml
mkdir -p bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware-factory.bin bin/nuki-bridge-firmware-factory.bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.bin bin/nuki-bridge-firmware.bin
- name: Upload Firmware
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "firmware/bin/*.bin"
40 changes: 40 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Nightly Stock Firmware Build
on:
schedule:
- cron: "0 0 * * *"

jobs:
build:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install ESPHome
run: pip install --pre --user esphome

- name: Compile Release Firmware
working-directory: firmware
run: |
esphome compile doorman-stock.yaml
mkdir -p bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware-factory.bin bin/firmware-factory.bin
cp .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.bin bin/firmware.bin
- uses: actions/upload-artifact@v3
with:
name: firmware-bin
path: firmware/bin

- name: Send Discord failure notification
if: failure()
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6961"
message: "The latest nightly build failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
doorman-backups
manufacturing
manufacturing
*.lck
*autosave*
*auto_save*
.vscode
Loading

0 comments on commit f10c2d4

Please sign in to comment.