mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7511e98c3e | ||
|
|
fa915bd64a | ||
|
|
21891245d2 | ||
|
|
d1adc016b9 | ||
|
|
d954fcffeb | ||
|
|
f6bc51eb58 | ||
|
|
0774915d3b | ||
|
|
8f1c3b199a | ||
|
|
cf174caa67 | ||
|
|
ef8bc33eb5 | ||
|
|
fbbd0802e0 | ||
|
|
07d5b661c2 | ||
|
|
ce48301993 | ||
|
|
fc2ef87d0b | ||
|
|
0b6d9dc1b9 | ||
|
|
e792df95b0 | ||
|
|
1d1ecbe22b | ||
|
|
5ddb9c45d0 | ||
|
|
a3710a3aa0 | ||
|
|
98697de0cb | ||
|
|
2981b34d1f | ||
|
|
71a4b96bb2 | ||
|
|
7a33b7b17e | ||
|
|
93cb173520 | ||
|
|
7f2a1c9b10 | ||
|
|
b378eb883f | ||
|
|
a25b0f46ac | ||
|
|
7afdc3d6f0 | ||
|
|
8b5366356f | ||
|
|
6ef73e9bfa | ||
|
|
37f1f57b16 | ||
|
|
28e2d08829 | ||
|
|
d6fcbca9f0 | ||
|
|
ae47f019b2 | ||
|
|
0a70b4a076 |
128
.github/workflows/build-firmware.yml
vendored
128
.github/workflows/build-firmware.yml
vendored
@@ -11,78 +11,42 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: '2026.1.2'
|
default: '2026.1.2'
|
||||||
|
|
||||||
env:
|
|
||||||
ESPHOME_VERSION: "2024.12.4"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- yaml_file: boneio-dimmer_gen2_2rgbw-v0_1.yaml
|
# Testing with single firmware first
|
||||||
chip_family: ESP32-S3
|
|
||||||
- yaml_file: boneio-dimmer_gen2_8ch-v0_1.yaml
|
- yaml_file: boneio-dimmer_gen2_8ch-v0_1.yaml
|
||||||
chip_family: ESP32-S3
|
# Uncomment below after testing:
|
||||||
- yaml_file: boneio-32x10_lights_v0_7.yaml
|
# - yaml_file: boneio-dimmer_gen2_2rgbw-v0_1.yaml
|
||||||
chip_family: ESP32
|
# - yaml_file: boneio-32x10_lights_v0_7.yaml
|
||||||
- yaml_file: boneio-32x10_switches_v0_7.yaml
|
# - yaml_file: boneio-32x10_switches_v0_7.yaml
|
||||||
chip_family: ESP32
|
# - yaml_file: boneio-24x16_switches_v0_7.yaml
|
||||||
- yaml_file: boneio-24x16_switches_v0_7.yaml
|
# - yaml_file: boneio-cover_v0_7.yaml
|
||||||
chip_family: ESP32
|
# - yaml_file: boneio-cover_mix_lights_v0_7.yaml
|
||||||
- yaml_file: boneio-cover_v0_7.yaml
|
# - yaml_file: boneio-cover_mix_switches_v0_7.yaml
|
||||||
chip_family: ESP32
|
# - yaml_file: boneio-8x10A_gen2_lights-v0_1.yaml
|
||||||
- yaml_file: boneio-cover_mix_lights_v0_7.yaml
|
# - yaml_file: boneio-mosfet48_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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Build firmware
|
||||||
run: esphome compile ${{ matrix.yaml_file }}
|
uses: esphome/build-action@v4
|
||||||
|
id: esphome-build
|
||||||
- name: Get firmware name from YAML
|
with:
|
||||||
id: get_name
|
yaml-file: ${{ matrix.yaml_file }}
|
||||||
run: |
|
version: latest
|
||||||
NAME=$(grep -m1 'name:' ${{ matrix.yaml_file }} | sed 's/.*name:\s*//' | tr -d ' ')
|
complete-manifest: true
|
||||||
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
|
|
||||||
|
|
||||||
- name: Upload firmware artifact
|
- name: Upload firmware artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: firmware-${{ steps.get_name.outputs.firmware_name }}
|
name: firmware-${{ steps.esphome-build.outputs.original-name }}
|
||||||
path: output/*.bin
|
path: ${{ steps.esphome-build.outputs.name }}
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
@@ -93,9 +57,6 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Download firmware artifacts
|
- name: Download firmware artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -103,13 +64,6 @@ jobs:
|
|||||||
pattern: firmware-*
|
pattern: firmware-*
|
||||||
merge-multiple: true
|
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
|
- name: Get version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
@@ -122,38 +76,14 @@ jobs:
|
|||||||
- name: Prepare GitHub Pages content
|
- name: Prepare GitHub Pages content
|
||||||
run: |
|
run: |
|
||||||
mkdir -p gh-pages/firmware
|
mkdir -p gh-pages/firmware
|
||||||
cp artifacts/*.bin gh-pages/firmware/
|
|
||||||
|
|
||||||
# Generate manifest JSON files for ESP Web Tools
|
# esphome/build-action outputs: name/, name/manifest.json, name/*.bin
|
||||||
for bin in gh-pages/firmware/*.bin; do
|
for dir in artifacts/*/; do
|
||||||
FIRMWARE_NAME=$(basename "$bin" .bin)
|
NAME=$(basename "$dir")
|
||||||
CHIP_FAMILY="ESP32"
|
# Copy firmware binary
|
||||||
if [ -f "chip-info/${FIRMWARE_NAME}.chip" ]; then
|
cp "$dir"*.bin gh-pages/firmware/
|
||||||
CHIP_FAMILY=$(cat "chip-info/${FIRMWARE_NAME}.chip")
|
# Copy manifest and rename to firmware name
|
||||||
elif [[ "$FIRMWARE_NAME" == *"gen2"* ]]; then
|
cp "$dir"manifest.json gh-pages/${NAME}.json
|
||||||
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
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create version file
|
# Create version file
|
||||||
@@ -168,8 +98,8 @@ jobs:
|
|||||||
<h1>boneIO ESPHome Firmware</h1>
|
<h1>boneIO ESPHome Firmware</h1>
|
||||||
<ul>
|
<ul>
|
||||||
EOF
|
EOF
|
||||||
for bin in gh-pages/firmware/*.bin; do
|
for json in gh-pages/*.json; do
|
||||||
NAME=$(basename "$bin" .bin)
|
NAME=$(basename "$json" .json)
|
||||||
echo "<li><a href=\"${NAME}.json\">${NAME}</a></li>" >> gh-pages/index.html
|
echo "<li><a href=\"${NAME}.json\">${NAME}</a></li>" >> gh-pages/index.html
|
||||||
done
|
done
|
||||||
cat >> gh-pages/index.html << 'EOF'
|
cat >> gh-pages/index.html << 'EOF'
|
||||||
@@ -190,5 +120,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.version.outputs.version }}
|
tag_name: v${{ steps.version.outputs.version }}
|
||||||
name: Firmware v${{ steps.version.outputs.version }}
|
name: Firmware v${{ steps.version.outputs.version }}
|
||||||
files: artifacts/*.bin
|
files: gh-pages/firmware/*.bin
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
'devices_v0_4/display.yaml',
|
'devices_v0_4/display.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
306
boneio-8x10A_gen2-v0_1.yaml
Normal file
306
boneio-8x10A_gen2-v0_1.yaml
Normal file
@@ -0,0 +1,306 @@
|
|||||||
|
substitutions:
|
||||||
|
name: boneio-8x10a-gen2-01
|
||||||
|
friendly_name: 'boneIO ESP 8x10A Gen2'
|
||||||
|
serial_prefix: 'esp8' #Don't change it.
|
||||||
|
firmware_manifest: 'https://boneio.eu/fwesp/boneio-8x10a-gen2-01.json'
|
||||||
|
esphome:
|
||||||
|
name: '${name}'
|
||||||
|
friendly_name: '${friendly_name}'
|
||||||
|
name_add_mac_suffix: true
|
||||||
|
project:
|
||||||
|
name: boneio.8x10a-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: gpio
|
||||||
|
pin: GPIO18
|
||||||
|
inverted: false
|
||||||
|
id: out_01
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO17
|
||||||
|
inverted: false
|
||||||
|
id: out_02
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO16
|
||||||
|
inverted: false
|
||||||
|
id: out_03
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO15
|
||||||
|
inverted: false
|
||||||
|
id: out_04
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO7
|
||||||
|
inverted: false
|
||||||
|
id: out_05
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO6
|
||||||
|
inverted: false
|
||||||
|
id: out_06
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO5
|
||||||
|
inverted: false
|
||||||
|
id: out_07
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO4
|
||||||
|
inverted: false
|
||||||
|
id: out_08
|
||||||
|
|
||||||
|
|
||||||
|
# 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-8x10A_gen2_lights-v0_1.yaml@latest
|
||||||
|
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: binary
|
||||||
|
output: out_01
|
||||||
|
name: 'OUT 01'
|
||||||
|
id: light_01
|
||||||
|
- platform: binary
|
||||||
|
output: out_02
|
||||||
|
name: 'OUT 02'
|
||||||
|
id: light_02
|
||||||
|
- platform: binary
|
||||||
|
output: out_03
|
||||||
|
name: 'OUT 03'
|
||||||
|
id: light_03
|
||||||
|
- platform: binary
|
||||||
|
output: out_04
|
||||||
|
name: 'OUT 04'
|
||||||
|
id: light_04
|
||||||
|
- platform: binary
|
||||||
|
output: out_05
|
||||||
|
name: 'OUT 05'
|
||||||
|
id: light_05
|
||||||
|
- platform: binary
|
||||||
|
output: out_06
|
||||||
|
name: 'OUT 06'
|
||||||
|
id: light_06
|
||||||
|
- platform: binary
|
||||||
|
output: out_07
|
||||||
|
name: 'OUT 07'
|
||||||
|
id: light_07
|
||||||
|
- platform: binary
|
||||||
|
output: out_08
|
||||||
|
name: 'OUT 08'
|
||||||
|
id: light_08
|
||||||
|
|
||||||
|
debug:
|
||||||
|
update_interval: 15s
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- 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
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_01
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_02'
|
||||||
|
id: in_02
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_02
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_03'
|
||||||
|
id: in_03
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_03
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_04'
|
||||||
|
id: in_04
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_04
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_05'
|
||||||
|
id: in_05
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_05
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_06'
|
||||||
|
id: in_06
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_06
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_07'
|
||||||
|
id: in_07
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_07
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_08'
|
||||||
|
id: in_08
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 7
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: light_08
|
||||||
@@ -98,7 +98,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
@@ -110,7 +110,7 @@ packages:
|
|||||||
# - path: sdm630.yaml
|
# - path: sdm630.yaml
|
||||||
|
|
||||||
dashboard_import:
|
dashboard_import:
|
||||||
package_import_url: github://boneIO-eu/esphome/boneio-8x10A_gen2-v0_1.yaml@latest
|
package_import_url: github://boneIO-eu/esphome/boneio-8x10A_gen2_lights-v0_1.yaml@latest
|
||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ external_components:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files:
|
files:
|
||||||
[
|
[
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ external_components:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files:
|
files:
|
||||||
[
|
[
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ external_components:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files:
|
files:
|
||||||
[
|
[
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ modbus:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
# 'devices/dimmer_i2c.yaml',
|
# 'devices/dimmer_i2c.yaml',
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ modbus:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
# 'devices/dimmer_i2c.yaml',
|
# 'devices/dimmer_i2c.yaml',
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
boneio-dimmer_gen2_8ch-v0_1.yaml
|
|
||||||
314
boneio-dimmer_gen2_8ch-dev0_4.yaml
Normal file
314
boneio-dimmer_gen2_8ch-dev0_4.yaml
Normal 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
|
||||||
@@ -106,7 +106,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
|
|||||||
370
boneio-input24_gen2-v0_1.yaml
Normal file
370
boneio-input24_gen2-v0_1.yaml
Normal file
@@ -0,0 +1,370 @@
|
|||||||
|
substitutions:
|
||||||
|
name: boneio-input24-gen2-01
|
||||||
|
friendly_name: 'boneIO ESP Input24 Gen2'
|
||||||
|
serial_prefix: 'esp24' #Don't change it.
|
||||||
|
firmware_manifest: 'https://boneio.eu/fwesp/boneio-input24-gen2-01.json'
|
||||||
|
esphome:
|
||||||
|
name: '${name}'
|
||||||
|
friendly_name: '${friendly_name}'
|
||||||
|
name_add_mac_suffix: true
|
||||||
|
project:
|
||||||
|
name: boneio.input24-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
|
||||||
|
|
||||||
|
|
||||||
|
# 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-input24_gen2-v0_1.yaml.yaml@latest
|
||||||
|
import_full_config: true
|
||||||
|
|
||||||
|
pcf8574:
|
||||||
|
- id: pcf_inputs_1_to_8
|
||||||
|
address: 0x38
|
||||||
|
- id: pcf_inputs_9_to_24
|
||||||
|
address: 0x20
|
||||||
|
pcf8575: true
|
||||||
|
|
||||||
|
logger:
|
||||||
|
hardware_uart: UART0
|
||||||
|
api:
|
||||||
|
reboot_timeout: 0s
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
- platform: web_server
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
version: 3
|
||||||
|
local: true
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- 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_1_to_8
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_02'
|
||||||
|
id: in_02
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_03'
|
||||||
|
id: in_03
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_04'
|
||||||
|
id: in_04
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_05'
|
||||||
|
id: in_05
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_06'
|
||||||
|
id: in_06
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_07'
|
||||||
|
id: in_07
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_08'
|
||||||
|
id: in_08
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1_to_8
|
||||||
|
number: 7
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_09'
|
||||||
|
id: in_09
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 7
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_10'
|
||||||
|
id: in_10
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_11'
|
||||||
|
id: in_11
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_12'
|
||||||
|
id: in_12
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_13'
|
||||||
|
id: in_13
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_14'
|
||||||
|
id: in_14
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_15'
|
||||||
|
id: in_15
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_16'
|
||||||
|
id: in_16
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_17'
|
||||||
|
id: in_17
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 15
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_18'
|
||||||
|
id: in_18
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 14
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_19'
|
||||||
|
id: in_19
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 13
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_20'
|
||||||
|
id: in_20
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 12
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_21'
|
||||||
|
id: in_21
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 11
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_22'
|
||||||
|
id: in_22
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 10
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_23'
|
||||||
|
id: in_23
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 9
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_24'
|
||||||
|
id: in_24
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_9_to_24
|
||||||
|
number: 8
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -32,9 +32,10 @@ exclude_files = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
include_files = [
|
include_files = [
|
||||||
|
"boneio-input24_gen2-v0_01.yaml",
|
||||||
# "boneio-8x10A_gen2_lights-v0_1.yaml",
|
# "boneio-8x10A_gen2_lights-v0_1.yaml",
|
||||||
"boneio-dimmer_gen2_2rgbw-v0_1.yaml",
|
# "boneio-dimmer_gen2_2rgbw-v0_1.yaml",
|
||||||
"boneio-dimmer_gen2_8ch-v0_1"
|
# "boneio-dimmer_gen2_8ch-v0_1"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/buzzer.yaml',
|
'devices/buzzer.yaml',
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ modbus:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ gp8403:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml'
|
'devices/serial_no.yaml'
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ ld2412:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [
|
files: [
|
||||||
'devices/serial_no.yaml',
|
'devices/serial_no.yaml',
|
||||||
# 'devices/dimmer_i2c.yaml',
|
# 'devices/dimmer_i2c.yaml',
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ output:
|
|||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: v1.7.1
|
ref: packages-v1.7.2
|
||||||
files: [devices/serial_no.yaml]
|
files: [devices/serial_no.yaml]
|
||||||
|
|
||||||
dashboard_import:
|
dashboard_import:
|
||||||
|
|||||||
Reference in New Issue
Block a user