142 lines
2.8 KiB
YAML
142 lines
2.8 KiB
YAML
|
|
esphome:
|
|
name: garten_rs485_controller2
|
|
|
|
esp32:
|
|
board: wt32-eth01
|
|
framework:
|
|
type: arduino
|
|
|
|
api:
|
|
encryption:
|
|
key: !secret api_encryption_key
|
|
|
|
# Enable logging
|
|
#logger:
|
|
|
|
ethernet:
|
|
type: LAN8720
|
|
mdc_pin: GPIO23
|
|
mdio_pin: GPIO18
|
|
clk_mode: GPIO0_IN
|
|
phy_addr: 1
|
|
power_pin: GPIO16
|
|
#manual_ip:
|
|
# static_ip: 192.168.178.62
|
|
# gateway: 192.168.178.1
|
|
# subnet: 255.255.255.0
|
|
|
|
ota:
|
|
password: !secret ota_password
|
|
|
|
|
|
|
|
external_components:
|
|
- source:
|
|
type: git
|
|
url: "https://github.com/andyboeh/esphome-dmx512"
|
|
ref: master
|
|
|
|
|
|
uart:
|
|
- id: "uart_dmx1"
|
|
rx_pin: 2
|
|
tx_pin: 4 # the pin where the transmission happens connected to tx (not reversed)
|
|
stop_bits: 2
|
|
baud_rate: 250000
|
|
- id: "uart_dmx2"
|
|
rx_pin: 17
|
|
tx_pin: 5
|
|
stop_bits: 2
|
|
baud_rate: 250000
|
|
- id: "uart_dmx3"
|
|
rx_pin: 14
|
|
tx_pin: 15
|
|
stop_bits: 2
|
|
baud_rate: 250000
|
|
|
|
#------------------- DMX 1 -----------------------
|
|
|
|
dmx512:
|
|
- id: dmx1
|
|
uart_id: uart_dmx1
|
|
tx_pin: 4
|
|
uart_num: 0
|
|
periodic_update: true
|
|
- id: dmx2
|
|
uart_id: uart_dmx2
|
|
tx_pin: 5
|
|
uart_num: 1
|
|
periodic_update: true
|
|
- id: dmx3
|
|
uart_id: uart_dmx3
|
|
tx_pin: 15
|
|
uart_num: 2
|
|
periodic_update: true
|
|
|
|
output:
|
|
- platform: dmx512
|
|
channel: 10
|
|
universe: dmx1
|
|
id: test_dmx_c1_light04_r
|
|
- platform: dmx512
|
|
channel: 11
|
|
universe: dmx1
|
|
id: test_dmx_c1_light04_g
|
|
- platform: dmx512
|
|
channel: 12
|
|
universe: dmx1
|
|
id: test_dmx_c1_light04_b
|
|
- platform: dmx512
|
|
channel: 10
|
|
universe: dmx2
|
|
id: test_dmx_c2_light04_r
|
|
- platform: dmx512
|
|
channel: 11
|
|
universe: dmx2
|
|
id: test_dmx_c2_light04_g
|
|
- platform: dmx512
|
|
channel: 12
|
|
universe: dmx2
|
|
id: test_dmx_c2_light04_b
|
|
- platform: dmx512
|
|
channel: 10
|
|
universe: dmx3
|
|
id: test_dmx_c3_light04_r
|
|
- platform: dmx512
|
|
channel: 11
|
|
universe: dmx3
|
|
id: test_dmx_c3_light04_g
|
|
- platform: dmx512
|
|
channel: 12
|
|
universe: dmx3
|
|
id: test_dmx_c3_light04_b
|
|
|
|
light:
|
|
- platform: rgb
|
|
name: test_dmx_light04_controller2_uart1
|
|
red: test_dmx_c1_light04_r
|
|
green: test_dmx_c1_light04_g
|
|
blue: test_dmx_c1_light04_b
|
|
default_transition_length: 0s
|
|
restore_mode: RESTORE_DEFAULT_OFF
|
|
- platform: rgb
|
|
name: test_dmx_light04_controller2_uart2
|
|
red: test_dmx_c2_light04_r
|
|
green: test_dmx_c2_light04_g
|
|
blue: test_dmx_c2_light04_b
|
|
default_transition_length: 0s
|
|
restore_mode: RESTORE_DEFAULT_OFF
|
|
- platform: rgb
|
|
name: test_dmx_light04_controller2_uart3
|
|
red: test_dmx_c3_light04_r
|
|
green: test_dmx_c3_light04_g
|
|
blue: test_dmx_c3_light04_b
|
|
default_transition_length: 0s
|
|
restore_mode: RESTORE_DEFAULT_OFF
|
|
|
|
# Light1: 1, 2,3
|
|
# Light2: 4, 5, 6
|
|
# Light3: 7, 8, 9
|
|
# Light4: 10, 11, 12
|
|
# Light5: 13, 14, 16 |