1
0

Compare commits

..

323 Commits

30 changed files with 126 additions and 366 deletions

View File

@@ -15,45 +15,47 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4.0.0
- 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.2.2
- uses: actions/setup-python@v5.3.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@v4.0.0
- uses: actions/checkout@v4.2.2
- name: Log in to the GitHub container registry
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.3.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.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.10.0
uses: docker/setup-buildx-action@v3.7.1
- name: Build and Push
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v6.9.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@v4.0.0
uses: actions/checkout@v4.2.2
- name: 🛠 Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.3.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.2
uses: frenck/action-addon-linter@v2.17.1
with:
path: "./${{ matrix.channels.folder }}"

View File

@@ -1,93 +1,6 @@
## 2023.10.0
## 2024.10.2
## Full list of changes
### New Components
- Implement sensor component for MMC5983 [esphome#5361](https://github.com/esphome/esphome/pull/5361) by [@agoode](https://github.com/agoode) (new-integration)
### Breaking Changes
- Do not enable SHT3x heater by default. Fixes #4886. [esphome#5445](https://github.com/esphome/esphome/pull/5445) by [@jkl1337](https://github.com/jkl1337) (breaking-change)
- Fix units for SPS30 number concentration sensors [esphome#5452](https://github.com/esphome/esphome/pull/5452) by [@kahrendt](https://github.com/kahrendt) (breaking-change)
### Beta Changes
- Update htu21d.cpp, fix publishing of heater level [esphome#5520](https://github.com/esphome/esphome/pull/5520) by [@Nippey](https://github.com/Nippey)
- BD5758D - Add delays and ACKs [esphome#5524](https://github.com/esphome/esphome/pull/5524) by [@Cossid](https://github.com/Cossid)
- Update Improv BLE component [esphome#5518](https://github.com/esphome/esphome/pull/5518) by [@jesserockz](https://github.com/jesserockz)
- SM10BIT_BASE - Add delays and ACKs, clear all channels before sleeping. [esphome#5526](https://github.com/esphome/esphome/pull/5526) by [@Cossid](https://github.com/Cossid)
- BP1658CJ - Clear all channels before sleeping. [esphome#5525](https://github.com/esphome/esphome/pull/5525) by [@Cossid](https://github.com/Cossid)
- Prometheus fix for esp-idf and fix newlines [esphome#5536](https://github.com/esphome/esphome/pull/5536) by [@jesserockz](https://github.com/jesserockz)
- Make IPAddress's operator!= compare values, not memory addresses. [esphome#5537](https://github.com/esphome/esphome/pull/5537) by [@raineth](https://github.com/raineth)
- Add change i2c address and allow multi conf for TB6612FNG [esphome#5492](https://github.com/esphome/esphome/pull/5492) by [@max246](https://github.com/max246)
- Add stream start and end events [esphome#5545](https://github.com/esphome/esphome/pull/5545) by [@jesserockz](https://github.com/jesserockz)
- Fix esp32_improv authorizer with no binary sensors in config [esphome#5546](https://github.com/esphome/esphome/pull/5546) by [@jesserockz](https://github.com/jesserockz)
- More voice assistant fixes [esphome#5547](https://github.com/esphome/esphome/pull/5547) by [@jesserockz](https://github.com/jesserockz)
- Fix default libretiny manufacturer reported to HA [esphome#5549](https://github.com/esphome/esphome/pull/5549) by [@jesserockz](https://github.com/jesserockz)
- SML: fix incomplete sign extension for abbreviated transmissions [esphome#5544](https://github.com/esphome/esphome/pull/5544) by [@fblaese](https://github.com/fblaese)
- esp32_improv advertise capabilities and state in ble service data [esphome#5553](https://github.com/esphome/esphome/pull/5553) by [@jesserockz](https://github.com/jesserockz)
### Notable Changes
- Add xor automation condition [esphome#5453](https://github.com/esphome/esphome/pull/5453) by [@kahrendt](https://github.com/kahrendt) (notable-change)
### All changes
- SX1509 component [esphome#5385](https://github.com/esphome/esphome/pull/5385) by [@vr6racer](https://github.com/vr6racer)
- Ci find YAML tests dynamically [esphome#5399](https://github.com/esphome/esphome/pull/5399) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Make ESPHome data dir configurable [esphome#5417](https://github.com/esphome/esphome/pull/5417) by [@werdnum](https://github.com/werdnum)
- Bump actions/checkout from 4.0.0 to 4.1.0 [esphome#5420](https://github.com/esphome/esphome/pull/5420) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Fix typo in documentation [esphome#5425](https://github.com/esphome/esphome/pull/5425) by [@kapily](https://github.com/kapily)
- Bump pylint from 2.17.5 to 2.17.6 [esphome#5429](https://github.com/esphome/esphome/pull/5429) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Refactor ip address representation [esphome#5252](https://github.com/esphome/esphome/pull/5252) by [@HeMan](https://github.com/HeMan)
- Fix .esphome path when not using envvar [esphome#5440](https://github.com/esphome/esphome/pull/5440) by [@jesserockz](https://github.com/jesserockz)
- [BP1658CJ] Missing clock line delays and ack bit [esphome#5448](https://github.com/esphome/esphome/pull/5448) by [@leoshusar](https://github.com/leoshusar)
- [ssd1351] fix: wait for the component to be at least in setup phase b… [esphome#5454](https://github.com/esphome/esphome/pull/5454) by [@xdecock](https://github.com/xdecock)
- Do not enable SHT3x heater by default. Fixes #4886. [esphome#5445](https://github.com/esphome/esphome/pull/5445) by [@jkl1337](https://github.com/jkl1337) (breaking-change)
- Add testcases for multiple SPI buses on ESP32 Arduino [esphome#5457](https://github.com/esphome/esphome/pull/5457) by [@angelnu](https://github.com/angelnu)
- Feat/component poller suspend [esphome#5423](https://github.com/esphome/esphome/pull/5423) by [@xdecock](https://github.com/xdecock)
- Bump actions/setup-python from 4.7.0 to 4.7.1 [esphome#5467](https://github.com/esphome/esphome/pull/5467) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add xor automation condition [esphome#5453](https://github.com/esphome/esphome/pull/5453) by [@kahrendt](https://github.com/kahrendt) (notable-change)
- Fix units for SPS30 number concentration sensors [esphome#5452](https://github.com/esphome/esphome/pull/5452) by [@kahrendt](https://github.com/kahrendt) (breaking-change)
- ST7789v - Allow predefined backlight pin to be disabled. [esphome#5476](https://github.com/esphome/esphome/pull/5476) by [@clydebarrow](https://github.com/clydebarrow)
- MAX7219 - Update intensity [esphome#5477](https://github.com/esphome/esphome/pull/5477) by [@clydebarrow](https://github.com/clydebarrow)
- St7789v and SPI data rate [esphome#5472](https://github.com/esphome/esphome/pull/5472) by [@clydebarrow](https://github.com/clydebarrow)
- Move CONF_IRQ_PIN into const.py [esphome#5488](https://github.com/esphome/esphome/pull/5488) by [@kbx81](https://github.com/kbx81)
- Initial ESP32-H2 Support [esphome#5498](https://github.com/esphome/esphome/pull/5498) by [@vidplace7](https://github.com/vidplace7)
- Increased debug message precision [esphome#5496](https://github.com/esphome/esphome/pull/5496) by [@lukeansell](https://github.com/lukeansell)
- Support for Haier IR protocol added [esphome#5403](https://github.com/esphome/esphome/pull/5403) by [@paveldn](https://github.com/paveldn)
- add USE_SPI define [esphome#5500](https://github.com/esphome/esphome/pull/5500) by [@angelnu](https://github.com/angelnu)
- Implement sensor component for MMC5983 [esphome#5361](https://github.com/esphome/esphome/pull/5361) by [@agoode](https://github.com/agoode) (new-integration)
- Bump docker dependencies [esphome#5501](https://github.com/esphome/esphome/pull/5501) by [@jesserockz](https://github.com/jesserockz)
- Move to Pillow 10.x [esphome#5489](https://github.com/esphome/esphome/pull/5489) by [@hostcc](https://github.com/hostcc)
- [Sprinkler] Initialize timers early to avoid crash [esphome#5499](https://github.com/esphome/esphome/pull/5499) by [@hostcc](https://github.com/hostcc)
- Deep sleep is only available on esp32 and esp8266 [esphome#5507](https://github.com/esphome/esphome/pull/5507) by [@jesserockz](https://github.com/jesserockz)
- Use platform consts [esphome#5508](https://github.com/esphome/esphome/pull/5508) by [@jesserockz](https://github.com/jesserockz)
- Fixed precision for Nextion sensor with float values [esphome#5497](https://github.com/esphome/esphome/pull/5497) by [@olegtarasov](https://github.com/olegtarasov)
- Remote wake word support for voice assistant [esphome#5229](https://github.com/esphome/esphome/pull/5229) by [@jesserockz](https://github.com/jesserockz)
- Don't allow entity category "CONFIG" for sensors [esphome#5505](https://github.com/esphome/esphome/pull/5505) by [@edenhaus](https://github.com/edenhaus)
- Prepare protobuf for ESP-IDF >= 5 [esphome#5510](https://github.com/esphome/esphome/pull/5510) by [@HeMan](https://github.com/HeMan)
- fix build lang schema for spi and i2c [esphome#5509](https://github.com/esphome/esphome/pull/5509) by [@glmnet](https://github.com/glmnet)
- Added Nextion display error handling during setup [esphome#5493](https://github.com/esphome/esphome/pull/5493) by [@olegtarasov](https://github.com/olegtarasov)
- Fix e131 and voice_assistant sockets [esphome#5502](https://github.com/esphome/esphome/pull/5502) by [@justdaniel-gh](https://github.com/justdaniel-gh)
- Allow manual set "Invert_display" [esphome#5494](https://github.com/esphome/esphome/pull/5494) by [@nielsnl68](https://github.com/nielsnl68)
- As3935 calibration [esphome#5366](https://github.com/esphome/esphome/pull/5366) by [@mveinot](https://github.com/mveinot)
- Small fixes for voice assistant [esphome#5513](https://github.com/esphome/esphome/pull/5513) by [@synesthesiam](https://github.com/synesthesiam)
- Add detail param to allow listing of select options in WebServer REST API [esphome#5503](https://github.com/esphome/esphome/pull/5503) by [@DanielBaulig](https://github.com/DanielBaulig)
- Bump curl to 7.74.0-1.3+deb11u10 [esphome#5517](https://github.com/esphome/esphome/pull/5517) by [@jesserockz](https://github.com/jesserockz)
- Update htu21d.cpp, fix publishing of heater level [esphome#5520](https://github.com/esphome/esphome/pull/5520) by [@Nippey](https://github.com/Nippey)
- BD5758D - Add delays and ACKs [esphome#5524](https://github.com/esphome/esphome/pull/5524) by [@Cossid](https://github.com/Cossid)
- Update Improv BLE component [esphome#5518](https://github.com/esphome/esphome/pull/5518) by [@jesserockz](https://github.com/jesserockz)
- SM10BIT_BASE - Add delays and ACKs, clear all channels before sleeping. [esphome#5526](https://github.com/esphome/esphome/pull/5526) by [@Cossid](https://github.com/Cossid)
- BP1658CJ - Clear all channels before sleeping. [esphome#5525](https://github.com/esphome/esphome/pull/5525) by [@Cossid](https://github.com/Cossid)
- Prometheus fix for esp-idf and fix newlines [esphome#5536](https://github.com/esphome/esphome/pull/5536) by [@jesserockz](https://github.com/jesserockz)
- Make IPAddress's operator!= compare values, not memory addresses. [esphome#5537](https://github.com/esphome/esphome/pull/5537) by [@raineth](https://github.com/raineth)
- Add change i2c address and allow multi conf for TB6612FNG [esphome#5492](https://github.com/esphome/esphome/pull/5492) by [@max246](https://github.com/max246)
- Add stream start and end events [esphome#5545](https://github.com/esphome/esphome/pull/5545) by [@jesserockz](https://github.com/jesserockz)
- Fix esp32_improv authorizer with no binary sensors in config [esphome#5546](https://github.com/esphome/esphome/pull/5546) by [@jesserockz](https://github.com/jesserockz)
- More voice assistant fixes [esphome#5547](https://github.com/esphome/esphome/pull/5547) by [@jesserockz](https://github.com/jesserockz)
- Fix default libretiny manufacturer reported to HA [esphome#5549](https://github.com/esphome/esphome/pull/5549) by [@jesserockz](https://github.com/jesserockz)
- SML: fix incomplete sign extension for abbreviated transmissions [esphome#5544](https://github.com/esphome/esphome/pull/5544) by [@fblaese](https://github.com/fblaese)
- esp32_improv advertise capabilities and state in ble service data [esphome#5553](https://github.com/esphome/esphome/pull/5553) by [@jesserockz](https://github.com/jesserockz)
- Humanized the missing MQTT log topic error message [esphome#7634](https://github.com/esphome/esphome/pull/7634) by [@solarkennedy](https://github.com/solarkennedy)
- [lvgl] Some properties were not templatable (Bugfix) [esphome#7655](https://github.com/esphome/esphome/pull/7655) by [@clydebarrow](https://github.com/clydebarrow)
- [voice_assistant] Bugfix: Fix crash on start [esphome#7662](https://github.com/esphome/esphome/pull/7662) by [@kahrendt](https://github.com/kahrendt)

View File

@@ -30,8 +30,9 @@ schema:
backup_exclude:
- '*/*/'
init: false
startup: services
name: ESPHome (beta)
version: 2023.10.0
version: 2024.10.2
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: 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,4 +1,4 @@
# ESPHome Dev Add-On
# ESPHome Device Compiler (Development branch)
[![ESPHome logo][logo]][website]
@@ -7,13 +7,13 @@
## About
This add-on allows you to manage and program your ESP8266 and ESP32 based microcontrollers
directly through Home Assistant **with no programming experience required**. All you need to do
is write YAML configuration files; the rest (over-the-air updates, compiling) is all
This add-on allows you to write configurations and turn your microcontrollers
into smart home devices directly through Home Assistant **with no programming experience required**.
All you need to do is write YAML configuration files; the rest (over-the-air updates, compiling) is all
handled by ESPHome.
<p align="center">
<img title="ESPHome dashboard screenshot" src="https://github.com/esphome/home-assistant-addon/raw/main/esphome-dev/images/screenshot.png" width="700px"></img>
<img title="ESPHome Device Compiler screenshot" src="https://github.com/esphome/home-assistant-addon/raw/main/esphome-dev/images/screenshot.png" width="700px"></img>
</p>
[View the ESPHome documentation][website]

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

@@ -31,10 +31,12 @@ schema:
backup_exclude:
- '*/*/'
init: false
name: ESPHome (dev)
version: dev
startup: services
name: ESPHome Device Compiler (dev)
version: 2024.11.0-dev20241024
slug: esphome-dev
description: Development version of ESPHome add-on
description: Development version of ESPHome Device Compiler
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,93 +1,6 @@
## 2023.10.0
## 2024.10.2
## Full list of changes
### New Components
- Implement sensor component for MMC5983 [esphome#5361](https://github.com/esphome/esphome/pull/5361) by [@agoode](https://github.com/agoode) (new-integration)
### Breaking Changes
- Do not enable SHT3x heater by default. Fixes #4886. [esphome#5445](https://github.com/esphome/esphome/pull/5445) by [@jkl1337](https://github.com/jkl1337) (breaking-change)
- Fix units for SPS30 number concentration sensors [esphome#5452](https://github.com/esphome/esphome/pull/5452) by [@kahrendt](https://github.com/kahrendt) (breaking-change)
### Beta Changes
- Update htu21d.cpp, fix publishing of heater level [esphome#5520](https://github.com/esphome/esphome/pull/5520) by [@Nippey](https://github.com/Nippey)
- BD5758D - Add delays and ACKs [esphome#5524](https://github.com/esphome/esphome/pull/5524) by [@Cossid](https://github.com/Cossid)
- Update Improv BLE component [esphome#5518](https://github.com/esphome/esphome/pull/5518) by [@jesserockz](https://github.com/jesserockz)
- SM10BIT_BASE - Add delays and ACKs, clear all channels before sleeping. [esphome#5526](https://github.com/esphome/esphome/pull/5526) by [@Cossid](https://github.com/Cossid)
- BP1658CJ - Clear all channels before sleeping. [esphome#5525](https://github.com/esphome/esphome/pull/5525) by [@Cossid](https://github.com/Cossid)
- Prometheus fix for esp-idf and fix newlines [esphome#5536](https://github.com/esphome/esphome/pull/5536) by [@jesserockz](https://github.com/jesserockz)
- Make IPAddress's operator!= compare values, not memory addresses. [esphome#5537](https://github.com/esphome/esphome/pull/5537) by [@raineth](https://github.com/raineth)
- Add change i2c address and allow multi conf for TB6612FNG [esphome#5492](https://github.com/esphome/esphome/pull/5492) by [@max246](https://github.com/max246)
- Add stream start and end events [esphome#5545](https://github.com/esphome/esphome/pull/5545) by [@jesserockz](https://github.com/jesserockz)
- Fix esp32_improv authorizer with no binary sensors in config [esphome#5546](https://github.com/esphome/esphome/pull/5546) by [@jesserockz](https://github.com/jesserockz)
- More voice assistant fixes [esphome#5547](https://github.com/esphome/esphome/pull/5547) by [@jesserockz](https://github.com/jesserockz)
- Fix default libretiny manufacturer reported to HA [esphome#5549](https://github.com/esphome/esphome/pull/5549) by [@jesserockz](https://github.com/jesserockz)
- SML: fix incomplete sign extension for abbreviated transmissions [esphome#5544](https://github.com/esphome/esphome/pull/5544) by [@fblaese](https://github.com/fblaese)
- esp32_improv advertise capabilities and state in ble service data [esphome#5553](https://github.com/esphome/esphome/pull/5553) by [@jesserockz](https://github.com/jesserockz)
### Notable Changes
- Add xor automation condition [esphome#5453](https://github.com/esphome/esphome/pull/5453) by [@kahrendt](https://github.com/kahrendt) (notable-change)
### All changes
- SX1509 component [esphome#5385](https://github.com/esphome/esphome/pull/5385) by [@vr6racer](https://github.com/vr6racer)
- Ci find YAML tests dynamically [esphome#5399](https://github.com/esphome/esphome/pull/5399) by [@Fabian-Schmidt](https://github.com/Fabian-Schmidt)
- Make ESPHome data dir configurable [esphome#5417](https://github.com/esphome/esphome/pull/5417) by [@werdnum](https://github.com/werdnum)
- Bump actions/checkout from 4.0.0 to 4.1.0 [esphome#5420](https://github.com/esphome/esphome/pull/5420) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Fix typo in documentation [esphome#5425](https://github.com/esphome/esphome/pull/5425) by [@kapily](https://github.com/kapily)
- Bump pylint from 2.17.5 to 2.17.6 [esphome#5429](https://github.com/esphome/esphome/pull/5429) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Refactor ip address representation [esphome#5252](https://github.com/esphome/esphome/pull/5252) by [@HeMan](https://github.com/HeMan)
- Fix .esphome path when not using envvar [esphome#5440](https://github.com/esphome/esphome/pull/5440) by [@jesserockz](https://github.com/jesserockz)
- [BP1658CJ] Missing clock line delays and ack bit [esphome#5448](https://github.com/esphome/esphome/pull/5448) by [@leoshusar](https://github.com/leoshusar)
- [ssd1351] fix: wait for the component to be at least in setup phase b… [esphome#5454](https://github.com/esphome/esphome/pull/5454) by [@xdecock](https://github.com/xdecock)
- Do not enable SHT3x heater by default. Fixes #4886. [esphome#5445](https://github.com/esphome/esphome/pull/5445) by [@jkl1337](https://github.com/jkl1337) (breaking-change)
- Add testcases for multiple SPI buses on ESP32 Arduino [esphome#5457](https://github.com/esphome/esphome/pull/5457) by [@angelnu](https://github.com/angelnu)
- Feat/component poller suspend [esphome#5423](https://github.com/esphome/esphome/pull/5423) by [@xdecock](https://github.com/xdecock)
- Bump actions/setup-python from 4.7.0 to 4.7.1 [esphome#5467](https://github.com/esphome/esphome/pull/5467) by [@dependabot[bot]](https://github.com/apps/dependabot)
- Add xor automation condition [esphome#5453](https://github.com/esphome/esphome/pull/5453) by [@kahrendt](https://github.com/kahrendt) (notable-change)
- Fix units for SPS30 number concentration sensors [esphome#5452](https://github.com/esphome/esphome/pull/5452) by [@kahrendt](https://github.com/kahrendt) (breaking-change)
- ST7789v - Allow predefined backlight pin to be disabled. [esphome#5476](https://github.com/esphome/esphome/pull/5476) by [@clydebarrow](https://github.com/clydebarrow)
- MAX7219 - Update intensity [esphome#5477](https://github.com/esphome/esphome/pull/5477) by [@clydebarrow](https://github.com/clydebarrow)
- St7789v and SPI data rate [esphome#5472](https://github.com/esphome/esphome/pull/5472) by [@clydebarrow](https://github.com/clydebarrow)
- Move CONF_IRQ_PIN into const.py [esphome#5488](https://github.com/esphome/esphome/pull/5488) by [@kbx81](https://github.com/kbx81)
- Initial ESP32-H2 Support [esphome#5498](https://github.com/esphome/esphome/pull/5498) by [@vidplace7](https://github.com/vidplace7)
- Increased debug message precision [esphome#5496](https://github.com/esphome/esphome/pull/5496) by [@lukeansell](https://github.com/lukeansell)
- Support for Haier IR protocol added [esphome#5403](https://github.com/esphome/esphome/pull/5403) by [@paveldn](https://github.com/paveldn)
- add USE_SPI define [esphome#5500](https://github.com/esphome/esphome/pull/5500) by [@angelnu](https://github.com/angelnu)
- Implement sensor component for MMC5983 [esphome#5361](https://github.com/esphome/esphome/pull/5361) by [@agoode](https://github.com/agoode) (new-integration)
- Bump docker dependencies [esphome#5501](https://github.com/esphome/esphome/pull/5501) by [@jesserockz](https://github.com/jesserockz)
- Move to Pillow 10.x [esphome#5489](https://github.com/esphome/esphome/pull/5489) by [@hostcc](https://github.com/hostcc)
- [Sprinkler] Initialize timers early to avoid crash [esphome#5499](https://github.com/esphome/esphome/pull/5499) by [@hostcc](https://github.com/hostcc)
- Deep sleep is only available on esp32 and esp8266 [esphome#5507](https://github.com/esphome/esphome/pull/5507) by [@jesserockz](https://github.com/jesserockz)
- Use platform consts [esphome#5508](https://github.com/esphome/esphome/pull/5508) by [@jesserockz](https://github.com/jesserockz)
- Fixed precision for Nextion sensor with float values [esphome#5497](https://github.com/esphome/esphome/pull/5497) by [@olegtarasov](https://github.com/olegtarasov)
- Remote wake word support for voice assistant [esphome#5229](https://github.com/esphome/esphome/pull/5229) by [@jesserockz](https://github.com/jesserockz)
- Don't allow entity category "CONFIG" for sensors [esphome#5505](https://github.com/esphome/esphome/pull/5505) by [@edenhaus](https://github.com/edenhaus)
- Prepare protobuf for ESP-IDF >= 5 [esphome#5510](https://github.com/esphome/esphome/pull/5510) by [@HeMan](https://github.com/HeMan)
- fix build lang schema for spi and i2c [esphome#5509](https://github.com/esphome/esphome/pull/5509) by [@glmnet](https://github.com/glmnet)
- Added Nextion display error handling during setup [esphome#5493](https://github.com/esphome/esphome/pull/5493) by [@olegtarasov](https://github.com/olegtarasov)
- Fix e131 and voice_assistant sockets [esphome#5502](https://github.com/esphome/esphome/pull/5502) by [@justdaniel-gh](https://github.com/justdaniel-gh)
- Allow manual set "Invert_display" [esphome#5494](https://github.com/esphome/esphome/pull/5494) by [@nielsnl68](https://github.com/nielsnl68)
- As3935 calibration [esphome#5366](https://github.com/esphome/esphome/pull/5366) by [@mveinot](https://github.com/mveinot)
- Small fixes for voice assistant [esphome#5513](https://github.com/esphome/esphome/pull/5513) by [@synesthesiam](https://github.com/synesthesiam)
- Add detail param to allow listing of select options in WebServer REST API [esphome#5503](https://github.com/esphome/esphome/pull/5503) by [@DanielBaulig](https://github.com/DanielBaulig)
- Bump curl to 7.74.0-1.3+deb11u10 [esphome#5517](https://github.com/esphome/esphome/pull/5517) by [@jesserockz](https://github.com/jesserockz)
- Update htu21d.cpp, fix publishing of heater level [esphome#5520](https://github.com/esphome/esphome/pull/5520) by [@Nippey](https://github.com/Nippey)
- BD5758D - Add delays and ACKs [esphome#5524](https://github.com/esphome/esphome/pull/5524) by [@Cossid](https://github.com/Cossid)
- Update Improv BLE component [esphome#5518](https://github.com/esphome/esphome/pull/5518) by [@jesserockz](https://github.com/jesserockz)
- SM10BIT_BASE - Add delays and ACKs, clear all channels before sleeping. [esphome#5526](https://github.com/esphome/esphome/pull/5526) by [@Cossid](https://github.com/Cossid)
- BP1658CJ - Clear all channels before sleeping. [esphome#5525](https://github.com/esphome/esphome/pull/5525) by [@Cossid](https://github.com/Cossid)
- Prometheus fix for esp-idf and fix newlines [esphome#5536](https://github.com/esphome/esphome/pull/5536) by [@jesserockz](https://github.com/jesserockz)
- Make IPAddress's operator!= compare values, not memory addresses. [esphome#5537](https://github.com/esphome/esphome/pull/5537) by [@raineth](https://github.com/raineth)
- Add change i2c address and allow multi conf for TB6612FNG [esphome#5492](https://github.com/esphome/esphome/pull/5492) by [@max246](https://github.com/max246)
- Add stream start and end events [esphome#5545](https://github.com/esphome/esphome/pull/5545) by [@jesserockz](https://github.com/jesserockz)
- Fix esp32_improv authorizer with no binary sensors in config [esphome#5546](https://github.com/esphome/esphome/pull/5546) by [@jesserockz](https://github.com/jesserockz)
- More voice assistant fixes [esphome#5547](https://github.com/esphome/esphome/pull/5547) by [@jesserockz](https://github.com/jesserockz)
- Fix default libretiny manufacturer reported to HA [esphome#5549](https://github.com/esphome/esphome/pull/5549) by [@jesserockz](https://github.com/jesserockz)
- SML: fix incomplete sign extension for abbreviated transmissions [esphome#5544](https://github.com/esphome/esphome/pull/5544) by [@fblaese](https://github.com/fblaese)
- esp32_improv advertise capabilities and state in ble service data [esphome#5553](https://github.com/esphome/esphome/pull/5553) by [@jesserockz](https://github.com/jesserockz)
- Humanized the missing MQTT log topic error message [esphome#7634](https://github.com/esphome/esphome/pull/7634) by [@solarkennedy](https://github.com/solarkennedy)
- [lvgl] Some properties were not templatable (Bugfix) [esphome#7655](https://github.com/esphome/esphome/pull/7655) by [@clydebarrow](https://github.com/clydebarrow)
- [voice_assistant] Bugfix: Fix crash on start [esphome#7662](https://github.com/esphome/esphome/pull/7662) by [@kahrendt](https://github.com/kahrendt)

View File

@@ -30,8 +30,9 @@ schema:
backup_exclude:
- '*/*/'
init: false
startup: services
name: ESPHome
version: 2023.10.0
version: 2024.10.2
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: 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
@@ -39,15 +39,18 @@ base: &base
- "*/*/"
# 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
name: ESPHome Device Compiler (dev)
version: "2024.11.0-dev20241024" # DEV
slug: esphome-dev
description: "Development version of ESPHome add-on"
description: "Development version of ESPHome Device Compiler"
url: https://next.esphome.io/
image: ghcr.io/esphome/esphome-hassio
stage: experimental
advanced: true
schema:
@@ -60,15 +63,14 @@ esphome-dev:
certfile: str?
keyfile: 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.10.0' # BETA
version: "2024.10.2" # BETA
slug: esphome-beta
description: "Beta version of ESPHome add-on"
url: https://beta.esphome.io/
@@ -76,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.10.0' # STABLE
version: "2024.10.2" # 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

View File

@@ -1,4 +1,4 @@
# ESPHome Dev Add-On
# ESPHome Device Compiler (Development branch)
[![ESPHome logo][logo]][website]
@@ -7,13 +7,13 @@
## About
This add-on allows you to manage and program your ESP8266 and ESP32 based microcontrollers
directly through Home Assistant **with no programming experience required**. All you need to do
is write YAML configuration files; the rest (over-the-air updates, compiling) is all
This add-on allows you to write configurations and turn your microcontrollers
into smart home devices directly through Home Assistant **with no programming experience required**.
All you need to do is write YAML configuration files; the rest (over-the-air updates, compiling) is all
handled by ESPHome.
<p align="center">
<img title="ESPHome dashboard screenshot" src="https://github.com/esphome/home-assistant-addon/raw/main/esphome-dev/images/screenshot.png" width="700px"></img>
<img title="ESPHome Device Compiler screenshot" src="https://github.com/esphome/home-assistant-addon/raw/main/esphome-dev/images/screenshot.png" width="700px"></img>
</p>
[View the ESPHome documentation][website]

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: 12 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB