mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 13:00:27 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad67951090 | ||
|
|
82ec7c0b09 |
35
.github/workflows/build-firmware.yml
vendored
35
.github/workflows/build-firmware.yml
vendored
@@ -3,13 +3,17 @@ name: Build ESPHome Firmware
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "esphome-*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
esphome_version:
|
||||||
description: "Version tag (e.g., 2026.1.5)"
|
description: "ESPHome version (e.g., 2026.1.5)"
|
||||||
required: true
|
required: true
|
||||||
default: "2026.1.5"
|
default: "2026.1.5"
|
||||||
|
build:
|
||||||
|
description: "Build number (e.g., b1)"
|
||||||
|
required: true
|
||||||
|
default: "b1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -81,6 +85,13 @@ jobs:
|
|||||||
version_key: "v0.1"
|
version_key: "v0.1"
|
||||||
output_option: "Lights"
|
output_option: "Lights"
|
||||||
chip_family: "ESP32-S3"
|
chip_family: "ESP32-S3"
|
||||||
|
- yaml_file: boneio-8x10A_gen2_switches-v0_1.yaml
|
||||||
|
board_name: "boneIO ESP 8x10A gen2"
|
||||||
|
board_value: "8x10A"
|
||||||
|
version: "v0.1"
|
||||||
|
version_key: "v0.1"
|
||||||
|
output_option: "Switches"
|
||||||
|
chip_family: "ESP32-S3"
|
||||||
|
|
||||||
# 32x10 v0.7
|
# 32x10 v0.7
|
||||||
- yaml_file: boneio-32x10_lights_v0_7.yaml
|
- yaml_file: boneio-32x10_lights_v0_7.yaml
|
||||||
@@ -243,15 +254,23 @@ jobs:
|
|||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
|
ESPHOME_VER="${{ github.event.inputs.esphome_version }}"
|
||||||
|
BUILD="${{ github.event.inputs.build }}"
|
||||||
else
|
else
|
||||||
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
# Tag format: esphome-2026.1.5-b1
|
||||||
|
TAG="${GITHUB_REF#refs/tags/esphome-}"
|
||||||
|
ESPHOME_VER=$(echo "$TAG" | sed 's/-b[0-9]*$//')
|
||||||
|
BUILD=$(echo "$TAG" | grep -oP 'b\d+$' || echo 'b1')
|
||||||
fi
|
fi
|
||||||
|
echo "esphome_version=$ESPHOME_VER" >> $GITHUB_OUTPUT
|
||||||
|
echo "build=$BUILD" >> $GITHUB_OUTPUT
|
||||||
|
echo "full_version=${ESPHOME_VER}-${BUILD}" >> $GITHUB_OUTPUT
|
||||||
|
echo "Version: $ESPHOME_VER, Build: $BUILD"
|
||||||
|
|
||||||
- name: Prepare GitHub Pages content
|
- name: Prepare GitHub Pages content
|
||||||
run: |
|
run: |
|
||||||
mkdir -p gh-pages/firmware gh-pages/manifests release
|
mkdir -p gh-pages/firmware gh-pages/manifests release
|
||||||
export VERSION="${{ steps.version.outputs.version }}"
|
export VERSION="${{ steps.version.outputs.full_version }}"
|
||||||
export BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
export BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
export GITHUB_PAGES_URL="https://boneio-eu.github.io/esphome"
|
export GITHUB_PAGES_URL="https://boneio-eu.github.io/esphome"
|
||||||
|
|
||||||
@@ -425,9 +444,9 @@ jobs:
|
|||||||
force_orphan: true
|
force_orphan: true
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
|
if: github.event_name == 'push'
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.version.outputs.version }}
|
name: "Firmware ${{ steps.version.outputs.esphome_version }} (${{ steps.version.outputs.build }})"
|
||||||
name: Firmware v${{ steps.version.outputs.version }}
|
|
||||||
files: release/*
|
files: release/*
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
name: boneio-8x10a-gen2-01
|
name: boneio-8x10a-gen2-01
|
||||||
friendly_name: 'boneIO ESP 8x10A Gen2'
|
friendly_name: "boneIO ESP 8x10A Gen2"
|
||||||
serial_prefix: 'esp8' #Don't change it.
|
serial_prefix: "esp8" #Don't change it.
|
||||||
firmware_manifest: 'https://boneio.eu/fwesp/boneio-8x10a-gen2-01.json'
|
firmware_manifest: "https://boneio.eu/fwesp/boneio-8x10a-gen2-01.json"
|
||||||
esphome:
|
esphome:
|
||||||
name: '${name}'
|
name: "${name}"
|
||||||
friendly_name: '${friendly_name}'
|
friendly_name: "${friendly_name}"
|
||||||
name_add_mac_suffix: true
|
name_add_mac_suffix: true
|
||||||
project:
|
project:
|
||||||
name: boneio.8x10a-gen2
|
name: boneio.8x10a-gen2
|
||||||
version: '0.1'
|
version: "0.1"
|
||||||
on_boot:
|
on_boot:
|
||||||
priority: -100
|
priority: -100
|
||||||
then:
|
then:
|
||||||
- delay: 5s
|
- delay: 5s
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return id(serial_no) != nullptr;'
|
lambda: "return id(serial_no) != nullptr;"
|
||||||
then:
|
then:
|
||||||
- component.update: serial_no
|
- component.update: serial_no
|
||||||
- logger.log: "Serial No updated on boot"
|
- logger.log: "Serial No updated on boot"
|
||||||
@@ -25,7 +25,7 @@ esphome:
|
|||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-s3-devkitc-1
|
board: esp32-s3-devkitc-1
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
@@ -45,8 +45,6 @@ i2c:
|
|||||||
scan: True
|
scan: True
|
||||||
frequency: 400kHz
|
frequency: 400kHz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: GPIO18
|
pin: GPIO18
|
||||||
@@ -82,26 +80,23 @@ output:
|
|||||||
inverted: false
|
inverted: false
|
||||||
id: out_08
|
id: out_08
|
||||||
|
|
||||||
|
|
||||||
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
||||||
# uart:
|
uart:
|
||||||
# id: boneio_uart
|
id: boneio_uart
|
||||||
# rx_pin: GPIO21
|
rx_pin: GPIO21
|
||||||
# tx_pin: GPIO14
|
tx_pin: GPIO14
|
||||||
# baud_rate: 9600
|
baud_rate: 9600
|
||||||
# stop_bits: 1
|
stop_bits: 1
|
||||||
# modbus:
|
modbus:
|
||||||
# send_wait_time: 80ms
|
send_wait_time: 80ms
|
||||||
# uart_id: boneio_uart
|
uart_id: boneio_uart
|
||||||
# id: boneio_modbus
|
id: boneio_modbus
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: packages-v2.0.0
|
ref: packages-v2.0.0
|
||||||
files: [
|
files: ["packages/devices/serial_no.yaml"]
|
||||||
'packages/devices/serial_no.yaml',
|
|
||||||
]
|
|
||||||
# boneiopackages:
|
# boneiopackages:
|
||||||
# url: https://github.com/boneIO-eu/esphome_packages
|
# url: https://github.com/boneIO-eu/esphome_packages
|
||||||
# ref: main
|
# ref: main
|
||||||
@@ -114,7 +109,7 @@ dashboard_import:
|
|||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: "pcf_inputs"
|
||||||
address: 0x38
|
address: 0x38
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
@@ -130,39 +125,38 @@ web_server:
|
|||||||
version: 3
|
version: 3
|
||||||
local: true
|
local: true
|
||||||
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_01
|
output: out_01
|
||||||
name: 'OUT 01'
|
name: "OUT 01"
|
||||||
id: light_01
|
id: light_01
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_02
|
output: out_02
|
||||||
name: 'OUT 02'
|
name: "OUT 02"
|
||||||
id: light_02
|
id: light_02
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_03
|
output: out_03
|
||||||
name: 'OUT 03'
|
name: "OUT 03"
|
||||||
id: light_03
|
id: light_03
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_04
|
output: out_04
|
||||||
name: 'OUT 04'
|
name: "OUT 04"
|
||||||
id: light_04
|
id: light_04
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_05
|
output: out_05
|
||||||
name: 'OUT 05'
|
name: "OUT 05"
|
||||||
id: light_05
|
id: light_05
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_06
|
output: out_06
|
||||||
name: 'OUT 06'
|
name: "OUT 06"
|
||||||
id: light_06
|
id: light_06
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_07
|
output: out_07
|
||||||
name: 'OUT 07'
|
name: "OUT 07"
|
||||||
id: light_07
|
id: light_07
|
||||||
- platform: binary
|
- platform: binary
|
||||||
output: out_08
|
output: out_08
|
||||||
name: 'OUT 08'
|
name: "OUT 08"
|
||||||
id: light_08
|
id: light_08
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
@@ -171,7 +165,7 @@ debug:
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: lm75b
|
- platform: lm75b
|
||||||
id: boneIO_temp
|
id: boneIO_temp
|
||||||
name: 'Temperature'
|
name: "Temperature"
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
on_value_range:
|
on_value_range:
|
||||||
@@ -185,7 +179,7 @@ sensor:
|
|||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: buzzer
|
id: buzzer
|
||||||
name: 'Buzzer'
|
name: "Buzzer"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO9
|
number: GPIO9
|
||||||
mode:
|
mode:
|
||||||
@@ -193,7 +187,7 @@ switch:
|
|||||||
inverted: false
|
inverted: false
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: can_bus_switch
|
id: can_bus_switch
|
||||||
name: 'CAN Bus Switch'
|
name: "CAN Bus Switch"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode:
|
mode:
|
||||||
@@ -202,7 +196,7 @@ switch:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_01'
|
name: "IN_01"
|
||||||
id: in_01
|
id: in_01
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -215,7 +209,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_01
|
- light.toggle: light_01
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_02'
|
name: "IN_02"
|
||||||
id: in_02
|
id: in_02
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -228,7 +222,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_02
|
- light.toggle: light_02
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_03'
|
name: "IN_03"
|
||||||
id: in_03
|
id: in_03
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -241,7 +235,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_03
|
- light.toggle: light_03
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_04'
|
name: "IN_04"
|
||||||
id: in_04
|
id: in_04
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -254,7 +248,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_04
|
- light.toggle: light_04
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_05'
|
name: "IN_05"
|
||||||
id: in_05
|
id: in_05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -267,7 +261,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_05
|
- light.toggle: light_05
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_06'
|
name: "IN_06"
|
||||||
id: in_06
|
id: in_06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -280,7 +274,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_06
|
- light.toggle: light_06
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_07'
|
name: "IN_07"
|
||||||
id: in_07
|
id: in_07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -293,7 +287,7 @@ binary_sensor:
|
|||||||
- light.toggle: light_07
|
- light.toggle: light_07
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_08'
|
name: "IN_08"
|
||||||
id: in_08
|
id: in_08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -303,4 +297,4 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- light.toggle: light_08
|
- light.toggle: light_08
|
||||||
|
|||||||
298
boneio-8x10A_gen2_switches-v0_1.yaml
Normal file
298
boneio-8x10A_gen2_switches-v0_1.yaml
Normal file
@@ -0,0 +1,298 @@
|
|||||||
|
substitutions:
|
||||||
|
name: boneio-8x10a-gen2-sw-01
|
||||||
|
friendly_name: "boneIO ESP 8x10A Gen2"
|
||||||
|
serial_prefix: "esp8" #Don't change it.
|
||||||
|
firmware_manifest: "https://boneio.eu/fwesp/boneio-8x10a-gen2-sw-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-v2.0.0
|
||||||
|
files: ["packages/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_switches-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
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: output
|
||||||
|
output: out_01
|
||||||
|
name: "OUT 01"
|
||||||
|
id: switch_01
|
||||||
|
- platform: output
|
||||||
|
output: out_02
|
||||||
|
name: "OUT 02"
|
||||||
|
id: switch_02
|
||||||
|
- platform: output
|
||||||
|
output: out_03
|
||||||
|
name: "OUT 03"
|
||||||
|
id: switch_03
|
||||||
|
- platform: output
|
||||||
|
output: out_04
|
||||||
|
name: "OUT 04"
|
||||||
|
id: switch_04
|
||||||
|
- platform: output
|
||||||
|
output: out_05
|
||||||
|
name: "OUT 05"
|
||||||
|
id: switch_05
|
||||||
|
- platform: output
|
||||||
|
output: out_06
|
||||||
|
name: "OUT 06"
|
||||||
|
id: switch_06
|
||||||
|
- platform: output
|
||||||
|
output: out_07
|
||||||
|
name: "OUT 07"
|
||||||
|
id: switch_07
|
||||||
|
- platform: output
|
||||||
|
output: out_08
|
||||||
|
name: "OUT 08"
|
||||||
|
id: switch_08
|
||||||
|
- 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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_01"
|
||||||
|
id: in_01
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_01
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_02"
|
||||||
|
id: in_02
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_02
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_03"
|
||||||
|
id: in_03
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_03
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_04"
|
||||||
|
id: in_04
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_04
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_05"
|
||||||
|
id: in_05
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_05
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_06"
|
||||||
|
id: in_06
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_06
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_07"
|
||||||
|
id: in_07
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_07
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "IN_08"
|
||||||
|
id: in_08
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs
|
||||||
|
number: 7
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- switch.toggle: switch_08
|
||||||
@@ -1,22 +1,22 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
name: boneio-dr-gen2-2rgbw-01
|
name: boneio-dr-gen2-2rgbw-01
|
||||||
friendly_name: 'BoneIO Dimmer Gen2'
|
friendly_name: "BoneIO Dimmer Gen2"
|
||||||
serial_prefix: 'dim2' #Don't change it.
|
serial_prefix: "dim2" #Don't change it.
|
||||||
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-2rgbw-01.json'
|
firmware_manifest: "https://boneio.eu/fwesp/boneio-dr-gen2-2rgbw-01.json"
|
||||||
esphome:
|
esphome:
|
||||||
name: '${name}'
|
name: "${name}"
|
||||||
friendly_name: '${friendly_name}'
|
friendly_name: "${friendly_name}"
|
||||||
name_add_mac_suffix: true
|
name_add_mac_suffix: true
|
||||||
project:
|
project:
|
||||||
name: boneio.dimmer-led-gen2
|
name: boneio.dimmer-led-gen2
|
||||||
version: '0.1'
|
version: "0.1"
|
||||||
on_boot:
|
on_boot:
|
||||||
priority: -100
|
priority: -100
|
||||||
then:
|
then:
|
||||||
- delay: 5s
|
- delay: 5s
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return id(serial_no) != nullptr;'
|
lambda: "return id(serial_no) != nullptr;"
|
||||||
then:
|
then:
|
||||||
- component.update: serial_no
|
- component.update: serial_no
|
||||||
- logger.log: "Serial No updated on boot"
|
- logger.log: "Serial No updated on boot"
|
||||||
@@ -25,7 +25,7 @@ esphome:
|
|||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-s3-devkitc-1
|
board: esp32-s3-devkitc-1
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
@@ -45,8 +45,6 @@ i2c:
|
|||||||
scan: True
|
scan: True
|
||||||
frequency: 400kHz
|
frequency: 400kHz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO18
|
pin: GPIO18
|
||||||
@@ -90,26 +88,23 @@ output:
|
|||||||
inverted: false
|
inverted: false
|
||||||
id: chr04
|
id: chr04
|
||||||
|
|
||||||
|
|
||||||
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
||||||
# uart:
|
uart:
|
||||||
# id: boneio_uart
|
id: boneio_uart
|
||||||
# rx_pin: GPIO21
|
rx_pin: GPIO21
|
||||||
# tx_pin: GPIO14
|
tx_pin: GPIO14
|
||||||
# baud_rate: 9600
|
baud_rate: 9600
|
||||||
# stop_bits: 1
|
stop_bits: 1
|
||||||
# modbus:
|
modbus:
|
||||||
# send_wait_time: 80ms
|
send_wait_time: 80ms
|
||||||
# uart_id: boneio_uart
|
uart_id: boneio_uart
|
||||||
# id: boneio_modbus
|
id: boneio_modbus
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: packages-v2.0.0
|
ref: packages-v2.0.0
|
||||||
files: [
|
files: ["packages/devices/serial_no.yaml"]
|
||||||
'packages/devices/serial_no.yaml',
|
|
||||||
]
|
|
||||||
# boneiopackages:
|
# boneiopackages:
|
||||||
# url: https://github.com/boneIO-eu/esphome_packages
|
# url: https://github.com/boneIO-eu/esphome_packages
|
||||||
# ref: main
|
# ref: main
|
||||||
@@ -122,7 +117,7 @@ dashboard_import:
|
|||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: "pcf_inputs"
|
||||||
address: 0x38
|
address: 0x38
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
@@ -138,11 +133,10 @@ web_server:
|
|||||||
version: 3
|
version: 3
|
||||||
local: true
|
local: true
|
||||||
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: rgbw
|
- platform: rgbw
|
||||||
id: rgbw_l
|
id: rgbw_l
|
||||||
name: 'RGBW L'
|
name: "RGBW L"
|
||||||
red: chl01
|
red: chl01
|
||||||
green: chl02
|
green: chl02
|
||||||
blue: chl03
|
blue: chl03
|
||||||
@@ -151,7 +145,7 @@ light:
|
|||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: rgbw
|
- platform: rgbw
|
||||||
id: rgbw_r
|
id: rgbw_r
|
||||||
name: 'RGBW R'
|
name: "RGBW R"
|
||||||
red: chr01
|
red: chr01
|
||||||
green: chr02
|
green: chr02
|
||||||
blue: chr03
|
blue: chr03
|
||||||
@@ -172,7 +166,7 @@ sensor:
|
|||||||
name: "Loop Time"
|
name: "Loop Time"
|
||||||
- platform: lm75b
|
- platform: lm75b
|
||||||
id: boneIO_temp
|
id: boneIO_temp
|
||||||
name: 'Temperature'
|
name: "Temperature"
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
on_value_range:
|
on_value_range:
|
||||||
@@ -186,7 +180,7 @@ sensor:
|
|||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: buzzer
|
id: buzzer
|
||||||
name: 'Buzzer'
|
name: "Buzzer"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO9
|
number: GPIO9
|
||||||
mode:
|
mode:
|
||||||
@@ -194,7 +188,7 @@ switch:
|
|||||||
inverted: false
|
inverted: false
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: can_bus_switch
|
id: can_bus_switch
|
||||||
name: 'CAN Bus Switch'
|
name: "CAN Bus Switch"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode:
|
mode:
|
||||||
@@ -203,7 +197,7 @@ switch:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_01'
|
name: "IN_01"
|
||||||
id: in_01
|
id: in_01
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -213,7 +207,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_02'
|
name: "IN_02"
|
||||||
id: in_02
|
id: in_02
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -223,7 +217,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_03'
|
name: "IN_03"
|
||||||
id: in_03
|
id: in_03
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -233,7 +227,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_04'
|
name: "IN_04"
|
||||||
id: in_04
|
id: in_04
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -243,7 +237,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_05'
|
name: "IN_05"
|
||||||
id: in_05
|
id: in_05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -253,7 +247,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_06'
|
name: "IN_06"
|
||||||
id: in_06
|
id: in_06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -263,7 +257,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_07'
|
name: "IN_07"
|
||||||
id: in_07
|
id: in_07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -273,11 +267,11 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_08'
|
name: "IN_08"
|
||||||
id: in_08
|
id: in_08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
number: 7
|
number: 7
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
name: boneio-dr-gen2-4cct-01
|
name: boneio-dr-gen2-4cct-01
|
||||||
friendly_name: 'BoneIO Dimmer Gen2'
|
friendly_name: "BoneIO Dimmer Gen2"
|
||||||
serial_prefix: 'dim2' #Don't change it.
|
serial_prefix: "dim2" #Don't change it.
|
||||||
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-4cct-01.json'
|
firmware_manifest: "https://boneio.eu/fwesp/boneio-dr-gen2-4cct-01.json"
|
||||||
esphome:
|
esphome:
|
||||||
name: '${name}'
|
name: "${name}"
|
||||||
friendly_name: '${friendly_name}'
|
friendly_name: "${friendly_name}"
|
||||||
name_add_mac_suffix: true
|
name_add_mac_suffix: true
|
||||||
project:
|
project:
|
||||||
name: boneio.dimmer-led-gen2
|
name: boneio.dimmer-led-gen2
|
||||||
version: '0.1'
|
version: "0.1"
|
||||||
on_boot:
|
on_boot:
|
||||||
priority: -100
|
priority: -100
|
||||||
then:
|
then:
|
||||||
- delay: 5s
|
- delay: 5s
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return id(serial_no) != nullptr;'
|
lambda: "return id(serial_no) != nullptr;"
|
||||||
then:
|
then:
|
||||||
- component.update: serial_no
|
- component.update: serial_no
|
||||||
- logger.log: "Serial No updated on boot"
|
- logger.log: "Serial No updated on boot"
|
||||||
@@ -25,7 +25,7 @@ esphome:
|
|||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-s3-devkitc-1
|
board: esp32-s3-devkitc-1
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
@@ -45,8 +45,6 @@ i2c:
|
|||||||
scan: True
|
scan: True
|
||||||
frequency: 400kHz
|
frequency: 400kHz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO18
|
pin: GPIO18
|
||||||
@@ -90,26 +88,23 @@ output:
|
|||||||
inverted: false
|
inverted: false
|
||||||
id: chr04
|
id: chr04
|
||||||
|
|
||||||
|
|
||||||
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
||||||
# uart:
|
uart:
|
||||||
# id: boneio_uart
|
id: boneio_uart
|
||||||
# rx_pin: GPIO21
|
rx_pin: GPIO21
|
||||||
# tx_pin: GPIO14
|
tx_pin: GPIO14
|
||||||
# baud_rate: 9600
|
baud_rate: 9600
|
||||||
# stop_bits: 1
|
stop_bits: 1
|
||||||
# modbus:
|
modbus:
|
||||||
# send_wait_time: 80ms
|
send_wait_time: 80ms
|
||||||
# uart_id: boneio_uart
|
uart_id: boneio_uart
|
||||||
# id: boneio_modbus
|
id: boneio_modbus
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: packages-v2.0.0
|
ref: packages-v2.0.0
|
||||||
files: [
|
files: ["packages/devices/serial_no.yaml"]
|
||||||
'packages/devices/serial_no.yaml',
|
|
||||||
]
|
|
||||||
# boneiopackages:
|
# boneiopackages:
|
||||||
# url: https://github.com/boneIO-eu/esphome_packages
|
# url: https://github.com/boneIO-eu/esphome_packages
|
||||||
# ref: main
|
# ref: main
|
||||||
@@ -122,7 +117,7 @@ dashboard_import:
|
|||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: "pcf_inputs"
|
||||||
address: 0x38
|
address: 0x38
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
@@ -138,30 +133,29 @@ web_server:
|
|||||||
version: 3
|
version: 3
|
||||||
local: true
|
local: true
|
||||||
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: cwww
|
- platform: cwww
|
||||||
name: 'CHL_01_02'
|
name: "CHL_01_02"
|
||||||
cold_white: chl01
|
cold_white: chl01
|
||||||
warm_white: chl02
|
warm_white: chl02
|
||||||
cold_white_color_temperature: 6536 K
|
cold_white_color_temperature: 6536 K
|
||||||
warm_white_color_temperature: 2000 K
|
warm_white_color_temperature: 2000 K
|
||||||
- platform: cwww
|
- platform: cwww
|
||||||
name: 'CHL_03_04'
|
name: "CHL_03_04"
|
||||||
cold_white: chl03
|
cold_white: chl03
|
||||||
warm_white: chl04
|
warm_white: chl04
|
||||||
cold_white_color_temperature: 6536 K
|
cold_white_color_temperature: 6536 K
|
||||||
warm_white_color_temperature: 2000 K
|
warm_white_color_temperature: 2000 K
|
||||||
|
|
||||||
- platform: cwww
|
- platform: cwww
|
||||||
name: 'CHR_01_02'
|
name: "CHR_01_02"
|
||||||
cold_white: chr01
|
cold_white: chr01
|
||||||
warm_white: chr02
|
warm_white: chr02
|
||||||
cold_white_color_temperature: 6536 K
|
cold_white_color_temperature: 6536 K
|
||||||
warm_white_color_temperature: 2000 K
|
warm_white_color_temperature: 2000 K
|
||||||
|
|
||||||
- platform: cwww
|
- platform: cwww
|
||||||
name: 'CHR_03_04'
|
name: "CHR_03_04"
|
||||||
cold_white: chr03
|
cold_white: chr03
|
||||||
warm_white: chr04
|
warm_white: chr04
|
||||||
cold_white_color_temperature: 6536 K
|
cold_white_color_temperature: 6536 K
|
||||||
@@ -180,7 +174,7 @@ sensor:
|
|||||||
name: "Loop Time"
|
name: "Loop Time"
|
||||||
- platform: lm75b
|
- platform: lm75b
|
||||||
id: boneIO_temp
|
id: boneIO_temp
|
||||||
name: 'Temperature'
|
name: "Temperature"
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
on_value_range:
|
on_value_range:
|
||||||
@@ -194,7 +188,7 @@ sensor:
|
|||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: buzzer
|
id: buzzer
|
||||||
name: 'Buzzer'
|
name: "Buzzer"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO9
|
number: GPIO9
|
||||||
mode:
|
mode:
|
||||||
@@ -202,7 +196,7 @@ switch:
|
|||||||
inverted: false
|
inverted: false
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: can_bus_switch
|
id: can_bus_switch
|
||||||
name: 'CAN Bus Switch'
|
name: "CAN Bus Switch"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode:
|
mode:
|
||||||
@@ -211,7 +205,7 @@ switch:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_01'
|
name: "IN_01"
|
||||||
id: in_01
|
id: in_01
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -221,7 +215,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_02'
|
name: "IN_02"
|
||||||
id: in_02
|
id: in_02
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -231,7 +225,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_03'
|
name: "IN_03"
|
||||||
id: in_03
|
id: in_03
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -241,7 +235,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_04'
|
name: "IN_04"
|
||||||
id: in_04
|
id: in_04
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -251,7 +245,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_05'
|
name: "IN_05"
|
||||||
id: in_05
|
id: in_05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -261,7 +255,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_06'
|
name: "IN_06"
|
||||||
id: in_06
|
id: in_06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -271,7 +265,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_07'
|
name: "IN_07"
|
||||||
id: in_07
|
id: in_07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -281,11 +275,11 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_08'
|
name: "IN_08"
|
||||||
id: in_08
|
id: in_08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
number: 7
|
number: 7
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
name: boneio-dr-gen2-8ch-01
|
name: boneio-dr-gen2-8ch-01
|
||||||
friendly_name: 'BoneIO Dimmer Gen2'
|
friendly_name: "BoneIO Dimmer Gen2"
|
||||||
serial_prefix: 'dim2' #Don't change it.
|
serial_prefix: "dim2" #Don't change it.
|
||||||
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-8ch-01.json'
|
firmware_manifest: "https://boneio.eu/fwesp/boneio-dr-gen2-8ch-01.json"
|
||||||
esphome:
|
esphome:
|
||||||
name: '${name}'
|
name: "${name}"
|
||||||
friendly_name: '${friendly_name}'
|
friendly_name: "${friendly_name}"
|
||||||
name_add_mac_suffix: true
|
name_add_mac_suffix: true
|
||||||
project:
|
project:
|
||||||
name: boneio.dimmer-led-gen2
|
name: boneio.dimmer-led-gen2
|
||||||
version: '0.1'
|
version: "0.1"
|
||||||
on_boot:
|
on_boot:
|
||||||
priority: -100
|
priority: -100
|
||||||
then:
|
then:
|
||||||
- delay: 5s
|
- delay: 5s
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return id(serial_no) != nullptr;'
|
lambda: "return id(serial_no) != nullptr;"
|
||||||
then:
|
then:
|
||||||
- component.update: serial_no
|
- component.update: serial_no
|
||||||
- logger.log: "Serial No updated on boot"
|
- logger.log: "Serial No updated on boot"
|
||||||
@@ -25,7 +25,7 @@ esphome:
|
|||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-s3-devkitc-1
|
board: esp32-s3-devkitc-1
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
|
|
||||||
ethernet:
|
ethernet:
|
||||||
@@ -45,8 +45,6 @@ i2c:
|
|||||||
scan: True
|
scan: True
|
||||||
frequency: 400kHz
|
frequency: 400kHz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO18
|
pin: GPIO18
|
||||||
@@ -90,26 +88,23 @@ output:
|
|||||||
inverted: false
|
inverted: false
|
||||||
id: chr04
|
id: chr04
|
||||||
|
|
||||||
|
|
||||||
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
||||||
# uart:
|
uart:
|
||||||
# id: boneio_uart
|
id: boneio_uart
|
||||||
# rx_pin: GPIO21
|
rx_pin: GPIO21
|
||||||
# tx_pin: GPIO14
|
tx_pin: GPIO14
|
||||||
# baud_rate: 9600
|
baud_rate: 9600
|
||||||
# stop_bits: 1
|
stop_bits: 1
|
||||||
# modbus:
|
modbus:
|
||||||
# send_wait_time: 80ms
|
send_wait_time: 80ms
|
||||||
# uart_id: boneio_uart
|
uart_id: boneio_uart
|
||||||
# id: boneio_modbus
|
id: boneio_modbus
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
url: https://github.com/boneIO-eu/esphome
|
url: https://github.com/boneIO-eu/esphome
|
||||||
ref: packages-v2.0.0
|
ref: packages-v2.0.0
|
||||||
files: [
|
files: ["packages/devices/serial_no.yaml"]
|
||||||
'packages/devices/serial_no.yaml',
|
|
||||||
]
|
|
||||||
# boneiopackages:
|
# boneiopackages:
|
||||||
# url: https://github.com/boneIO-eu/esphome_packages
|
# url: https://github.com/boneIO-eu/esphome_packages
|
||||||
# ref: main
|
# ref: main
|
||||||
@@ -122,7 +117,7 @@ dashboard_import:
|
|||||||
import_full_config: true
|
import_full_config: true
|
||||||
|
|
||||||
pcf8574:
|
pcf8574:
|
||||||
- id: 'pcf_inputs'
|
- id: "pcf_inputs"
|
||||||
address: 0x38
|
address: 0x38
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
@@ -138,54 +133,53 @@ web_server:
|
|||||||
version: 3
|
version: 3
|
||||||
local: true
|
local: true
|
||||||
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chl01
|
output: chl01
|
||||||
name: 'CHL 01'
|
name: "CHL 01"
|
||||||
id: chl_01
|
id: chl_01
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chl02
|
output: chl02
|
||||||
name: 'CHL 02'
|
name: "CHL 02"
|
||||||
id: chl_02
|
id: chl_02
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chl03
|
output: chl03
|
||||||
name: 'CHL 03'
|
name: "CHL 03"
|
||||||
id: chl_03
|
id: chl_03
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chl04
|
output: chl04
|
||||||
name: 'CHL 04'
|
name: "CHL 04"
|
||||||
id: chl_04
|
id: chl_04
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
|
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chr01
|
output: chr01
|
||||||
name: 'CHR 01'
|
name: "CHR 01"
|
||||||
id: chr_01
|
id: chr_01
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chr02
|
output: chr02
|
||||||
name: 'CHR 02'
|
name: "CHR 02"
|
||||||
id: chr_02
|
id: chr_02
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chr03
|
output: chr03
|
||||||
name: 'CHR 03'
|
name: "CHR 03"
|
||||||
id: chr_03
|
id: chr_03
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: chr04
|
output: chr04
|
||||||
name: 'CHR 04'
|
name: "CHR 04"
|
||||||
id: chr_04
|
id: chr_04
|
||||||
default_transition_length: 2s
|
default_transition_length: 2s
|
||||||
gamma_correct: 0
|
gamma_correct: 0
|
||||||
@@ -203,7 +197,7 @@ sensor:
|
|||||||
name: "Loop Time"
|
name: "Loop Time"
|
||||||
- platform: lm75b
|
- platform: lm75b
|
||||||
id: boneIO_temp
|
id: boneIO_temp
|
||||||
name: 'Temperature'
|
name: "Temperature"
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
on_value_range:
|
on_value_range:
|
||||||
@@ -217,7 +211,7 @@ sensor:
|
|||||||
switch:
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: buzzer
|
id: buzzer
|
||||||
name: 'Buzzer'
|
name: "Buzzer"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO9
|
number: GPIO9
|
||||||
mode:
|
mode:
|
||||||
@@ -225,7 +219,7 @@ switch:
|
|||||||
inverted: false
|
inverted: false
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: can_bus_switch
|
id: can_bus_switch
|
||||||
name: 'CAN Bus Switch'
|
name: "CAN Bus Switch"
|
||||||
pin:
|
pin:
|
||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode:
|
mode:
|
||||||
@@ -234,7 +228,7 @@ switch:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_01'
|
name: "IN_01"
|
||||||
id: in_01
|
id: in_01
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -244,7 +238,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_02'
|
name: "IN_02"
|
||||||
id: in_02
|
id: in_02
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -254,7 +248,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_03'
|
name: "IN_03"
|
||||||
id: in_03
|
id: in_03
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -264,7 +258,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_04'
|
name: "IN_04"
|
||||||
id: in_04
|
id: in_04
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -274,7 +268,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_05'
|
name: "IN_05"
|
||||||
id: in_05
|
id: in_05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -284,7 +278,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_06'
|
name: "IN_06"
|
||||||
id: in_06
|
id: in_06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -294,7 +288,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_07'
|
name: "IN_07"
|
||||||
id: in_07
|
id: in_07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
@@ -304,11 +298,11 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: 'IN_08'
|
name: "IN_08"
|
||||||
id: in_08
|
id: in_08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_inputs
|
pcf8574: pcf_inputs
|
||||||
number: 7
|
number: 7
|
||||||
mode:
|
mode:
|
||||||
input: true
|
input: true
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|||||||
@@ -46,16 +46,16 @@ i2c:
|
|||||||
frequency: 400kHz
|
frequency: 400kHz
|
||||||
|
|
||||||
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
# CAN gpio48 - tx, gpio47 rx, gpio35 stb
|
||||||
# uart:
|
uart:
|
||||||
# id: boneio_uart
|
id: boneio_uart
|
||||||
# rx_pin: GPIO21
|
rx_pin: GPIO21
|
||||||
# tx_pin: GPIO14
|
tx_pin: GPIO14
|
||||||
# baud_rate: 9600
|
baud_rate: 9600
|
||||||
# stop_bits: 1
|
stop_bits: 1
|
||||||
# modbus:
|
modbus:
|
||||||
# send_wait_time: 80ms
|
send_wait_time: 80ms
|
||||||
# uart_id: boneio_uart
|
uart_id: boneio_uart
|
||||||
# id: boneio_modbus
|
id: boneio_modbus
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
internals_packages:
|
internals_packages:
|
||||||
|
|||||||
Reference in New Issue
Block a user