mushlab-iot/software/esphome.yaml

130 lines
2.1 KiB
YAML
Raw Normal View History

2023-06-08 01:51:13 +02:00
external_components:
- source: github://andyboeh/esphome-dmx512
esphome:
name: mushlab-iot
esp32:
board: nodemcu-32s
logger:
level: VERBOSE
api:
password: !secret api_password
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: !secret ap_ssid
password: !secret ap_password
captive_portal:
web_server:
port: 80
local: true
mqtt:
broker: !secret mqtt_broker
time:
- platform: sntp
timezone: Europe/Berlin
uart:
id: uart_bus
baud_rate: 250000
tx_pin: 1
stop_bits: 2
dmx512:
id: dmx
uart_id: uart_bus
tx_pin: 1
uart_num: 1
output:
- platform: dmx512
channel: 1
universe: dmx
id: dmx_1
- platform: dmx512
channel: 2
universe: dmx
id: dmx_2
- platform: dmx512
channel: 3
universe: dmx
id: dmx_3
- platform: dmx512
channel: 4
universe: dmx
id: dmx_4
- platform: dmx512
channel: 5
universe: dmx
id: dmx_5
- platform: dmx512
channel: 6
universe: dmx
id: dmx_6
- platform: dmx512
channel: 7
universe: dmx
id: dmx_7
light:
- platform: monochromatic
name: "Lights LED Strips RED"
output: dmx_1
id: lights_stripes_r
default_transition_length: 2s
- platform: monochromatic
name: "Lights LED Strips GREEN"
output: dmx_2
id: lights_stripes_g
default_transition_length: 2s
- platform: monochromatic
name: "Lights LED Strips BLUE"
output: dmx_3
id: lights_stripes_b
default_transition_length: 2s
- platform: monochromatic
name: "Lights Dimmer Channel 1"
output: dmx_4
id: lights_dimmer_channel_1
default_transition_length: 2s
- platform: monochromatic
name: "Lights Dimmer Channel 2"
output: dmx_5
id: lights_dimmer_channel_2
default_transition_length: 2s
- platform: monochromatic
name: "Lights Dimmer Channel 3"
output: dmx_6
id: lights_dimmer_channel_3
default_transition_length: 2s
- platform: monochromatic
name: "Lights Dimmer Channel 4"
output: dmx_7
id: lights_dimmer_channel_4
default_transition_length: 2s