1
0

Compare commits

...

178 Commits

33 changed files with 140 additions and 423 deletions

View File

@@ -3,7 +3,12 @@ FROM ghcr.io/home-assistant/devcontainer:addons
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
python3-pip
python3-pip \
python3-venv
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY script/requirements.txt /

View File

@@ -14,23 +14,28 @@
"containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
},
"extensions": [
"timonwong.shellcheck",
"esbenp.prettier-vscode"
],
"mounts": [
"type=volume,target=/var/lib/docker"
],
"settings": {
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
"customizations": {
"vscode": {
"extensions": [
"timonwong.shellcheck",
"esbenp.prettier-vscode",
"ms-python.python"
],
"mounts": [
"type=volume,target=/var/lib/docker"
],
"settings": {
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
}

View File

@@ -15,45 +15,47 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install -r script/requirements.txt
- run: script/bump-version.py ${{ github.event.inputs.version }}
- name: Write Beta changelog
run: |
cat > esphome-beta/CHANGELOG.md << 'EOF'
## ${{ github.event.inputs.version }}
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.0
with:
python-version: "3.11"
- run: pip install -r script/requirements.txt
- run: script/bump-version.py ${{ github.event.inputs.version }}
- name: Write Beta changelog
if: ${{ !contains(github.event.inputs.version, 'dev') }}
run: |
cat > esphome-beta/CHANGELOG.md << 'EOF'
## ${{ github.event.inputs.version }}
${{ github.event.inputs.content }}
EOF
- name: Write Stable changelog
if: ${{ !contains(github.event.inputs.version, 'b') }}
run: |
cat > esphome/CHANGELOG.md << 'EOF'
## ${{ github.event.inputs.version }}
${{ github.event.inputs.content }}
EOF
- name: Write Stable changelog
if: ${{ !contains(github.event.inputs.version, 'b') && !contains(github.event.inputs.version, 'dev') }}
run: |
cat > esphome/CHANGELOG.md << 'EOF'
## ${{ github.event.inputs.version }}
${{ github.event.inputs.content }}
EOF
- name: Commit version bump
id: commit_version
run: |
git config user.name esphomebot
git config user.email esphome@nabucasa.com
git add .
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push
COMMIT=$(git rev-parse HEAD)
echo "::set-output name=commit_sha::${COMMIT}"
- name: Create a Release
uses: actions/create-release@v1.1.4
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
body: ${{ github.event.inputs.content }}
prerelease: ${{ contains(github.event.inputs.version, 'b') }}
commitish: ${{ steps.commit_version.outputs.commit_sha }}
${{ github.event.inputs.content }}
EOF
- name: Commit version bump
id: commit_version
run: |
git config user.name esphomebot
git config user.email esphome@nabucasa.com
git add .
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push
COMMIT=$(git rev-parse HEAD)
echo "::set-output name=commit_sha::${COMMIT}"
- name: Create a Release
uses: actions/create-release@v1.1.4
continue-on-error: true
if: ${{ !contains(github.event.inputs.version, 'dev') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
body: ${{ github.event.inputs.content }}
prerelease: ${{ contains(github.event.inputs.version, 'b') }}
commitish: ${{ steps.commit_version.outputs.commit_sha }}

View File

@@ -19,20 +19,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/checkout@v4.1.7
- name: Log in to the GitHub container registry
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.2.0
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2.2.0
uses: docker/setup-qemu-action@v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.7.0
uses: docker/setup-buildx-action@v3.3.0
- name: Build and Push
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v5.4.0
with:
context: .
file: .devcontainer/Dockerfile

View File

@@ -19,16 +19,16 @@ jobs:
channel: dev
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.7
- name: 🛠 Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.1.0
with:
python-version: '3.x'
python-version: '3.11'
- name: 🛠 Install dependencies
run: pip install -r script/requirements.txt
- name: 🛠 Generate files from template
run: python script/generate.py ${{ matrix.channels.channel }}
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channels.channel }}
uses: frenck/action-addon-linter@v2.13.1
uses: frenck/action-addon-linter@v2.15.1
with:
path: "./${{ matrix.channels.folder }}"

View File

@@ -1,117 +1,6 @@
## 2023.7.0
## 2024.6.0b4
## Full list of changes
### New Components
- XL9535 I/O Expander [esphome#4899](https://github.com/esphome/esphome/pull/4899) by [@mreditor97](https://github.com/mreditor97) (new-integration)
- Add Zio Ultrasonic Distance Sensor Component [esphome#5059](https://github.com/esphome/esphome/pull/5059) by [@kahrendt](https://github.com/kahrendt) (new-integration)
- Add Alpha3 pump component [esphome#3787](https://github.com/esphome/esphome/pull/3787) by [@jan-hofmeier](https://github.com/jan-hofmeier) (new-integration)
- RTC implementation of pcf8563 [esphome#4998](https://github.com/esphome/esphome/pull/4998) by [@KoenBreeman](https://github.com/KoenBreeman) (new-integration)
- web server esp idf suppport [esphome#3500](https://github.com/esphome/esphome/pull/3500) by [@dentra](https://github.com/dentra) (new-integration)
- Add TT21100 touchscreen component [esphome#4793](https://github.com/esphome/esphome/pull/4793) by [@kroimon](https://github.com/kroimon) (new-integration)
- Add support for Grove tb6612 fng [esphome#4797](https://github.com/esphome/esphome/pull/4797) by [@max246](https://github.com/max246) (new-integration)
- Add support for ATM90E26 [esphome#4366](https://github.com/esphome/esphome/pull/4366) by [@danieltwagner](https://github.com/danieltwagner) (new-integration)
- New 'Duty Time' sensor component [esphome#5069](https://github.com/esphome/esphome/pull/5069) by [@dudanov](https://github.com/dudanov) (new-integration)
### Breaking Changes
- display: add `BaseFont` and introduce `Font::draw` methods [esphome#4963](https://github.com/esphome/esphome/pull/4963) by [@ayufan](https://github.com/ayufan) (breaking-change)
- display: Rename `display.DisplayBufferRef` to `display.DisplayRef` used by lambda [esphome#5002](https://github.com/esphome/esphome/pull/5002) by [@ayufan](https://github.com/ayufan) (breaking-change)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
### Beta Changes
- Dont do mqtt ip lookup if `use_address` has ip address [esphome#5096](https://github.com/esphome/esphome/pull/5096) by [@jesserockz](https://github.com/jesserockz)
- ESP32 enable ADC2 when wifi is disabled [esphome#4381](https://github.com/esphome/esphome/pull/4381) by [@pciavald](https://github.com/pciavald)
- [Sprinkler] Resume fixes [esphome#5100](https://github.com/esphome/esphome/pull/5100) by [@hostcc](https://github.com/hostcc)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
- Add timeout filter [esphome#5104](https://github.com/esphome/esphome/pull/5104) by [@clydebarrow](https://github.com/clydebarrow)
- P1 values for capacity tariff in Belgium [esphome#5081](https://github.com/esphome/esphome/pull/5081) by [@bwynants](https://github.com/bwynants)
- airthings_wave: Silence compiler warnings [esphome#5098](https://github.com/esphome/esphome/pull/5098) by [@kpfleming](https://github.com/kpfleming)
- Sigma delta fix [esphome#4911](https://github.com/esphome/esphome/pull/4911) by [@PlainTechEnthusiast](https://github.com/PlainTechEnthusiast)
- [LD2410] Remove baud_rate check [esphome#5112](https://github.com/esphome/esphome/pull/5112) by [@voed](https://github.com/voed)
- Fix silence detection flag on voice assistant [esphome#5120](https://github.com/esphome/esphome/pull/5120) by [@jesserockz](https://github.com/jesserockz)
### All changes
- Upgraded Haier climate component implementation [esphome#4521](https://github.com/esphome/esphome/pull/4521) by [@paveldn](https://github.com/paveldn)
- display: add `BaseFont` and introduce `Font::draw` methods [esphome#4963](https://github.com/esphome/esphome/pull/4963) by [@ayufan](https://github.com/ayufan) (breaking-change)
- display/font: optimise font rendering by about 25% [esphome#4956](https://github.com/esphome/esphome/pull/4956) by [@ayufan](https://github.com/ayufan)
- display: move `Rect` into `rect.cpp/.h` [esphome#4957](https://github.com/esphome/esphome/pull/4957) by [@ayufan](https://github.com/ayufan)
- Bump pytest from 7.3.1 to 7.3.2 [esphome#4936](https://github.com/esphome/esphome/pull/4936) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add read/write for 16bit registers [esphome#4844](https://github.com/esphome/esphome/pull/4844) by [@CarsonF](https://github.com/CarsonF)
- XL9535 I/O Expander [esphome#4899](https://github.com/esphome/esphome/pull/4899) by [@mreditor97](https://github.com/mreditor97) (new-integration)
- Fix python venv restoring [esphome#4965](https://github.com/esphome/esphome/pull/4965) by [@jesserockz](https://github.com/jesserockz)
- Preprocess away unused code when IPv6 is disabled [esphome#4973](https://github.com/esphome/esphome/pull/4973) by [@HeMan](https://github.com/HeMan)
- Bump aioesphomeapi from 14.0.0 to 14.1.0 [esphome#4972](https://github.com/esphome/esphome/pull/4972) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add actions to animation [esphome#4959](https://github.com/esphome/esphome/pull/4959) by [@guillempages](https://github.com/guillempages)
- Bump zeroconf from 0.63.0 to 0.69.0 [esphome#4970](https://github.com/esphome/esphome/pull/4970) by [@dependabot[bot]](https://github.com/apps/dependabot)
- mqtt: add ESP-IDF >= 5.0 support [esphome#4854](https://github.com/esphome/esphome/pull/4854) by [@stintel](https://github.com/stintel)
- display: move `Image`, `Font` and `Animation` code into components [esphome#4967](https://github.com/esphome/esphome/pull/4967) by [@ayufan](https://github.com/ayufan)
- support empty schemas and one platform components [esphome#4999](https://github.com/esphome/esphome/pull/4999) by [@glmnet](https://github.com/glmnet)
- update dsmr to 0.7 [esphome#5011](https://github.com/esphome/esphome/pull/5011) by [@Pvlerick](https://github.com/Pvlerick)
- add water delivered to dsmr component [esphome#4237](https://github.com/esphome/esphome/pull/4237) by [@jerome992](https://github.com/jerome992)
- Update sync workflow [esphome#5017](https://github.com/esphome/esphome/pull/5017) by [@jesserockz](https://github.com/jesserockz)
- Bump aioesphomeapi from 14.1.0 to 15.0.0 [esphome#5012](https://github.com/esphome/esphome/pull/5012) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pyupgrade from 3.4.0 to 3.7.0 [esphome#4971](https://github.com/esphome/esphome/pull/4971) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pytest from 7.3.2 to 7.4.0 [esphome#5000](https://github.com/esphome/esphome/pull/5000) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Attempt to fix script parameters [esphome#4627](https://github.com/esphome/esphome/pull/4627) by [@jesserockz](https://github.com/jesserockz)
- Remove yaml test cache [esphome#5019](https://github.com/esphome/esphome/pull/5019) by [@jesserockz](https://github.com/jesserockz)
- Bump esptool from 4.6 to 4.6.2 [esphome#4949](https://github.com/esphome/esphome/pull/4949) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pytest-mock from 3.10.0 to 3.11.1 [esphome#4977](https://github.com/esphome/esphome/pull/4977) by [@dependabot[bot]](https://github.com/apps/dependabot)
- binary_sensor removed unused filter [esphome#5039](https://github.com/esphome/esphome/pull/5039) by [@dudanov](https://github.com/dudanov)
- binary_sensor filters templatable delays [esphome#5029](https://github.com/esphome/esphome/pull/5029) by [@dudanov](https://github.com/dudanov)
- Improve the gamma settings for the S3-Box-lite display [esphome#5046](https://github.com/esphome/esphome/pull/5046) by [@guillempages](https://github.com/guillempages)
- Prepare ethernet to work with esp idf 5.0 [esphome#5037](https://github.com/esphome/esphome/pull/5037) by [@HeMan](https://github.com/HeMan)
- Prepare debug and logger component to work with idf 5.0 [esphome#5036](https://github.com/esphome/esphome/pull/5036) by [@HeMan](https://github.com/HeMan)
- Mopeka std fixes [esphome#5041](https://github.com/esphome/esphome/pull/5041) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Adjust signature for on_disconnect [esphome#5009](https://github.com/esphome/esphome/pull/5009) by [@bdraco](https://github.com/bdraco)
- Log component long time message at warning level [esphome#5048](https://github.com/esphome/esphome/pull/5048) by [@jesserockz](https://github.com/jesserockz)
- Log start of i2c setup [esphome#5049](https://github.com/esphome/esphome/pull/5049) by [@jesserockz](https://github.com/jesserockz)
- Initial debug component support for rp2040 [esphome#5056](https://github.com/esphome/esphome/pull/5056) by [@HeMan](https://github.com/HeMan)
- Fix when idf component has broken symlinks [esphome#5058](https://github.com/esphome/esphome/pull/5058) by [@jesserockz](https://github.com/jesserockz)
- Some tests wasn't running (locally) [esphome#5050](https://github.com/esphome/esphome/pull/5050) by [@HeMan](https://github.com/HeMan)
- [ILI9xxx] Add ili9488_a (alternative gamma configuration for ILI9488) [esphome#5027](https://github.com/esphome/esphome/pull/5027) by [@lnicolas83](https://github.com/lnicolas83)
- [ili9xxx] Allow config of spi data rate. [esphome#4701](https://github.com/esphome/esphome/pull/4701) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Make scheduler debuging work with idf >= 5 [esphome#5052](https://github.com/esphome/esphome/pull/5052) by [@HeMan](https://github.com/HeMan)
- Adds 1.54" e-ink display (gdew0154m09) support to waveshare_epaper component [esphome#4939](https://github.com/esphome/esphome/pull/4939) by [@tobiasoort](https://github.com/tobiasoort)
- display: split `DisplayBuffer` and `Display` [esphome#5001](https://github.com/esphome/esphome/pull/5001) by [@ayufan](https://github.com/ayufan)
- Fixed ili9xxx_display update() method [esphome#5013](https://github.com/esphome/esphome/pull/5013) by [@nielsnl68](https://github.com/nielsnl68)
- [Ethernet] ksz8081rna support [esphome#4739](https://github.com/esphome/esphome/pull/4739) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Improve BME680 BSEC sensor device classes [esphome#4859](https://github.com/esphome/esphome/pull/4859) by [@trvrnrth](https://github.com/trvrnrth)
- Update RP2040 Aruino framwork and platform to latest [esphome#5025](https://github.com/esphome/esphome/pull/5025) by [@HeMan](https://github.com/HeMan)
- Allow pillow versions over 10 [esphome#5071](https://github.com/esphome/esphome/pull/5071) by [@HeMan](https://github.com/HeMan)
- display: Rename `display.DisplayBufferRef` to `display.DisplayRef` used by lambda [esphome#5002](https://github.com/esphome/esphome/pull/5002) by [@ayufan](https://github.com/ayufan) (breaking-change)
- Add Zio Ultrasonic Distance Sensor Component [esphome#5059](https://github.com/esphome/esphome/pull/5059) by [@kahrendt](https://github.com/kahrendt) (new-integration)
- Add Alpha3 pump component [esphome#3787](https://github.com/esphome/esphome/pull/3787) by [@jan-hofmeier](https://github.com/jan-hofmeier) (new-integration)
- RTC implementation of pcf8563 [esphome#4998](https://github.com/esphome/esphome/pull/4998) by [@KoenBreeman](https://github.com/KoenBreeman) (new-integration)
- web server esp idf suppport [esphome#3500](https://github.com/esphome/esphome/pull/3500) by [@dentra](https://github.com/dentra) (new-integration)
- Add TT21100 touchscreen component [esphome#4793](https://github.com/esphome/esphome/pull/4793) by [@kroimon](https://github.com/kroimon) (new-integration)
- tuya_light: fix float->int conversion while setting color temperature [esphome#5067](https://github.com/esphome/esphome/pull/5067) by [@kswt](https://github.com/kswt)
- Fix typo in mpu6050.cpp [esphome#5086](https://github.com/esphome/esphome/pull/5086) by [@stefanklug](https://github.com/stefanklug)
- airthings_wave: Battery level reporting [esphome#4979](https://github.com/esphome/esphome/pull/4979) by [@kpfleming](https://github.com/kpfleming)
- Add support for Grove tb6612 fng [esphome#4797](https://github.com/esphome/esphome/pull/4797) by [@max246](https://github.com/max246) (new-integration)
- Add MCP2515 12MHz xtal support [esphome#5089](https://github.com/esphome/esphome/pull/5089) by [@clydebarrow](https://github.com/clydebarrow)
- Correct message for standard transmission. [esphome#5088](https://github.com/esphome/esphome/pull/5088) by [@clydebarrow](https://github.com/clydebarrow)
- Restrict pillow to versions before 10.0.0 [esphome#5090](https://github.com/esphome/esphome/pull/5090) by [@jesserockz](https://github.com/jesserockz)
- Bump esphome-dashboard to 20230711.0 [esphome#5085](https://github.com/esphome/esphome/pull/5085) by [@jesserockz](https://github.com/jesserockz)
- added uart final validate data bits [esphome#5079](https://github.com/esphome/esphome/pull/5079) by [@dudanov](https://github.com/dudanov)
- Add support for ATM90E26 [esphome#4366](https://github.com/esphome/esphome/pull/4366) by [@danieltwagner](https://github.com/danieltwagner) (new-integration)
- Grove amend name [esphome#5093](https://github.com/esphome/esphome/pull/5093) by [@max246](https://github.com/max246)
- Fixing colon for tm1637 display if inverted set true [esphome#5072](https://github.com/esphome/esphome/pull/5072) by [@paveldn](https://github.com/paveldn)
- Fix use of optional<T> [esphome#5091](https://github.com/esphome/esphome/pull/5091) by [@dudanov](https://github.com/dudanov)
- New 'Duty Time' sensor component [esphome#5069](https://github.com/esphome/esphome/pull/5069) by [@dudanov](https://github.com/dudanov) (new-integration)
- Fix PIDController::in_deadband() to give correct result when error is zero [esphome#5078](https://github.com/esphome/esphome/pull/5078) by [@lewissbaker](https://github.com/lewissbaker)
- Edit error message for pillow install to add version restrictions [esphome#5094](https://github.com/esphome/esphome/pull/5094) by [@jesserockz](https://github.com/jesserockz)
- Dont do mqtt ip lookup if `use_address` has ip address [esphome#5096](https://github.com/esphome/esphome/pull/5096) by [@jesserockz](https://github.com/jesserockz)
- ESP32 enable ADC2 when wifi is disabled [esphome#4381](https://github.com/esphome/esphome/pull/4381) by [@pciavald](https://github.com/pciavald)
- [Sprinkler] Resume fixes [esphome#5100](https://github.com/esphome/esphome/pull/5100) by [@hostcc](https://github.com/hostcc)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
- Add timeout filter [esphome#5104](https://github.com/esphome/esphome/pull/5104) by [@clydebarrow](https://github.com/clydebarrow)
- P1 values for capacity tariff in Belgium [esphome#5081](https://github.com/esphome/esphome/pull/5081) by [@bwynants](https://github.com/bwynants)
- airthings_wave: Silence compiler warnings [esphome#5098](https://github.com/esphome/esphome/pull/5098) by [@kpfleming](https://github.com/kpfleming)
- Sigma delta fix [esphome#4911](https://github.com/esphome/esphome/pull/4911) by [@PlainTechEnthusiast](https://github.com/PlainTechEnthusiast)
- [LD2410] Remove baud_rate check [esphome#5112](https://github.com/esphome/esphome/pull/5112) by [@voed](https://github.com/voed)
- Fix silence detection flag on voice assistant [esphome#5120](https://github.com/esphome/esphome/pull/5120) by [@jesserockz](https://github.com/jesserockz)
- fix(dallas): make recovery time for 1-bit equal to that of 0-bit [esphome#6763](https://github.com/esphome/esphome/pull/6763) by [@muggenhor](https://github.com/muggenhor)
- [wifi] Fix some access point bugs related to esp-idf 4.4.7 [esphome#6928](https://github.com/esphome/esphome/pull/6928) by [@jesserockz](https://github.com/jesserockz)
- Rename legacy/modern to ota/factory [esphome#6922](https://github.com/esphome/esphome/pull/6922) by [@jesserockz](https://github.com/jesserockz)

View File

@@ -26,13 +26,13 @@ schema:
ssl: bool?
certfile: str?
keyfile: str?
relative_url: str?
leave_front_door_open: bool?
backup_exclude:
- '*/*/'
init: false
startup: services
name: ESPHome (beta)
version: 2023.7.0
version: 2024.6.0b4
slug: esphome-beta
description: Beta version of ESPHome add-on
image: ghcr.io/esphome/esphome-hassio

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@@ -1 +1 @@
See https://esphome.io/changelog/index.html
See https://github.com/esphome/esphome/commits/dev

View File

@@ -1,10 +0,0 @@
ARG BUILD_FROM=esphome/esphome-hassio-amd64:dev
FROM ${BUILD_FROM}
# Copy root filesystem
COPY rootfs /
# Labels
LABEL \
io.hass.type="addon" \
io.hass.version=dev

View File

@@ -1,5 +0,0 @@
---
build_from:
aarch64: ghcr.io/esphome/esphome-hassio:dev
amd64: ghcr.io/esphome/esphome-hassio:dev
armv7: ghcr.io/esphome/esphome-hassio:dev

View File

@@ -27,15 +27,16 @@ schema:
ssl: bool?
certfile: str?
keyfile: str?
relative_url: str?
leave_front_door_open: bool?
backup_exclude:
- '*/*/'
init: false
startup: services
name: ESPHome (dev)
version: dev
version: 2024.7.0-dev20240618
slug: esphome-dev
description: Development version of ESPHome add-on
image: ghcr.io/esphome/esphome-hassio
stage: experimental
advanced: true
options:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@@ -1,47 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: ESPHome
# This files installs the user ESPHome fork if specified
# The fork must be up to date with the latest ESPHome dev branch
# and have no conflicts
# ==============================================================================
declare esphome_fork
if bashio::config.has_value 'esphome_fork'; then
esphome_fork=$(bashio::config 'esphome_fork')
if [[ $esphome_fork == *":"* ]]; then
IFS=':' read -r -a array <<< "$esphome_fork"
username=${array[0]}
ref=${array[1]}
else
username="esphome"
ref=$esphome_fork
fi
full_url="https://github.com/${username}/esphome/archive/${ref}.tar.gz"
bashio::log.info "Checking forked ESPHome"
dev_version=$(python3 -c "from esphome.const import __version__; print(__version__)")
bashio::log.info "Downloading ESPHome from fork '${esphome_fork}' (${full_url})..."
curl -L -o /tmp/esphome.tar.gz "${full_url}" -qq \
|| bashio::exit.nok "Failed downloading ESPHome fork."
bashio::log.info "Installing ESPHome from fork '${esphome_fork}' (${full_url})..."
rm -rf /esphome || bashio::exit.nok "Failed to remove ESPHome."
mkdir /esphome
tar -zxf /tmp/esphome.tar.gz -C /esphome --strip-components=1 \
|| bashio::exit.nok "Failed installing ESPHome from fork."
pip install -U -e /esphome || bashio::exit.nok "Failed installing ESPHome from fork."
rm -f /tmp/esphome.tar.gz
fork_version=$(python3 -c "from esphome.const import __version__; print(__version__)")
if [[ "$fork_version" != "$dev_version" ]]; then
bashio::log.error "############################"
bashio::log.error "Uninstalled fork as version does not match"
bashio::log.error "Update (or ask the author to update) the branch"
bashio::log.error "This is important as the dev addon and the dev ESPHome"
bashio::log.error "branch can have changes that are not compatible with old forks"
bashio::log.error "and get reported as bugs which we cannot solve easily."
bashio::log.error "############################"
bashio::exit.nok
fi
bashio::log.info "Installed ESPHome from fork '${esphome_fork}' (${full_url})..."
fi

View File

@@ -1,117 +1,6 @@
## 2023.7.0
## 2024.5.5
## Full list of changes
### New Components
- XL9535 I/O Expander [esphome#4899](https://github.com/esphome/esphome/pull/4899) by [@mreditor97](https://github.com/mreditor97) (new-integration)
- Add Zio Ultrasonic Distance Sensor Component [esphome#5059](https://github.com/esphome/esphome/pull/5059) by [@kahrendt](https://github.com/kahrendt) (new-integration)
- Add Alpha3 pump component [esphome#3787](https://github.com/esphome/esphome/pull/3787) by [@jan-hofmeier](https://github.com/jan-hofmeier) (new-integration)
- RTC implementation of pcf8563 [esphome#4998](https://github.com/esphome/esphome/pull/4998) by [@KoenBreeman](https://github.com/KoenBreeman) (new-integration)
- web server esp idf suppport [esphome#3500](https://github.com/esphome/esphome/pull/3500) by [@dentra](https://github.com/dentra) (new-integration)
- Add TT21100 touchscreen component [esphome#4793](https://github.com/esphome/esphome/pull/4793) by [@kroimon](https://github.com/kroimon) (new-integration)
- Add support for Grove tb6612 fng [esphome#4797](https://github.com/esphome/esphome/pull/4797) by [@max246](https://github.com/max246) (new-integration)
- Add support for ATM90E26 [esphome#4366](https://github.com/esphome/esphome/pull/4366) by [@danieltwagner](https://github.com/danieltwagner) (new-integration)
- New 'Duty Time' sensor component [esphome#5069](https://github.com/esphome/esphome/pull/5069) by [@dudanov](https://github.com/dudanov) (new-integration)
### Breaking Changes
- display: add `BaseFont` and introduce `Font::draw` methods [esphome#4963](https://github.com/esphome/esphome/pull/4963) by [@ayufan](https://github.com/ayufan) (breaking-change)
- display: Rename `display.DisplayBufferRef` to `display.DisplayRef` used by lambda [esphome#5002](https://github.com/esphome/esphome/pull/5002) by [@ayufan](https://github.com/ayufan) (breaking-change)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
### Beta Changes
- Dont do mqtt ip lookup if `use_address` has ip address [esphome#5096](https://github.com/esphome/esphome/pull/5096) by [@jesserockz](https://github.com/jesserockz)
- ESP32 enable ADC2 when wifi is disabled [esphome#4381](https://github.com/esphome/esphome/pull/4381) by [@pciavald](https://github.com/pciavald)
- [Sprinkler] Resume fixes [esphome#5100](https://github.com/esphome/esphome/pull/5100) by [@hostcc](https://github.com/hostcc)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
- Add timeout filter [esphome#5104](https://github.com/esphome/esphome/pull/5104) by [@clydebarrow](https://github.com/clydebarrow)
- P1 values for capacity tariff in Belgium [esphome#5081](https://github.com/esphome/esphome/pull/5081) by [@bwynants](https://github.com/bwynants)
- airthings_wave: Silence compiler warnings [esphome#5098](https://github.com/esphome/esphome/pull/5098) by [@kpfleming](https://github.com/kpfleming)
- Sigma delta fix [esphome#4911](https://github.com/esphome/esphome/pull/4911) by [@PlainTechEnthusiast](https://github.com/PlainTechEnthusiast)
- [LD2410] Remove baud_rate check [esphome#5112](https://github.com/esphome/esphome/pull/5112) by [@voed](https://github.com/voed)
- Fix silence detection flag on voice assistant [esphome#5120](https://github.com/esphome/esphome/pull/5120) by [@jesserockz](https://github.com/jesserockz)
### All changes
- Upgraded Haier climate component implementation [esphome#4521](https://github.com/esphome/esphome/pull/4521) by [@paveldn](https://github.com/paveldn)
- display: add `BaseFont` and introduce `Font::draw` methods [esphome#4963](https://github.com/esphome/esphome/pull/4963) by [@ayufan](https://github.com/ayufan) (breaking-change)
- display/font: optimise font rendering by about 25% [esphome#4956](https://github.com/esphome/esphome/pull/4956) by [@ayufan](https://github.com/ayufan)
- display: move `Rect` into `rect.cpp/.h` [esphome#4957](https://github.com/esphome/esphome/pull/4957) by [@ayufan](https://github.com/ayufan)
- Bump pytest from 7.3.1 to 7.3.2 [esphome#4936](https://github.com/esphome/esphome/pull/4936) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add read/write for 16bit registers [esphome#4844](https://github.com/esphome/esphome/pull/4844) by [@CarsonF](https://github.com/CarsonF)
- XL9535 I/O Expander [esphome#4899](https://github.com/esphome/esphome/pull/4899) by [@mreditor97](https://github.com/mreditor97) (new-integration)
- Fix python venv restoring [esphome#4965](https://github.com/esphome/esphome/pull/4965) by [@jesserockz](https://github.com/jesserockz)
- Preprocess away unused code when IPv6 is disabled [esphome#4973](https://github.com/esphome/esphome/pull/4973) by [@HeMan](https://github.com/HeMan)
- Bump aioesphomeapi from 14.0.0 to 14.1.0 [esphome#4972](https://github.com/esphome/esphome/pull/4972) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add actions to animation [esphome#4959](https://github.com/esphome/esphome/pull/4959) by [@guillempages](https://github.com/guillempages)
- Bump zeroconf from 0.63.0 to 0.69.0 [esphome#4970](https://github.com/esphome/esphome/pull/4970) by [@dependabot[bot]](https://github.com/apps/dependabot)
- mqtt: add ESP-IDF >= 5.0 support [esphome#4854](https://github.com/esphome/esphome/pull/4854) by [@stintel](https://github.com/stintel)
- display: move `Image`, `Font` and `Animation` code into components [esphome#4967](https://github.com/esphome/esphome/pull/4967) by [@ayufan](https://github.com/ayufan)
- support empty schemas and one platform components [esphome#4999](https://github.com/esphome/esphome/pull/4999) by [@glmnet](https://github.com/glmnet)
- update dsmr to 0.7 [esphome#5011](https://github.com/esphome/esphome/pull/5011) by [@Pvlerick](https://github.com/Pvlerick)
- add water delivered to dsmr component [esphome#4237](https://github.com/esphome/esphome/pull/4237) by [@jerome992](https://github.com/jerome992)
- Update sync workflow [esphome#5017](https://github.com/esphome/esphome/pull/5017) by [@jesserockz](https://github.com/jesserockz)
- Bump aioesphomeapi from 14.1.0 to 15.0.0 [esphome#5012](https://github.com/esphome/esphome/pull/5012) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pyupgrade from 3.4.0 to 3.7.0 [esphome#4971](https://github.com/esphome/esphome/pull/4971) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pytest from 7.3.2 to 7.4.0 [esphome#5000](https://github.com/esphome/esphome/pull/5000) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Attempt to fix script parameters [esphome#4627](https://github.com/esphome/esphome/pull/4627) by [@jesserockz](https://github.com/jesserockz)
- Remove yaml test cache [esphome#5019](https://github.com/esphome/esphome/pull/5019) by [@jesserockz](https://github.com/jesserockz)
- Bump esptool from 4.6 to 4.6.2 [esphome#4949](https://github.com/esphome/esphome/pull/4949) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Bump pytest-mock from 3.10.0 to 3.11.1 [esphome#4977](https://github.com/esphome/esphome/pull/4977) by [@dependabot[bot]](https://github.com/apps/dependabot)
- binary_sensor removed unused filter [esphome#5039](https://github.com/esphome/esphome/pull/5039) by [@dudanov](https://github.com/dudanov)
- binary_sensor filters templatable delays [esphome#5029](https://github.com/esphome/esphome/pull/5029) by [@dudanov](https://github.com/dudanov)
- Improve the gamma settings for the S3-Box-lite display [esphome#5046](https://github.com/esphome/esphome/pull/5046) by [@guillempages](https://github.com/guillempages)
- Prepare ethernet to work with esp idf 5.0 [esphome#5037](https://github.com/esphome/esphome/pull/5037) by [@HeMan](https://github.com/HeMan)
- Prepare debug and logger component to work with idf 5.0 [esphome#5036](https://github.com/esphome/esphome/pull/5036) by [@HeMan](https://github.com/HeMan)
- Mopeka std fixes [esphome#5041](https://github.com/esphome/esphome/pull/5041) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Adjust signature for on_disconnect [esphome#5009](https://github.com/esphome/esphome/pull/5009) by [@bdraco](https://github.com/bdraco)
- Log component long time message at warning level [esphome#5048](https://github.com/esphome/esphome/pull/5048) by [@jesserockz](https://github.com/jesserockz)
- Log start of i2c setup [esphome#5049](https://github.com/esphome/esphome/pull/5049) by [@jesserockz](https://github.com/jesserockz)
- Initial debug component support for rp2040 [esphome#5056](https://github.com/esphome/esphome/pull/5056) by [@HeMan](https://github.com/HeMan)
- Fix when idf component has broken symlinks [esphome#5058](https://github.com/esphome/esphome/pull/5058) by [@jesserockz](https://github.com/jesserockz)
- Some tests wasn't running (locally) [esphome#5050](https://github.com/esphome/esphome/pull/5050) by [@HeMan](https://github.com/HeMan)
- [ILI9xxx] Add ili9488_a (alternative gamma configuration for ILI9488) [esphome#5027](https://github.com/esphome/esphome/pull/5027) by [@lnicolas83](https://github.com/lnicolas83)
- [ili9xxx] Allow config of spi data rate. [esphome#4701](https://github.com/esphome/esphome/pull/4701) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Make scheduler debuging work with idf >= 5 [esphome#5052](https://github.com/esphome/esphome/pull/5052) by [@HeMan](https://github.com/HeMan)
- Adds 1.54" e-ink display (gdew0154m09) support to waveshare_epaper component [esphome#4939](https://github.com/esphome/esphome/pull/4939) by [@tobiasoort](https://github.com/tobiasoort)
- display: split `DisplayBuffer` and `Display` [esphome#5001](https://github.com/esphome/esphome/pull/5001) by [@ayufan](https://github.com/ayufan)
- Fixed ili9xxx_display update() method [esphome#5013](https://github.com/esphome/esphome/pull/5013) by [@nielsnl68](https://github.com/nielsnl68)
- [Ethernet] ksz8081rna support [esphome#4739](https://github.com/esphome/esphome/pull/4739) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Improve BME680 BSEC sensor device classes [esphome#4859](https://github.com/esphome/esphome/pull/4859) by [@trvrnrth](https://github.com/trvrnrth)
- Update RP2040 Aruino framwork and platform to latest [esphome#5025](https://github.com/esphome/esphome/pull/5025) by [@HeMan](https://github.com/HeMan)
- Allow pillow versions over 10 [esphome#5071](https://github.com/esphome/esphome/pull/5071) by [@HeMan](https://github.com/HeMan)
- display: Rename `display.DisplayBufferRef` to `display.DisplayRef` used by lambda [esphome#5002](https://github.com/esphome/esphome/pull/5002) by [@ayufan](https://github.com/ayufan) (breaking-change)
- Add Zio Ultrasonic Distance Sensor Component [esphome#5059](https://github.com/esphome/esphome/pull/5059) by [@kahrendt](https://github.com/kahrendt) (new-integration)
- Add Alpha3 pump component [esphome#3787](https://github.com/esphome/esphome/pull/3787) by [@jan-hofmeier](https://github.com/jan-hofmeier) (new-integration)
- RTC implementation of pcf8563 [esphome#4998](https://github.com/esphome/esphome/pull/4998) by [@KoenBreeman](https://github.com/KoenBreeman) (new-integration)
- web server esp idf suppport [esphome#3500](https://github.com/esphome/esphome/pull/3500) by [@dentra](https://github.com/dentra) (new-integration)
- Add TT21100 touchscreen component [esphome#4793](https://github.com/esphome/esphome/pull/4793) by [@kroimon](https://github.com/kroimon) (new-integration)
- tuya_light: fix float->int conversion while setting color temperature [esphome#5067](https://github.com/esphome/esphome/pull/5067) by [@kswt](https://github.com/kswt)
- Fix typo in mpu6050.cpp [esphome#5086](https://github.com/esphome/esphome/pull/5086) by [@stefanklug](https://github.com/stefanklug)
- airthings_wave: Battery level reporting [esphome#4979](https://github.com/esphome/esphome/pull/4979) by [@kpfleming](https://github.com/kpfleming)
- Add support for Grove tb6612 fng [esphome#4797](https://github.com/esphome/esphome/pull/4797) by [@max246](https://github.com/max246) (new-integration)
- Add MCP2515 12MHz xtal support [esphome#5089](https://github.com/esphome/esphome/pull/5089) by [@clydebarrow](https://github.com/clydebarrow)
- Correct message for standard transmission. [esphome#5088](https://github.com/esphome/esphome/pull/5088) by [@clydebarrow](https://github.com/clydebarrow)
- Restrict pillow to versions before 10.0.0 [esphome#5090](https://github.com/esphome/esphome/pull/5090) by [@jesserockz](https://github.com/jesserockz)
- Bump esphome-dashboard to 20230711.0 [esphome#5085](https://github.com/esphome/esphome/pull/5085) by [@jesserockz](https://github.com/jesserockz)
- added uart final validate data bits [esphome#5079](https://github.com/esphome/esphome/pull/5079) by [@dudanov](https://github.com/dudanov)
- Add support for ATM90E26 [esphome#4366](https://github.com/esphome/esphome/pull/4366) by [@danieltwagner](https://github.com/danieltwagner) (new-integration)
- Grove amend name [esphome#5093](https://github.com/esphome/esphome/pull/5093) by [@max246](https://github.com/max246)
- Fixing colon for tm1637 display if inverted set true [esphome#5072](https://github.com/esphome/esphome/pull/5072) by [@paveldn](https://github.com/paveldn)
- Fix use of optional<T> [esphome#5091](https://github.com/esphome/esphome/pull/5091) by [@dudanov](https://github.com/dudanov)
- New 'Duty Time' sensor component [esphome#5069](https://github.com/esphome/esphome/pull/5069) by [@dudanov](https://github.com/dudanov) (new-integration)
- Fix PIDController::in_deadband() to give correct result when error is zero [esphome#5078](https://github.com/esphome/esphome/pull/5078) by [@lewissbaker](https://github.com/lewissbaker)
- Edit error message for pillow install to add version restrictions [esphome#5094](https://github.com/esphome/esphome/pull/5094) by [@jesserockz](https://github.com/jesserockz)
- Dont do mqtt ip lookup if `use_address` has ip address [esphome#5096](https://github.com/esphome/esphome/pull/5096) by [@jesserockz](https://github.com/jesserockz)
- ESP32 enable ADC2 when wifi is disabled [esphome#4381](https://github.com/esphome/esphome/pull/4381) by [@pciavald](https://github.com/pciavald)
- [Sprinkler] Resume fixes [esphome#5100](https://github.com/esphome/esphome/pull/5100) by [@hostcc](https://github.com/hostcc)
- Remove template switch restore_state [esphome#5106](https://github.com/esphome/esphome/pull/5106) by [@jesserockz](https://github.com/jesserockz) (breaking-change)
- Add timeout filter [esphome#5104](https://github.com/esphome/esphome/pull/5104) by [@clydebarrow](https://github.com/clydebarrow)
- P1 values for capacity tariff in Belgium [esphome#5081](https://github.com/esphome/esphome/pull/5081) by [@bwynants](https://github.com/bwynants)
- airthings_wave: Silence compiler warnings [esphome#5098](https://github.com/esphome/esphome/pull/5098) by [@kpfleming](https://github.com/kpfleming)
- Sigma delta fix [esphome#4911](https://github.com/esphome/esphome/pull/4911) by [@PlainTechEnthusiast](https://github.com/PlainTechEnthusiast)
- [LD2410] Remove baud_rate check [esphome#5112](https://github.com/esphome/esphome/pull/5112) by [@voed](https://github.com/voed)
- Fix silence detection flag on voice assistant [esphome#5120](https://github.com/esphome/esphome/pull/5120) by [@jesserockz](https://github.com/jesserockz)
- [voice_assistant] Half the microphone ringbuffer size [esphome#6830](https://github.com/esphome/esphome/pull/6830) by [@jesserockz](https://github.com/jesserockz)
- [i2s_speaker] Add buffer allocation failure checks [esphome#6829](https://github.com/esphome/esphome/pull/6829) by [@jesserockz](https://github.com/jesserockz)
- [improv_serial] Fix for IDF 4.4.7 [esphome#6855](https://github.com/esphome/esphome/pull/6855) by [@kbx81](https://github.com/kbx81)

View File

@@ -26,13 +26,13 @@ schema:
ssl: bool?
certfile: str?
keyfile: str?
relative_url: str?
leave_front_door_open: bool?
backup_exclude:
- '*/*/'
init: false
startup: services
name: ESPHome
version: 2023.7.0
version: 2024.5.5
slug: esphome
description: ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices
image: ghcr.io/esphome/esphome-hassio

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -2,7 +2,6 @@
import argparse
import re
import subprocess
from dataclasses import dataclass
import sys
import os
@@ -17,72 +16,71 @@ class Version:
minor: int
patch: int
beta: int = 0
dev: bool = False
dev: str = ""
def __str__(self):
return f'{self.major}.{self.minor}.{self.full_patch}'
return f"{self.major}.{self.minor}.{self.full_patch}"
@property
def full_patch(self):
res = f'{self.patch}'
res = f"{self.patch}"
if self.beta > 0:
res += f'b{self.beta}'
res += f"b{self.beta}"
if self.dev:
res += '-dev'
res += f"-dev{self.dev}"
return res
@classmethod
def parse(cls, value):
match = re.match(r'(\d+).(\d+).(\d+)(b\d+)?(-dev)?', value)
match = re.match(r"(\d+).(\d+).(\d+)(b\d+)?(-dev\d+)?", value)
assert match is not None
major = int(match[1])
minor = int(match[2])
patch = int(match[3])
beta = int(match[4][1:]) if match[4] else 0
dev = bool(match[5])
return Version(
major=major, minor=minor, patch=patch,
beta=beta, dev=dev
)
dev = str(match[5][4:]) if match[5] else ""
return Version(major=major, minor=minor, patch=patch, beta=beta, dev=dev)
def sub(path, pattern, repl, expected_count=1):
with open(path) as fh:
def _sub(path, pattern, repl, expected_count=1):
with open(path, encoding="utf-8") as fh:
content = fh.read()
content, count = re.subn(pattern, repl, content, flags=re.MULTILINE)
content, count = re.subn(pattern, repl, content, flags=re.NOFLAG)
if expected_count is not None:
assert count == expected_count, f"Pattern {pattern} replacement failed!"
with open(path, "wt") as fh:
with open(path, "wt", encoding="utf-8") as fh:
fh.write(content)
def write_version(target: str, version: Version):
# version: '1.14.5' # BETA
# version: '1.14.5' # STABLE
sub(
'template/addon_config.yaml',
r" version: '[^']+' # {}".format(target.upper()),
f" version: '{version}' # {target.upper()}"
def _write_version(target: str, version: Version):
# version: "2024.5.0-dev20240412" # DEV
# version: "1.14.5" # BETA
# version: "1.14.5" # STABLE
_sub(
"template/addon_config.yaml",
f' version: "[^"]+" # {target.upper()}',
f' version: "{version}" # {target.upper()}',
)
def main():
parser = argparse.ArgumentParser()
parser.add_argument('new_version', type=str)
parser.add_argument("new_version", type=str)
args = parser.parse_args()
version = Version.parse(args.new_version)
assert not version.dev
print(f"Bumping to {version}")
if version.beta:
write_version('beta', version)
generate.main(['beta'])
if version.dev:
_write_version("dev", version)
generate.main(["dev"])
elif version.beta:
_write_version("beta", version)
generate.main(["beta"])
else:
assert not version.beta
write_version('stable', version)
write_version('beta', version)
generate.main(['stable', 'beta'])
_write_version("stable", version)
_write_version("beta", version)
generate.main(["stable", "beta"])
return 0

View File

@@ -1,13 +1,14 @@
#!/usr/bin/env python3
import argparse
import yaml
from pathlib import Path
from enum import Enum
from shutil import copyfile
import sys
import os
import yaml
class Channel(Enum):
stable = "stable"
@@ -25,17 +26,16 @@ def main(args):
root = Path(__file__).parent.parent
templ = root / "template"
with open(templ / "addon_config.yaml", "r") as f:
with open(templ / "addon_config.yaml", "r", encoding="utf-8") as f:
config = yaml.safe_load(f)
copyf = config["copy_files"]
for channel in args.channels:
conf = config[f"esphome-{channel.value}"]
base_image = conf.pop("base_image", None)
dir_ = root / conf.pop("directory")
path = dir_ / "config.yaml"
with open(path, "w") as f:
with open(path, "w", encoding="utf-8") as f:
yaml.dump(conf, f, indent=2, sort_keys=False, explicit_start=True)
for file_ in copyf:
@@ -46,19 +46,9 @@ def main(args):
copyfile(templ / file_, dir_ / file_)
path = dir_ / "FILES ARE GENERATED DO NOT EDIT"
with open(path, "w") as f:
with open(path, "w", encoding="utf-8") as f:
f.write("Any edits should be made to the files in the 'template' directory")
if channel == Channel.dev:
path = dir_ / "build.yaml"
build_conf = {
"build_from": {
arch: base_image for arch in conf["arch"]
}
}
with open(path, "w") as f:
yaml.dump(build_conf, f, indent=2, sort_keys=True, explicit_start=True)
if __name__ == "__main__":
main(sys.argv[1:])

View File

@@ -16,11 +16,11 @@ base: &base
# Ingress settings
ingress: true
ingress_port: 0
panel_icon: 'mdi:chip'
panel_icon: "mdi:chip"
# Automatically add UART devices to add-on
uart: true
ports:
'6052/tcp': null
"6052/tcp": null
map:
- ssl:ro
- config:rw
@@ -34,21 +34,23 @@ base: &base
ssl: bool?
certfile: str?
keyfile: str?
relative_url: str?
leave_front_door_open: bool?
backup_exclude:
- "*/*/"
# Disable docker init for s6
init: false
# Make sure dashboard is available for core
startup: services
esphome-dev:
<<: *base
directory: esphome-dev
name: ESPHome (dev)
version: 'dev' # DEV
version: "2024.7.0-dev20240618" # DEV
slug: esphome-dev
description: "Development version of ESPHome add-on"
url: https://next.esphome.io/
image: ghcr.io/esphome/esphome-hassio
stage: experimental
advanced: true
schema:
@@ -60,17 +62,15 @@ esphome-dev:
ssl: bool?
certfile: str?
keyfile: str?
relative_url: str?
leave_front_door_open: bool?
base_image: ghcr.io/esphome/esphome-hassio:dev
options:
home_assistant_dashboard_integration: false
home_assistant_dashboard_integration: false
esphome-beta:
<<: *base
directory: esphome-beta
name: ESPHome (beta)
version: '2023.7.0' # BETA
version: "2024.6.0b4" # BETA
slug: esphome-beta
description: "Beta version of ESPHome add-on"
url: https://beta.esphome.io/
@@ -78,13 +78,13 @@ esphome-beta:
stage: experimental
advanced: true
options:
home_assistant_dashboard_integration: false
home_assistant_dashboard_integration: false
esphome-stable:
<<: *base
directory: esphome
name: ESPHome
version: '2023.7.0' # STABLE
version: "2024.5.5" # STABLE
slug: esphome
description: "ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices"
image: ghcr.io/esphome/esphome-hassio

BIN
template/beta/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
template/beta/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
template/dev/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
template/dev/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB