mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 13:00:27 +02:00
fix yaml validation
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
substitutions:
|
||||
name: boneio-dr-gen2-2rgbw-01
|
||||
friendly_name: 'BoneIO Dimmer Gen2'
|
||||
serial_prefix: 'dim2' #Don't change it.
|
||||
firmware_manifest: 'https://boneio.eu/fwesp/boneio-dr-gen2-2rgbw-01.json'
|
||||
friendly_name: "BoneIO Dimmer Gen2"
|
||||
serial_prefix: "dim2" #Don't change it.
|
||||
firmware_manifest: "https://boneio.eu/fwesp/boneio-dr-gen2-2rgbw-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,11 +133,10 @@ web_server:
|
||||
version: 3
|
||||
local: true
|
||||
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: rgbw_l
|
||||
name: 'RGBW L'
|
||||
name: "RGBW L"
|
||||
red: chl01
|
||||
green: chl02
|
||||
blue: chl03
|
||||
@@ -151,7 +145,7 @@ light:
|
||||
gamma_correct: 0
|
||||
- platform: rgbw
|
||||
id: rgbw_r
|
||||
name: 'RGBW R'
|
||||
name: "RGBW R"
|
||||
red: chr01
|
||||
green: chr02
|
||||
blue: chr03
|
||||
@@ -172,7 +166,7 @@ sensor:
|
||||
name: "Loop Time"
|
||||
- platform: lm75b
|
||||
id: boneIO_temp
|
||||
name: 'Temperature'
|
||||
name: "Temperature"
|
||||
update_interval: 30s
|
||||
entity_category: diagnostic
|
||||
on_value_range:
|
||||
@@ -186,7 +180,7 @@ sensor:
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: buzzer
|
||||
name: 'Buzzer'
|
||||
name: "Buzzer"
|
||||
pin:
|
||||
number: GPIO9
|
||||
mode:
|
||||
@@ -194,7 +188,7 @@ switch:
|
||||
inverted: false
|
||||
- platform: gpio
|
||||
id: can_bus_switch
|
||||
name: 'CAN Bus Switch'
|
||||
name: "CAN Bus Switch"
|
||||
pin:
|
||||
number: GPIO35
|
||||
mode:
|
||||
@@ -203,7 +197,7 @@ switch:
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: 'IN_01'
|
||||
name: "IN_01"
|
||||
id: in_01
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -213,7 +207,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_02'
|
||||
name: "IN_02"
|
||||
id: in_02
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -223,7 +217,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_03'
|
||||
name: "IN_03"
|
||||
id: in_03
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -233,7 +227,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_04'
|
||||
name: "IN_04"
|
||||
id: in_04
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -243,7 +237,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_05'
|
||||
name: "IN_05"
|
||||
id: in_05
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -253,7 +247,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_06'
|
||||
name: "IN_06"
|
||||
id: in_06
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -263,7 +257,7 @@ binary_sensor:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: 'IN_07'
|
||||
name: "IN_07"
|
||||
id: in_07
|
||||
pin:
|
||||
pcf8574: pcf_inputs
|
||||
@@ -273,11 +267,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
|
||||
|
||||
Reference in New Issue
Block a user