summaryrefslogtreecommitdiffstats
path: root/esphome/config/tvlight.yaml
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2021-11-10 10:07:19 +0100
committermanuel <manuel@mausz.at>2021-11-10 10:07:43 +0100
commit9cab8bf69271735243e593c318c3b288860fd4d6 (patch)
tree252f00a26d3d3f733004eeb3d69ac6cbf8397b33 /esphome/config/tvlight.yaml
parent812c9a230aabb45cb7cf6f8a2402c758ade079c3 (diff)
downloadarduino-9cab8bf69271735243e593c318c3b288860fd4d6.tar.gz
arduino-9cab8bf69271735243e593c318c3b288860fd4d6.tar.bz2
arduino-9cab8bf69271735243e593c318c3b288860fd4d6.zip
add esphome stuff
Diffstat (limited to 'esphome/config/tvlight.yaml')
-rw-r--r--esphome/config/tvlight.yaml61
1 files changed, 61 insertions, 0 deletions
diff --git a/esphome/config/tvlight.yaml b/esphome/config/tvlight.yaml
new file mode 100644
index 0000000..b51f9d3
--- /dev/null
+++ b/esphome/config/tvlight.yaml
@@ -0,0 +1,61 @@
1esphome:
2 name: tvlight
3 platform: ESP8266
4 board: d1_mini
5
6# Enable logging
7logger:
8
9# Enable Home Assistant API
10api:
11 password: !secret api_password
12
13# OTA
14ota:
15 password: !secret ota_password
16
17# WiFi Credentials
18wifi:
19 ssid: !secret wifi_ssid
20 password: !secret wifi_password
21
22 # Enable fallback hotspot (captive portal) in case wifi connection fails
23 ap:
24 ssid: "Tvlight Fallback Hotspot"
25 password: !secret wifi_ap_password
26
27captive_portal:
28
29light:
30 - id: tvlight
31 platform: monochromatic
32 name: "TV"
33 output: dimmer_tvlight
34 default_transition_length: 1.5s
35 gamma_correct: 0
36
37 - id: wled
38 platform: binary
39 name: "WLED"
40 output: relay_wled
41
42output:
43 - id: dimmer_tvlight
44 platform: esp8266_pwm
45 pin: D5
46 frequency: 1000 Hz
47 inverted: true
48 # lower 22% are not useable. use max_power because of inverted
49 max_power: 0.78
50 power_supply: relay_tvlight
51
52 - id: relay_wled
53 platform: gpio
54 pin: D1
55
56power_supply:
57 - id: relay_tvlight
58 pin: D2
59 #enable_time: 3s
60 keep_on_time: 20ms
61