Compare commits

..

1 Commits

Author SHA1 Message Date
pszafer
fbbd0802e0 rename packages to packages-v1.7.2 2026-01-26 14:34:29 +01:00
32 changed files with 362 additions and 121 deletions

View File

@@ -11,9 +11,6 @@ on:
required: true
default: '2026.1.2'
env:
ESPHOME_VERSION: "2026.1.2"
jobs:
build:
runs-on: ubuntu-latest
@@ -22,69 +19,34 @@ jobs:
include:
# Testing with single firmware first
- yaml_file: boneio-dimmer_gen2_8ch-v0_1.yaml
chip_family: ESP32-S3
# Uncomment below after testing:
# - yaml_file: boneio-dimmer_gen2_2rgbw-v0_1.yaml
# chip_family: ESP32-S3
# - yaml_file: boneio-32x10_lights_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-32x10_switches_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-24x16_switches_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-cover_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-cover_mix_lights_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-cover_mix_switches_v0_7.yaml
# chip_family: ESP32
# - yaml_file: boneio-8x10A_gen2_lights-v0_1.yaml
# chip_family: ESP32-S3
# - yaml_file: boneio-mosfet48_lights_v0_7.yaml
# chip_family: ESP32
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install ESPHome
run: pip install esphome==${{ env.ESPHOME_VERSION }}
- name: Build firmware
run: esphome compile ${{ matrix.yaml_file }}
- name: Get firmware name from YAML
id: get_name
run: |
NAME=$(grep -m1 'name:' ${{ matrix.yaml_file }} | sed 's/.*name:\s*//' | tr -d ' ')
echo "firmware_name=$NAME" >> $GITHUB_OUTPUT
echo "chip_family=${{ matrix.chip_family }}" >> $GITHUB_OUTPUT
- name: Copy firmware to output
run: |
mkdir -p output
FIRMWARE_NAME="${{ steps.get_name.outputs.firmware_name }}"
cp .esphome/build/${FIRMWARE_NAME}/.pioenvs/${FIRMWARE_NAME}/firmware.factory.bin output/${FIRMWARE_NAME}.bin
uses: esphome/build-action@v4
id: esphome-build
with:
yaml-file: ${{ matrix.yaml_file }}
version: latest
complete-manifest: true
- name: Upload firmware artifact
uses: actions/upload-artifact@v4
with:
name: firmware-${{ steps.get_name.outputs.firmware_name }}
path: output/*.bin
- name: Upload chip family info
run: echo "${{ matrix.chip_family }}" > output/${{ steps.get_name.outputs.firmware_name }}.chip
- name: Upload chip info artifact
uses: actions/upload-artifact@v4
with:
name: chip-${{ steps.get_name.outputs.firmware_name }}
path: output/*.chip
name: firmware-${{ steps.esphome-build.outputs.original-name }}
path: ${{ steps.esphome-build.outputs.name }}
deploy:
needs: build
@@ -95,9 +57,6 @@ jobs:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download firmware artifacts
uses: actions/download-artifact@v4
with:
@@ -105,13 +64,6 @@ jobs:
pattern: firmware-*
merge-multiple: true
- name: Download chip info artifacts
uses: actions/download-artifact@v4
with:
path: chip-info
pattern: chip-*
merge-multiple: true
- name: Get version
id: version
run: |
@@ -124,38 +76,14 @@ jobs:
- name: Prepare GitHub Pages content
run: |
mkdir -p gh-pages/firmware
cp artifacts/*.bin gh-pages/firmware/
# Generate manifest JSON files for ESP Web Tools
for bin in gh-pages/firmware/*.bin; do
FIRMWARE_NAME=$(basename "$bin" .bin)
CHIP_FAMILY="ESP32"
if [ -f "chip-info/${FIRMWARE_NAME}.chip" ]; then
CHIP_FAMILY=$(cat "chip-info/${FIRMWARE_NAME}.chip")
elif [[ "$FIRMWARE_NAME" == *"gen2"* ]]; then
CHIP_FAMILY="ESP32-S3"
fi
cat > gh-pages/${FIRMWARE_NAME}.json << EOF
{
"name": "boneIO ESPHome",
"version": "${{ steps.version.outputs.version }}",
"home_assistant_domain": "esphome",
"funding_url": "https://esphome.io/guides/supporters.html",
"new_install_prompt_erase": false,
"builds": [
{
"chipFamily": "${CHIP_FAMILY}",
"parts": [
{
"path": "firmware/${FIRMWARE_NAME}.bin",
"offset": 0
}
]
}
]
}
EOF
# esphome/build-action outputs: name/, name/manifest.json, name/*.bin
for dir in artifacts/*/; do
NAME=$(basename "$dir")
# Copy firmware binary
cp "$dir"*.bin gh-pages/firmware/
# Copy manifest and rename to firmware name
cp "$dir"manifest.json gh-pages/${NAME}.json
done
# Create version file
@@ -170,8 +98,8 @@ jobs:
<h1>boneIO ESPHome Firmware</h1>
<ul>
EOF
for bin in gh-pages/firmware/*.bin; do
NAME=$(basename "$bin" .bin)
for json in gh-pages/*.json; do
NAME=$(basename "$json" .json)
echo "<li><a href=\"${NAME}.json\">${NAME}</a></li>" >> gh-pages/index.html
done
cat >> gh-pages/index.html << 'EOF'
@@ -192,5 +120,5 @@ jobs:
with:
tag_name: v${{ steps.version.outputs.version }}
name: Firmware v${{ steps.version.outputs.version }}
files: artifacts/*.bin
files: gh-pages/firmware/*.bin
generate_release_notes: true

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -35,7 +35,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
'devices_v0_4/display.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -40,7 +40,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -98,7 +98,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -23,7 +23,7 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files:
[
'devices/serial_no.yaml',

View File

@@ -23,7 +23,7 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files:
[
'devices/serial_no.yaml',

View File

@@ -23,7 +23,7 @@ external_components:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files:
[
'devices/serial_no.yaml',

View File

@@ -96,7 +96,7 @@ modbus:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
# 'devices/dimmer_i2c.yaml',

View File

@@ -106,7 +106,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -106,7 +106,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -110,7 +110,7 @@ modbus:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
# 'devices/dimmer_i2c.yaml',

View File

@@ -1 +0,0 @@
boneio-dimmer_gen2_8ch-v0_1.yaml

View File

@@ -0,0 +1,314 @@
substitutions:
name: boneio-dr-gen2-8ch-01
friendly_name: 'BoneIO Dimmer Gen2'
serial_prefix: 'dim2' #Don't change it.
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-8ch-01.json'
esphome:
name: '${name}'
friendly_name: '${friendly_name}'
name_add_mac_suffix: true
project:
name: boneio.dimmer-led-gen2
version: '0.1'
on_boot:
priority: -100
then:
- delay: 5s
- if:
condition:
lambda: 'return id(serial_no) != nullptr;'
then:
- component.update: serial_no
- logger.log: "Serial No updated on boot"
else:
- logger.log: "Serial No component not found"
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
ethernet:
id: eth
type: W5500
clk_pin: GPIO13
mosi_pin: GPIO39
miso_pin: GPIO38
cs_pin: GPIO12
interrupt_pin: GPIO2
reset_pin: GPIO1
clock_speed: 25MHz
i2c:
sda: GPIO10
scl: GPIO11
scan: True
frequency: 400kHz
output:
- platform: ledc
pin: GPIO18
frequency: 1000Hz
inverted: false
id: chl01
- platform: ledc
pin: GPIO17
frequency: 1000Hz
inverted: false
id: chl02
- platform: ledc
pin: GPIO16
frequency: 1000Hz
inverted: false
id: chl03
- platform: ledc
pin: GPIO15
frequency: 1000Hz
inverted: false
id: chl04
- platform: ledc
pin: GPIO7
frequency: 1000Hz
inverted: false
id: chr01
- platform: ledc
pin: GPIO6
frequency: 1000Hz
inverted: false
id: chr02
- platform: ledc
pin: GPIO5
frequency: 1000Hz
inverted: false
id: chr03
- platform: ledc
pin: GPIO4
frequency: 1000Hz
inverted: false
id: chr04
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
# uart:
# id: boneio_uart
# rx_pin: GPIO21
# tx_pin: GPIO14
# baud_rate: 9600
# stop_bits: 1
# modbus:
# send_wait_time: 80ms
# uart_id: boneio_uart
# id: boneio_modbus
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]
# boneiopackages:
# url: https://github.com/boneIO-eu/esphome_packages
# ref: main
# refresh: 1min
# files:
# - path: sdm630.yaml
dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-dimmer_gen2_8ch-v0_1.yaml@main
import_full_config: true
pcf8574:
- id: 'pcf_inputs'
address: 0x38
logger:
hardware_uart: UART0
api:
reboot_timeout: 0s
ota:
- platform: esphome
- platform: web_server
web_server:
port: 80
version: 3
local: true
light:
- platform: monochromatic
output: chl01
name: 'CHL 01'
id: chl_01
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chl02
name: 'CHL 02'
id: chl_02
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chl03
name: 'CHL 03'
id: chl_03
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chl04
name: 'CHL 04'
id: chl_04
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chr01
name: 'CHR 01'
id: chr_01
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chr02
name: 'CHR 02'
id: chr_02
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chr03
name: 'CHR 03'
id: chr_03
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chr04
name: 'CHR 04'
id: chr_04
default_transition_length: 2s
gamma_correct: 0
debug:
update_interval: 15s
sensor:
- platform: debug
free:
name: "Heap Free"
block:
name: "Heap Max Block"
loop_time:
name: "Loop Time"
- platform: lm75b
id: boneIO_temp
name: 'Temperature'
update_interval: 30s
entity_category: diagnostic
on_value_range:
- above: 70.0
then:
- switch.turn_on: buzzer
- below: 70.0
then:
- switch.turn_off: buzzer
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
number: GPIO9
mode:
output: true
inverted: false
- platform: gpio
id: can_bus_switch
name: 'CAN Bus Switch'
pin:
number: GPIO35
mode:
output: true
inverted: false
binary_sensor:
- platform: gpio
name: 'IN_01'
id: in_01
pin:
pcf8574: pcf_inputs
number: 0
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_02'
id: in_02
pin:
pcf8574: pcf_inputs
number: 1
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_03'
id: in_03
pin:
pcf8574: pcf_inputs
number: 2
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_04'
id: in_04
pin:
pcf8574: pcf_inputs
number: 3
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_05'
id: in_05
pin:
pcf8574: pcf_inputs
number: 4
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_06'
id: in_06
pin:
pcf8574: pcf_inputs
number: 5
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_07'
id: in_07
pin:
pcf8574: pcf_inputs
number: 6
mode:
input: true
inverted: true
- platform: gpio
name: 'IN_08'
id: in_08
pin:
pcf8574: pcf_inputs
number: 7
mode:
input: true
inverted: true

View File

@@ -106,7 +106,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -34,7 +34,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -30,7 +30,7 @@ dashboard_import:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/buzzer.yaml',
'devices/serial_no.yaml',

View File

@@ -71,7 +71,7 @@ modbus:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -76,7 +76,7 @@ gp8403:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml'
]

View File

@@ -71,7 +71,7 @@ ld2412:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
]

View File

@@ -97,7 +97,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [
'devices/serial_no.yaml',
# 'devices/dimmer_i2c.yaml',

View File

@@ -110,7 +110,7 @@ output:
packages:
internals_packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.7.1
ref: packages-v1.7.2
files: [devices/serial_no.yaml]
dashboard_import: