-
Notifications
You must be signed in to change notification settings - Fork 0
/
kingarts_dimmer_1.yaml
61 lines (48 loc) · 1020 Bytes
/
kingarts_dimmer_1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
esphome:
name: dimmer_01
platform: ESP8266
board: esp8285
includes:
- kingart_uart.h
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
substitutions:
hostname: "dimmer_01"
friendly_name: "Dimmer"
globals:
id: set_by_touch
type: bool
# Enable Home Assistant API
api:
password: !secret api_password
ota:
password: !secret ota_password
logger:
baud_rate: 0
level: none
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 19200
id: uart0
status_led:
pin:
number: GPIO13
inverted: True
light:
- platform: monochromatic
name: ${friendly_name}
id: ${hostname}
output: dimmer
gamma_correct: 1.0
default_transition_length: 0s
output:
- platform: custom
type: float
lambda: |-
auto float_out = new KingArtsComponent(id(uart0), id(${hostname}));
App.register_component(float_out);
return {float_out};
outputs:
- id: dimmer