fix yaml validation

This commit is contained in:
pszafer
2026-02-17 08:42:54 +01:00
parent 11d973c5d4
commit 82ec7c0b09
7 changed files with 465 additions and 184 deletions

View File

@@ -1,22 +1,22 @@
substitutions:
name: boneio-dr-gen2-4cct-01
friendly_name: 'BoneIO Dimmer Gen2'
serial_prefix: 'dim2' #Don't change it.
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-4cct-01.json'
friendly_name: "BoneIO Dimmer Gen2"
serial_prefix: "dim2" #Don't change it.
firmware_manifest: "https://boneio.eu/fwesp/boneio-dr-gen2-4cct-01.json"
esphome:
name: '${name}'
friendly_name: '${friendly_name}'
name: "${name}"
friendly_name: "${friendly_name}"
name_add_mac_suffix: true
project:
name: boneio.dimmer-led-gen2
version: '0.1'
version: "0.1"
on_boot:
priority: -100
then:
- delay: 5s
- if:
condition:
lambda: 'return id(serial_no) != nullptr;'
lambda: "return id(serial_no) != nullptr;"
then:
- component.update: serial_no
- logger.log: "Serial No updated on boot"
@@ -25,7 +25,7 @@ esphome:
esp32:
board: esp32-s3-devkitc-1
framework:
framework:
type: esp-idf
ethernet:
@@ -45,8 +45,6 @@ i2c:
scan: True
frequency: 400kHz
output:
- platform: ledc
pin: GPIO18
@@ -90,26 +88,23 @@ output:
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
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',
]
files: ["packages/devices/serial_no.yaml"]
# boneiopackages:
# url: https://github.com/boneIO-eu/esphome_packages
# ref: main
@@ -122,7 +117,7 @@ dashboard_import:
import_full_config: true
pcf8574:
- id: 'pcf_inputs'
- id: "pcf_inputs"
address: 0x38
logger:
@@ -138,30 +133,29 @@ web_server:
version: 3
local: true
light:
- platform: cwww
name: 'CHL_01_02'
name: "CHL_01_02"
cold_white: chl01
warm_white: chl02
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
- platform: cwww
name: 'CHL_03_04'
name: "CHL_03_04"
cold_white: chl03
warm_white: chl04
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
- platform: cwww
name: 'CHR_01_02'
name: "CHR_01_02"
cold_white: chr01
warm_white: chr02
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
- platform: cwww
name: 'CHR_03_04'
name: "CHR_03_04"
cold_white: chr03
warm_white: chr04
cold_white_color_temperature: 6536 K
@@ -180,7 +174,7 @@ sensor:
name: "Loop Time"
- platform: lm75b
id: boneIO_temp
name: 'Temperature'
name: "Temperature"
update_interval: 30s
entity_category: diagnostic
on_value_range:
@@ -194,7 +188,7 @@ sensor:
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
name: "Buzzer"
pin:
number: GPIO9
mode:
@@ -202,7 +196,7 @@ switch:
inverted: false
- platform: gpio
id: can_bus_switch
name: 'CAN Bus Switch'
name: "CAN Bus Switch"
pin:
number: GPIO35
mode:
@@ -211,7 +205,7 @@ switch:
binary_sensor:
- platform: gpio
name: 'IN_01'
name: "IN_01"
id: in_01
pin:
pcf8574: pcf_inputs
@@ -221,7 +215,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_02'
name: "IN_02"
id: in_02
pin:
pcf8574: pcf_inputs
@@ -231,7 +225,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_03'
name: "IN_03"
id: in_03
pin:
pcf8574: pcf_inputs
@@ -241,7 +235,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_04'
name: "IN_04"
id: in_04
pin:
pcf8574: pcf_inputs
@@ -251,7 +245,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_05'
name: "IN_05"
id: in_05
pin:
pcf8574: pcf_inputs
@@ -261,7 +255,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_06'
name: "IN_06"
id: in_06
pin:
pcf8574: pcf_inputs
@@ -271,7 +265,7 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_07'
name: "IN_07"
id: in_07
pin:
pcf8574: pcf_inputs
@@ -281,11 +275,11 @@ binary_sensor:
inverted: true
- platform: gpio
name: 'IN_08'
name: "IN_08"
id: in_08
pin:
pcf8574: pcf_inputs
number: 7
mode:
input: true
inverted: true
inverted: true